Releases: goldibex/targaryen
Releases · goldibex/targaryen
3.1.0
Changes
- Add jest matcher (#150).
- Validate literal regular expression (#146).
- Add support for the
query
variable (#142).
Thanks to @a-xin for implementing the new plugin and for his help troubleshooting
RexExp validation.
install
npm install [email protected]
3.1.0-beta.1
This is an intermediary release of the upcoming v3.1.0 release.
Changes
- Validate literal regular expression (#146).
install
npm install targaryen@beta
3.1.0-beta-0
This is an intermediary release of the upcoming v3.1.0 release.
Changes
- Add support for the
query
variable (#142).
install
npm install targaryen@beta
3.0.5
3.0.4
Changes
- Fix handling of trailing slashes in update operation patch data keys (#134).
Thanks to @SamyPesse for reporting the issue.
install
npm install [email protected]
3.0.3
Changes
- Fix handling of tests with invalid locations (#131).
Thanks to @dannycochran for reporting the issue.
install
npm install [email protected]
3.0.2
Changes
- Fix falsy member property evaluation (#125);
foo.bar
would have evaluated tofoo
iffoo.bar
had been falsy (e.g. an empty string). - Fix patch example (#123).
Thanks to @SamyPesse and @a-xin for their contributions.
install
npm install [email protected]
3.0.1
3.0.0
Changes
- Fix type validation:
- Type inferring doesn't throw when it cannot infer a node type; set the type to "any" or "primitive".
- Type inferring of each side of a binary expression, or of method argument accepts "any" or "primitive" and delay type validation until evaluation.
- Validate type of string and snapshot method arguments during evaluation.
- Validate type of each sides of binary expression during evaluation: most arithmetic expressions require numbers, addition also accept operation on string, comparison require string, number or null, equality operations require a primitive or a plain Object.
- Add live testing for Firebase parity.
- Stop evaluating child write rules.
- Add more debugging info.
- Fix snapshot root parent access.
- Fix data node snapshot priority handling.
- Refactor API:
- Plugins scripts should be imported directly, e.g.
require('targaryen/plugins/chai')
:- Add
targaryen/plugins/chai
. - Add
targaryen/plugins/jasmine
. - Deprecate
targaryen.chai
. - Deprecate
targaryen.jasmine
. - Deprecate
targaryen.setFirebaseData
. - Deprecate
targaryen.setFirebaseRules
. - Deprecate
targaryen.setDebug
. - Deprecate
targaryen.users
.
- Add
- Simpler API to use targaryen directly:
- Add
targaryen.database(rules: object|Ruleset, data: object|DataNode, now: null|number): Database
. - Add
targaryen.util
functions used by the CLI and the reference plugins for chai and jasmin - Remove
targaryen.Ruleset
. - Remove
targaryen.DataSnapshot
. - Remove
targaryen.helpers
.
- Add
- Plugins scripts should be imported directly, e.g.
- Refactor internal:
- Refactor data access and Ruleset.
- Refactor public api.
- Format source based on eslint xo shared configuration.
- Refactor rule parser.
- Simpler tests.
- Move
lib/database
. - Fix deleting a missing node.
- Add
DataNode.$merge
(Database.root.$merge
). - Better debug info when an operation doesn't trigger any read/write rules.
- Fix regression bug in removing and prune nodes.
- Describe operation in result info (were previously generated by error helpers in
targaryen.utils
).
- Targaryen CLI can parse rules containing multi lines string (would previously only support comments).
- Chai and jasmine plugins include json parser helpers (supporting comments and multi line strings)
Thanks goes to @alisson446, @georgesboris, @mhuebert, @RomansBermans and @simenbrekken for their contributions.
install
npm install targaryen
3.0.0-rc.5
This is an intermediary release of the upcoming v3.0.0 release.
Changes
- Fix type validation:
- Type inferring doesn't throw when it cannot infer a node type; set the type to "any" or "primitive".
- Type inferring of each side of a binary expression, or of method argument accepts "any" or "primitive" and delay type validation until evaluation.
- Validate type of string and snapshot method arguments during evaluation.
- Validate type of each sides of binary expression during evaluation: most arithmetic expressions require numbers, addition also accept operation on string, comparison require string, number or null, equality operations require a primitive or a plain Object.
- Add live testing for Firebase parity.
- Stop evaluating child write rules.
- Add more debugging info.
- Fix snapshot root parent access.
- Fix data node snapshot priority handling.
- Refactor API:
- Plugins scripts should be imported directly, e.g.
require('targaryen/plugins/chai')
:- Add
targaryen/plugins/chai
. - Add
targaryen/plugins/jasmine
. - Deprecate
targaryen.chai
. - Deprecate
targaryen.jasmine
. - Deprecate
targaryen.setFirebaseData
. - Deprecate
targaryen.setFirebaseRules
. - Deprecate
targaryen.setDebug
. - Deprecate
targaryen.users
.
- Add
- Simpler API to use targaryen directly:
- Add
targaryen.database(rules: object|Ruleset, data: object|DataNode, now: null|number): Database
. - Add
targaryen.util
functions used by the CLI and the reference plugins for chai and jasmin - Remove
targaryen.Ruleset
. - Remove
targaryen.DataSnapshot
. - Remove
targaryen.helpers
.
- Add
- Plugins scripts should be imported directly, e.g.
- Refactor internal:
- Refactor data access and Ruleset.
- Refactor public api.
- Format source based on eslint xo shared configuration.
- Refactor rule parser.
- Simpler tests.
- Move
lib/database
. - Fix deleting a missing node.
- Add
DataNode.$merge
(Database.root.$merge
). - Better debug info when an operation doesn't trigger any read/write rules.
- Fix regression bug in removing and prune nodes.
- Describe operation in result info (were previously generated by error helpers in
targaryen.utils
).
- Targaryen CLI can parse rules containing multi lines string (would previously only support comments).
- Chai and jasmine plugins include json parser helpers (supporting comments and multi line strings)
Thanks goes to @alisson446, @georgesboris, @mhuebert, @RomansBermans and @simenbrekken for their contributions.
install
npm install targaryen@beta