Skip to content

Release 0.18.0

Compare
Choose a tag to compare
@nandi95 nandi95 released this 28 Jul 22:46
· 5 commits to release/0.x since this release

Testing

  • test: update jest config to ts file
  • test(global-config): ensure values not bleeding across tests
  • test: set up multiple test environments
  • test(collection): add shuffle test
  • test(api-calls): add connect, trace and options test
  • test(attributes): clarify variable name
  • test(helpers): update test name

Continuous Integration

  • ci: separate testing for environments
  • ci: move dependency install step into later jobs
  • ci: use checkout in later jobs too
  • ci: use npx to run jest
  • ci: bump node version

Features

  • feat(collection): added is method
  • feat(attributes): create simple access to accessors
  • feat(api-calls): add options trace and connect request options
  • feat: add an experimental Getter type

Documentation

  • docs: improve documentation accuracy
  • docs(helpers): add documentation for dataGet
  • docs: grammar and spacing fixes
  • docs: add word clarification
  • docs(attributes): document magic access

Revert

  • revert(collection): change introduced in 8d8023a

Refactor

  • refactor: use in operator as opposed to hasOwnProperty function
    • This is compatible with objects without a prototype to inherit from
      However, this checks the property from the prototype chain
  • refactor(collection): improve readability of unique function
  • refactor: improve the type Data

Performance

  • perf(attributes): iterate objects using for...of on Object.entries
    • This has a small performance improvement when it comes to using it with large objects
  • perf(attributes): use an object with no inheritance for original&attributes
    • This provides a slight performance improvement when it comes to memory
  • perf: remove lodash in favour of specific lodash modules

Chores

  • chore: update dependencies
  • chore: bump version
  • chore: add exports for node environments

Fix

  • fix(helpers): remove circular dependency between a collection and dataGet
    • This also means no longer importing the collection when just using dateGet