Skip to content

Latest commit

 

History

History
678 lines (532 loc) · 34.6 KB

CHANGES.md

File metadata and controls

678 lines (532 loc) · 34.6 KB

Changes

7.0.2

  • 🛡️ cb5c0c7 npm audit
  • dadddf2 Upgrade @mochify/driver-puppeteer
  • 06aa7b9 Update typescript and enable exactOptionalPropertyTypes

Released by Maximilian Antoni on 2025-01-23.

7.0.1

  • 🐛 7a46272 Fix all with custom error code
  • 🐛 2b67320 Fix one with custom error code

Released by Maximilian Antoni on 2024-05-14.

7.0.0

  • 💥 4315324 BREAKING: Remove event emitter

Released by Maximilian Antoni on 2024-04-09.

6.2.1

Released by Maximilian Antoni on 2024-03-21.

6.2.0

  • 🍏 5381bb8 Add Infer type
  • 📚 5ffe090 Document Infer
  • 📚 3fe744c Rename internal types
  • caff931 Function type declarations
  • 50a67cb Use new helper to extract validator argument type
  • 5a61116 Improve ts-expect-error testing
  • 066ecb9 Add test to verify array item with custom error code

Released by Maximilian Antoni on 2024-03-21.

6.1.1

  • 🐛 ea3de52 Remove node type dependency

Released by Maximilian Antoni on 2024-03-20.

6.1.0

Released by Maximilian Antoni on 2024-03-20.

6.0.1

  • 🐛 78038d0 Fix invalid property not verified in combination with opt

Released by Maximilian Antoni on 2023-06-20.

6.0.0

  • 💥 af0dc6f Make API strict and add types
  • 💥 7356f14 Drop node 12 and 14, add node 18
  • 📚 9e8e76d Adjust documentation
  • 🛡 e00d6e0 npm audit
  • b53a986 Inline additional property type definitions
  • 237d012 Setup typescript and jsdoc
  • 1a41ad8 Remove superfluous parameter
  • dfffe83 Move schema implementation into index.js

Released by Maximilian Antoni on 2023-04-17.

5.4.2

  • 🐛 5b44823 Support loading this module with import
  • 🛡 ea28219 Bump minimatch from 3.0.4 to 3.1.2 (dependabot[bot])

Released by Maximilian Antoni on 2023-01-19.

5.4.1

  • 🐛 3a0e73f Fix integer map key validator

Released by Maximilian Antoni on 2022-09-19.

5.4.0

  • 🍏 5f425de Expose literal type and values
  • 🍏 b97b0bc Expose map type with processed keys and values
  • 🍏 e6db2ef Expose type of schema spec and the corresponding validators
  • 🍏 c844775 Expose type of optional spec and the corresponding validators
  • 🍏 8b0bf97 Expose object property validators as properties
  • 🍏 fa6151c Expose array item validator as items
  • a92d0c0 Add copyTypeAndProperties util

Released by Maximilian Antoni on 2022-07-21.

5.3.0

  • 🍏 9ed6a2b Add support for integer validators as map keys
  • 🍏 7aa83f0 Expose type string on validators
  • 🛡 bbb300c npm audit
  • 895f570 Upgrade husky and lint-staged
  • ae06585 Update mocha and mochify
  • f04f6b7 Update prettier
  • c1b3c6f Update eslint

Released by Maximilian Antoni on 2022-07-21.

5.2.2

  • 🐛 f2fa1d2 Unwrap array function arguments

Released by Maximilian Antoni on 2022-07-14.

5.2.1

  • f60ece4 Improve validation error message for regexp

Released by Maximilian Antoni on 2022-05-03.

5.2.0

  • 🍏 984b480 Expose regexp validator creation on string.regexp
  • 📚 27b4ea0 Document string.regexp and string.length validators
  • 3e99dd2 Reinstall dependencies
  • 992b23e Update husky
  • 3a4bd0b Upgrade mocha and mochify
  • 470535a Update prettier
  • dd61131 Upgrade lint-staged
  • cfd198c Update eslint and eslint-config
  • 🛡 c136bcc npm audit
  • 🛡 f3f05f3 Bump cached-path-relative from 1.0.2 to 1.1.0 (dependabot[bot])

Released by Maximilian Antoni on 2022-05-02.

5.1.12

  • 🐛 7c317e2 Fix usage of invalid WeakMap keys
  • e115084 Use existing verifyer in read / write of one and all

Released by Maximilian Antoni on 2021-11-01.

5.1.11

  • 🐛 25c318d Fix read and write for one with custom validators
  • 🐛 084954e Fix read and write for all with custom validators

Released by Maximilian Antoni on 2021-11-01.

5.1.10

  • 🐛 5548669 Add read and write for all
  • 🐛 5d34329 Add read and write for one

Released by Maximilian Antoni on 2021-11-01.

5.1.9

  • 🐛 33c96e7 Preserve cached instances

Released by Maximilian Antoni on 2021-09-15.

5.1.8

  • 🐛 6b80e8b Clear cache entries on modify

Released by Maximilian Antoni on 2021-09-15.

5.1.7

  • 🐛 a4b9255 Do not throw when accessing nodeType for Sinon compatibility

Released by Maximilian Antoni on 2021-08-02.

5.1.6

  • 🐛 1b6ab1d Fix paths in events for objects in arrays

Released by Maximilian Antoni on 2021-07-30.

5.1.5

  • 🐛 afd7239 Fix custom error_code with objects
  • 🐛 42fe9f4 Fix npm files
  • 5dad2c0 Update referee-sinon
  • 0ddedd3 Rename lint-staged config file

Released by Maximilian Antoni on 2021-07-29.

5.1.4

  • 🐛 de5569a Add read and write to opt
  • ae6c618 Move copyPropertyDescriptor helper into util
  • 283466e Add nyc test coverage
  • d2d3650 Add mocha config
  • ecedaab Upgrade husky
  • 24aace9 Update mochify
  • ac77b50 Update referee-sinon

Released by Maximilian Antoni on 2021-07-20.

5.1.3

  • 🐛 dc2d8ad Unwrap nested objects and arrays
  • 4ad8f90 Use Object.entries

Released by Maximilian Antoni on 2021-07-02.

5.1.2

  • 🐛 73b9fe7 Pass schema options to readers and writers

Released by Maximilian Antoni on 2021-06-15.

5.1.1

  • 🐛 b48163b Fix use custom error code for invalid properties

Released by Maximilian Antoni on 2021-06-14.

5.1.0

  • 🍏 ef635af Add string.length validators

Released by Maximilian Antoni on 2021-06-14.

5.0.0

  • 💥 50396a4 Change error code to E_SCHEMA and allow override
  • 🍏 6a15185 Change toString for opt
  • 🍏 5672937 Change toString for map

Released by Maximilian Antoni on 2021-06-14.

4.0.1

  • 🐛 4d6885d Improve message for undefined property values
  • 🐛 105a67d Improve literal stringification

Released by Maximilian Antoni on 2021-06-10.

4.0.0

  • 💥 7267301 Remove magic string validators
  • 💥 665a603 Remove raw from API and document toJSON
  • 💥 b9212b1 Replace SPEC_NAME with toString
  • 💥 734fdb4 Rename "custom value" to "<custom validator>"
  • 🍏 27186a3 Add integer.{min,max,range}
  • 🍏 799e5bf Add number.{min,max,range} validators
  • 🍏 b283151 Implement all validator
  • 🍏 4e819a6 Support object and array with any values
  • 🍏 3ce3ce6 Expose validator
  • 🍏 5fd506e Add defined, boolean, number, integer and string
  • 🍏 3527107 Create a validator for a function spec
  • 🐛 65e0994 Fix repository url
  • 🐛 31944df Fix map events
  • 📚 f148a2c Document number and integer min, max and range
  • 📚 d39cfbe Fix documentation for opt
  • 📚 d698109 State that number and integer must be finite
  • 📚 15a882e Fix typo
  • 📚 e07612e Adjust keywords
  • 📚 3561c71 Polish readme
  • 📚 6ea85ae Improve API documentation
  • 📚 3ef106f Adjust documentation
  • 2e0fd31 Move {min,max,range} into generic numeric factory
  • a8808f3 Adjust npm files
  • 41222e1 Move createItemSetter to own function
  • 826cc79 Move createPropertySetter to own function
  • d00c7b3 Use for-of
  • 40a95ec Rename spec-test to registry
  • 6a54af7 Rename registerSpecType to register
  • 842bf46 Rename specTest to lookup
  • e4ab723 Inline regexp tester
  • 546cc4b Move specTests into object
  • 934dd39 Simplify schema
  • 0e34f12 Move fail, stringify and typeOf into util
  • 3a89171 Move specName into util
  • 68f5033 Move SPEC_NAME into constants
  • 81e357c Move lazy into util
  • 7efa56c Move assertType into util
  • ce103df Move raw into util
  • 668d8c7 Rename path to util
  • 02f3394 Improve specName
  • c327e4f Prefer parameter default value
  • 61e8017 Refactor spec-test
  • 5c0a5d6 Define file endings for prettier
  • d3c3eb4 Replace obsolete type validators with assertType
  • 206b018 Introduce assertType helper
  • fec83b2 Add validator helper
  • a8d96a4 Fix watch script
  • 4c09142 Remove "studio-" prefix from project name
  • 2588d26 Use pre installed chrome in GitHub action
  • 24173f0 Change default branch name to main
  • aabfa9c Configure npm files
  • 5f52041 Add Studio Related Tests
  • 0c4acc9 Move tests next to implementation
  • 899122b Setup husky and lint-staged
  • 3fa0875 Remove obsolete mocha env comments
  • a1d9eea Setup prettier
  • 2062827 Update eslint
  • 4ff13de Upgrade eslint-config

Released by Maximilian Antoni on 2021-06-08.

3.4.0

  • 🍏 b6485e9 Do not throw in toJSON
  • 🐛 9c806e6 Fix specname generation
  • 904db4b Add unit tests for one

Released by Maximilian Antoni on 2021-06-02.

3.3.0

  • 🍏 7937230 Unwrap object, array and map values
  • 93b0f11 Move raw and unwrap helpers to own file
  • c074fc8 Remove raw symbol
  • e5963c5 Upgrade mocha and mochify

Released by Maximilian Antoni on 2021-06-01.

3.2.0

  • 🍏 b790b41 Invoke toJSON on assigned values
  • 🍏 857780f Return original object in toJSON

Released by Maximilian Antoni on 2021-05-25.

3.1.0

  • 🍏 86a1a52 Add literal validator
  • 📚 d3275a0 Document literal API and improve wording

Released by Maximilian Antoni on 2021-05-25.

3.0.1

  • 🐛 52e2945 Fix accessing array.length
  • 🐛 ec44741 Fix array return value

Released by Maximilian Antoni on 2021-05-24.

3.0.0

Released by Maximilian Antoni on 2021-05-24.

2.0.6

  • 🐛 afd5ce4 Emit objects with all details

Released by Maximilian Antoni on 2021-05-23.

2.0.5

  • 🐛 1668bbd Fix array path notation
  • 34f8f24 Rename path helper to objectPath

Released by Maximilian Antoni on 2021-05-23.

2.0.4

  • 🐛 7bc7a62 Validate arguments in array.push and array.unshift
  • 🐛 bfcbf84 Do not throw in util.inspect(proxy)
  • 70c6fa5 Extract objectVerifyer to own file
  • 6fcf7b7 Extract schema to own file
  • d95ea19 Extract object to own file
  • 8b69eca Extract one to own file
  • 6795da3 Extract opt to own file
  • 15a6c02 Extract map to own file
  • 7eb0767 Extract array and createItemGetter to own file
  • 8d052b2 Extract specTest and specTests to own file
  • 3b93150 Extract type to own file
  • 56bc5c2 Extract verifyer to own file
  • 4e8d3c3 Extract path to own file
  • 7919b91 Extract specName to own file
  • e55cea6 Extract fail helpers to own file
  • 1cab60f Extract constants to own file
  • e8573d7 Extract stringify to own file
  • eb49c3e Extract typeOf to own file
  • 6d1a0bc Extract lazy to own file
  • a4f656a Avoid JSON.stringify in verifyWriter

Released by Maximilian Antoni on 2021-05-22.

2.0.3

  • 🐛 b0294d2 Ignore "then" keys in property getter
  • 🐛 ce07b07 Allow to define symbol properties

Released by Maximilian Antoni on 2021-05-21.

2.0.2

  • 🐛 06442d1 Fix stringifying array and map objects

Released by Maximilian Antoni on 2021-05-21.

2.0.1

  • 🐛 3595da0 Fix nested map writer

Released by Maximilian Antoni on 2021-05-21.

2.0.0

Released by Maximilian Antoni on 2021-05-20.

1.2.0

  • 🍏 b3744e9 Implement raw to return original object

1.1.1

  • 🐛 dbef3b5 Do not throw on invalid array validation

1.1.0

  • 🍏 4cbe70b Implement "array"

  • 🐛 1263481 Verify array and fail with useful error message

    Passing an invalid value caused TypeError: Cannot read property every ….

1.0.1

  • 🐛 bf06d22 Support any type of spec in array
  • c9e79ed Fold type error creation into verifyer

1.0.0

  • ✨ Initial release