Skip to content

Latest commit

 

History

History
431 lines (362 loc) · 22.2 KB

CHANGES.md

File metadata and controls

431 lines (362 loc) · 22.2 KB

Changes

11.0.1

Released by Morgan Roderick on 2024-02-10.

11.0.0

  • 14949b9 Use setup-node v4 and use lts/* as node-version (Maximilian Antoni)
  • ecd5d7a Drop node 14, add node 20 (Maximilian Antoni)
  • 744fafb npm audit (Maximilian Antoni)
  • 79cf800 Upgrade mkdirp (Maximilian Antoni)
  • f19019f Update esbuild (Maximilian Antoni)
  • 424f343 Upgrade prettier to v3 and reformat files (Maximilian Antoni)
  • bcb67ce Upgrade lint-staged (Maximilian Antoni)
  • 719ebb0 Update @sinonjs/eslint-config (Maximilian Antoni)
  • e4f0b29 Upgrade sinon and @sinonjs/commons to latest (Maximilian Antoni)

Released by Maximilian Antoni on 2023-12-27.

10.0.1

  • 4d3e91c Upgrade samsam to v8 to fix a matcher issue (Maximilian Antoni)
  • 957a3f9 Add failing test for sinon.match.string (Maximilian Antoni)
  • 3e6ce3d Update sinon (Maximilian Antoni)
  • d0dfef5 Upgrade esbuild to fix the build (Maximilian Antoni)

Released by Maximilian Antoni on 2023-06-29.

10.0.0

  • 039c5d2 Remove support for node 12, add node 18 (Maximilian Antoni)
  • c86946a npm audit (Maximilian Antoni)
  • 5c0129a Update util (Maximilian Antoni)
  • a136e6a Update husky (Maximilian Antoni)
  • bbe42aa Update eslint-config (Maximilian Antoni)
  • cd5caf5 Update prettier and reformat files (Maximilian Antoni)
  • aa3978a Upgrade lint-staged (Maximilian Antoni)
  • 9878fc2 Upgrade mocha (Maximilian Antoni)
  • dd45436 Upgrade samsam and sinon (Maximilian Antoni)

Released by Maximilian Antoni on 2023-01-24.

9.1.2

  • 003d1a0 Prefer @sinonjs/commons@2 (Morgan Roderick)

    That makes ES2017 support explicit

Released by Morgan Roderick on 2022-11-07.

9.1.1

  • 3666289 Fix pending promise in async assertion on error (Maximilian Antoni)

    Fail the test with the thrown error message by rejecting the internal assertion promise. Without handling the exception, the assertion promise wouldn't be resolved or rejected and a test case awaiting the promise would hang.

Released by Morgan Roderick on 2021-08-05.

9.1.0

  • 910e80c Allow functions for assert and refute messages (Morgan Roderick)

    This allows for dynamic assert and refute messages, which is required to improve combined assertions like calledOnceWith in @sinonjs/refere-sinon.

  • f9d0c82 Fix tests in node 12.14.1 (Morgan Roderick)

    Some tests were failing in node 12.14.1, because of changes (likely improvements) to object formatting. By using util.inspect in tests, we can match the strings correctly, no matter the node version.

Released by Morgan Roderick on 2021-07-26.

9.0.1

  • d5e06d5 Add support for Node 16 (Morgan Roderick)
    • Run tests in Node 16
  • c0a9a6b Fix Node 16 (Morgan Roderick)

    The object formatting changed (improved) slightly between Node 14 and 16, which broke some of the tests.

    Since #183, we're supposed to be using a frozen version of util for formatting values for error messages. Looks like we missed a few places.

Released by Morgan Roderick on 2021-06-15.

9.0.0

  • cd4d34a npm audit (Maximilian Antoni)
  • 136f4a5 Upgrade @sinonjs/samsam and sinon (Maximilian Antoni)
  • 95d9bec Update @studio/changes (Maximilian Antoni)
  • ac6ea7a Update @sinonjs/eslint-config (Maximilian Antoni)
  • affa3dc Update @sinonjs/commons (Maximilian Antoni)
  • 71ce2d5 Use npm 7 (Maximilian Antoni)
  • 5450458 Bump glob-parent from 5.1.1 to 5.1.2 (dependabot[bot])
  • 85d4143 Bump browserslist from 4.16.3 to 4.16.6 (dependabot[bot])
  • 564ec3b Fix typo in isUndefined docs (Serkan Özel)
  • cfa8bcd Bump hosted-git-info from 3.0.5 to 3.0.8 (dependabot[bot])
  • 17c84ba Bump lodash from 4.17.20 to 4.17.21 (dependabot[bot])

Released by Maximilian Antoni on 2021-06-08.

8.0.2

  • f695dca Fix resolves and rejects arity (Maximilian Antoni)

Released on 2021-04-27.

8.0.1

Released on 2021-04-08.

8.0.0

  • 84afaf0 Upgrade linting config (Morgan Roderick)

    This drops support for IE11, legacy Edge and older Safari (pre 10)

    Replace eslint-config-sinon with the new version under a new name @sinonjs/eslint-config. The new package includes the correct versions of all the dependencies to have a working eslint setup in downstream projects.

    See sinonjs/eslint-config#7

Released on 2021-03-12.

7.0.0

  • 2a678f0 Upgrade prettier to 2.x (Morgan Roderick)
    • upgrade eslint-config-prettier
    • upgrade eslint-plugin-prettier
    • run prettier on all JavaScript files
      $(npm bin)/prettier -w -u .`

Released on 2020-11-16.

6.2.1

  • f5aaf56 Add package util to improve platform independence (Morgan Roderick)
  • 36ce1fa Use event-emitter instead of node builtin 'events' module (Morgan Roderick)

    This brings us closer to browser compatibility

Released on 2020-11-11.

6.2.0

  • 0e9ab9b Adjust documentation for resolves and rejects (Maximilian Antoni)
  • fe4616e Support resolves and rejects without expectation (Maximilian Antoni)
  • 4b21019 Use deepEqual to compare rejected promise value (Maximilian Antoni)
  • b001fed Use deepEqual to compare resolved promise value (Maximilian Antoni)

Released by Maximilian Antoni on 2020-11-07.

6.1.0

  • 9ea1198 Allow to skip formatting values in placeholders (Maximilian Antoni)
  • 5bb9567 Drop manual newline escapes in favor of inspect in equals (Maximilian Antoni)

Released by Maximilian Antoni on 2020-10-03.

6.0.2

  • #183 Replace @sinonjs/formatio with util.inspect from NodeJS
  • 86fe254 Add missing test case for actualForMatch (Maximilian Antoni)
  • a02ff67 Fix coverage for define-assertion promise handling (Maximilian Antoni)
  • a0c54a3 Fix coverage for tagName (Maximilian Antoni)
  • b8e18ff Fix tests in node 14 (Maximilian Antoni)
  • 828f839 Drop node 10, add node 14 (Maximilian Antoni)
  • 6944bd2 Fix tests in node 12 (Maximilian Antoni)
  • 14c6903 Prettier (Maximilian Antoni)
  • 0f7a5fe Add support for special array interpolations (Maximilian Antoni)
  • ababcdd Refactor property interpolation (Maximilian Antoni)
  • ed71199 Fix formatting related assertions (Maximilian Antoni)
  • 61f8522 Reinstall dependencies (Maximilian Antoni)
  • 6547c43 Update lib/assertions/is-weak-map.test.js (Morgan Roderick)
  • 53bdcbb
  • dadce5e Add test for isURIError assertion included in API (Morgan Roderick)
  • 7b595df Convert tests for isURIError to unit tests (Morgan Roderick)
  • 3546c9a Add test for isWeakMap assertion included in API (Morgan Roderick)
  • 7094fe0 Convert tests for isWeakMap to unit tests (Morgan Roderick)
  • 2479dc9 Add test for isWeakSet assertion included in API (Morgan Roderick)
  • 060ea31 Convert tests for isWeakSet to unit tests (Morgan Roderick)
  • d579789 Add test for json assertion included in API (Morgan Roderick)
  • 745c9c3 Convert tests for json assertion to unit tests (Morgan Roderick)
  • a501c4a Add test for keys assertion included in API (Morgan Roderick)
  • 8f048a4 Convert tests for keys assertion to unit tests (Morgan Roderick)
  • eb3d756 Add test for less assertion included in API (Morgan Roderick)
  • d9c34d6 Convert tests for less assertion to unit tests (Morgan Roderick)
  • 17cca82 Add test for matchJson assertion included in API (Morgan Roderick)
  • 3c180f5 Convert tests for matchJson assertion to unit tests (Morgan Roderick)
  • dd15901 Add test for keys assertion included in API (Morgan Roderick)
  • 160196c Convert tests for keys assertion to unit tests (Morgan Roderick)
  • a5bfd2e Add test for less assertion included in API (Morgan Roderick)
  • 9f9659c Convert tests for less assertion to unit tests (Morgan Roderick)
  • 60ac699 Add test for matchJson assertion included in API (Morgan Roderick)
  • 9d52c7c Convert tests for matchJson assertion to unit tests (Morgan Roderick)
  • e7f65dc Add test for near assertion included in API (Morgan Roderick)
  • fc649dd Convert tests for near assertion to unit tests (Morgan Roderick)
  • 0825ec3 Add test for rejects assertion included in API (Morgan Roderick)
  • 1c526a8 Convert tests for rejects to unit tests (Morgan Roderick)
  • b8c4eec Add test for resolves assertion included in API (Morgan Roderick)
  • 2b9700f Convert tests for resolves assertion to unit tests (Morgan Roderick)
  • f891374 Add test for same assertion included in API (Morgan Roderick)
  • ef15eee Convert tests for same assertion to unit tests (Morgan Roderick)
  • 727336b Add test for tagName assertion included in API (Morgan Roderick)
  • 0682c81 Convert tests for tagName assertion to unit tests (Morgan Roderick)
  • 593fd3f Add test for isUint8ClampedArray assertion included in API (Morgan Roderick)
  • 72e9d30 Convert test for isUint8ClampedArray to unit tests (Morgan Roderick)
  • 9fdfc2c Add test for match assertion included in API (Morgan Roderick)
  • a235f3f Convert tests for match to unit test (Morgan Roderick)
  • 5b7e628 Add test for isMap assertion in use (Morgan Roderick)
  • c1ea169 Convert tests for isMap to unit test (Morgan Roderick)
  • cb34d2e Remove unused @sinonjs/formatio dependency (Morgan Roderick)
  • dc8d9a6 Replace formatio with node's util.inspect (Morgan Roderick)
  • 91d1f87 Add proxyquire dependency (Morgan Roderick)
  • f5637ce Bump lodash from 4.17.15 to 4.17.19 (dependabot[bot])

Released on 2020-10-02.

6.0.1

  • ed9ca59 Properly stringify objects without prototype (Rens Groothuijsen)

Released on 2020-06-29.

6.0.0

  • b83a12e npm audit (Maximilian Antoni)
  • 9c29ff1 test: exclude functions with underscore from public API assertions (Dominykas Blyžė)
  • 3010499 chore: remove dependency on bane (Dominykas Blyžė)
  • af98b83 Fix using a regexp matcher to assert exceptions (Maximilian Antoni)

Released by Maximilian Antoni on 2020-06-16.

5.1.0

  • f7cb8a9 Expose .equals (Morgan Roderick)

    This will make it easier for authors to write custom assertions

Released on 2020-05-27.

5.0.1

  • a02521c Fix assert.equals referencing deprecated assert.defined (Ola Christian Gundelsby)
  • c8c9ba0 Bump @sinonjs/samsam from 5.0.2 to 5.0.3 (dependabot-preview[bot])
  • b44daaa Bump @sinonjs/commons from 1.7.0 to 1.7.1 (dependabot-preview[bot])

Released by Maximilian Antoni on 2020-03-03.

5.0.0

  • af554b1 Upgrade formatio to v5, samsam to v5 and sinon to v9 (Maximilian Antoni)

    All three libraries have to be updated to consistently upgrade samsam.

  • f32b3a7 Add missing expectation property for resolves/rejects (Morgan Roderick)

    When these assertions were introduced in 1af3c778914f044e601ecfaed7dcb070d301e53c, we overlooked the expectation property.

  • 1590076 Drop Node 8 support (Morgan Roderick)

    As can be seen at https://github.com/nodejs/Release, Node 8 reached "end" of life on 2019-12-31, and is no longer actively supported.

    We will stop testing in Node 8 and start testing in Node 13, which will become the next LTS release from April 2020.

Released on 2020-02-28.

4.0.0

  • d475e62 Upgrade @sinonjs/formatio and @sinonjs/samsam (Morgan Roderick)

Released on 2019-12-21.