Skip to content

Latest commit

 

History

History
113 lines (74 loc) · 4.12 KB

CHANGELOG.md

File metadata and controls

113 lines (74 loc) · 4.12 KB

Changelog

1.2

  • Supports immutable 4.0.0-rc.*
  • In order to support multiple versions, ImmutableJS is now only listed as peer dependency.
  • API changes:
    • Introduce new method walk.
  • Test setup for multiple versions.
  • Docs updated.
  • Dependencies updated.

1.1.1

  • API changes:
    • Introduce new method depth.
  • Minor fixes in docs.
  • Dependencies updated.

1.0.1

  • Remove for...of loop in nodes method. Fixes #10.

1.0.0

This is mainly a backport to good old ES5 in order to definitely get rid of Babel et al. The reasoning behind this is, that 90% of the maintenance work I did on this library was somehow related to runtime environments that the Babel build of TreeUtils was incompatible with.

In 0.1.11 I tried to just enforce a modern enough Node version to keep the generators but this enforced people to manually add TreeUtils to a list of should-get-transpiled node modules in order to support older runtimes through let's say Webpack. And that is really not an option.

In the end and given the fact that TreeUtils is actually a very small and single-minded piece of software that doesn't really need the fancy new stuff, it seemed to be more reasonable to take the code back to the least common denominator (Node 0.12, VERY old browsers) than hassling my way through transpiler/build chain hell.

I want to apologize for the messed up 0.1.11 release and hope TreeUtils still works for you.

Breaking:

The tree method nodes returns an Immutable.List instead of an Iterator.

So instead of

for (let keyPath of utils.nodes(state)) {
  // ...
}

you would

utils.nodes(state).forEach(keyPath => {
  // ...
})

Other changes:

  • Backport to ES5: source, tests and scripts.
  • No longer enforce a Node version.

0.1.11

  • Requires Node >= 6 or any environment that supports ES6, especially generators.
  • Removed dependencies on all Babel and ESLint related packages and config files.
  • File structure flattened.
  • Docs: Removed hint regarding the generators issue, removed the babel reference.
  • Dependencies updated.

0.1.10

  • Docs updated.

0.1.9

  • API changes: - TreeUtils constructor accepts a none parameter to customize the result of queries with no results.
  • ESLint rules changed to a somehow customized version of the well-established AirBnB ruleset.
  • Code base refactored according to the new linting rules.
  • Build tests refactored to ES5.
  • Dependencies updated.

0.1.8

0.1.7

0.1.6

  • Dependencies updated.
  • Docs: Fix typos and source links.

0.1.5

  • Dependencies updated.
  • All methods that need to evaluate whether a value exists or not check not only for undefined but for null as well now. Some methods were broken if you e.g. were using null as default value on Record definitions, which by some people is considered best practise.

0.1.4

  • Dependencies updated. Added tests for the transpiled source (trivial).

0.1.3

  • Minor fixes in API docs. Updated dependencies.

0.1.2

  • Migration to Babel 6 courtesy of Kei Takashima.
  • README hint to use environment with generators enabled courtesy of Emanuele Ingrosso.
  • Further updated dependencies, most notably ImmutableJS.
  • Added estraverse-fb to devDependencies (eslint/eslint#5476).