Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update test dependencies (major) #305

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 26, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
chai (source) ^4.3.10 -> ^5.1.1 age adoption passing confidence
husky ^8.0.3 -> ^9.0.11 age adoption passing confidence
sinon (source) ^17.0.1 -> ^18.0.0 age adoption passing confidence
supertest ^6.3.4 -> ^7.0.0 age adoption passing confidence

Release Notes

chaijs/chai (chai)

v5.1.1

Compare Source

What's Changed

New Contributors

Full Changelog: chaijs/chai@v5.1.0...v5.1.1

v5.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: chaijs/chai@v5.0.3...v5.1.0

v5.0.3

Compare Source

Fix bad v5.0.2 publish.

Full Changelog: chaijs/chai@v5.0.2...v5.0.3

v5.0.2

Compare Source

What's Changed

Full Changelog: chaijs/chai@v5.0.1...v5.0.2

v5.0.0

Compare Source

BREAKING CHANGES

  • Chai now only supports EcmaScript Modules (ESM). This means your tests will need to either have import {...} from 'chai' or import('chai'). require('chai') will cause failures in nodejs. If you're using ESM and seeing failures, it may be due to a bundler or transpiler which is incorrectly converting import statements into require calls.
  • Dropped support for Internet Explorer.
  • Dropped support for NodeJS < 18.
  • Minimum supported browsers are now Firefox 100, Safari 14.1, Chrome 100, Edge 100. Support for browsers prior to these versions is "best effort" (bug reports on older browsers will be assessed individually and may be marked as wontfix).

What's Changed

New Contributors

Full Changelog: chaijs/chai@4.3.1...v5.0.0

v4.4.1

Compare Source

What's Changed

Full Changelog: chaijs/chai@v4.4.0...v4.4.1

v4.4.0

Compare Source

What's Changed

Full Changelog: chaijs/chai@v4.3.10...v4.4.0

typicode/husky (husky)

v9.0.11

Compare Source

v9.0.10

Compare Source

v9.0.9

Compare Source

v9.0.8

Compare Source

v9.0.7

Compare Source

v9.0.6

Compare Source

v9.0.5

Compare Source

v9.0.4

Compare Source

v9.0.3

Compare Source

v9.0.2

Compare Source

What's Changed

New Contributors

Full Changelog: typicode/husky@v9.0.1...v9.0.2

v9.0.1

Compare Source

Kicking off the year with an exciting update!

TLDR;

Improved user experience and a (even) smaller package size while packing in more features!

👋 By the Way

I'm available for remote work (Front-end/Back-end mainly JS/TS but open to other stacks Rails, Go, Elixir). You can contact me at my mail: typicode at gmail 🙂

Introducing husky init

Adding husky to a project is now easier than ever. Although the installation process was straightforward, it often required consulting the documentation.

v8
npm pkg set scripts.prepare="husky install"
npm run prepare
npx husky add .husky/pre-commit "npm test"
v9
npx husky init

Adding a New Hook

Adding a hook is now as simple as creating a file. This can be accomplished using your favorite editor, a script or a basic echo command.

v8
npx husky add  .husky/pre-commit "npm test"
git add --chmod=+x .husky/pre-commit # On Windows
v9
echo "npm test" > .husky/pre-commit

Further Size Reduction

v8 was already the most compact Git hooks manager at approximately 6kB.

v9 takes this a step further, reducing the size to just 3kB, likely making it the smallest devDependency in your toolkit.

To give you an idea of how small it is, the biggest file in the project is the MIT license 😄

More to Come

Additional features are in the pipeline for v9. Stay tuned 🙌

Other Changes

  • Enhanced security with CI and npm --provenance for safer publishing.
  • Added $XDG_CONFIG_HOME support. Move ~/.huskyrc to ~/.config/husky/init.sh for centralized configuration.
  • Fixed permission issue for Windows-created hooks; they no longer need to be executable.
  • Removed husky install. Use husky or husky some/dir for the same functionality (deprecation notice to be added).
  • Modified behavior when .git is missing; it now triggers a warning instead of failure.
  • Replaced HUSKY_DEBUG=1 with HUSKY=2 for debugging.
  • Updated the Husky API for module usage.
  • Transitioned to ESM for module usage.
  • Dropped support for Node 14 and 16.
  • Revamped docs.

How to Migrate

v9 is backward compatible with v8, allowing you to freely upgrade and migrate your hooks later.

package.json

{
  "scripts": {
-   "prepare": "husky install"
+   "prepare": "husky"
  }
}

.husky/pre-commit

- #!/usr/bin/env sh
- . "$(dirname -- "$0")/_/husky.sh"
npm test
sinonjs/sinon (sinon)

v18.0.0

Compare Source

This is what 17.0.2 should have been, as that contained two breaking changes. After updating
Nise we are down to one breaking change, which only affects sinon-test (which has been updated),
so most people are not affected. The legacyRoutes flag that is currently enabled in Nise by default
will at some later version be disabled. We will then issue a little migration note.

  • 01d45312
    Use Nise 6 with legacyRoutes flag enabled (Carl-Erik Kopseng)

    This should be disabled in a future Sinon version by default.

  • c618edc5
    fix #​2594: remove needless sandbox creation (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2024-05-15.

v17.0.2

Compare Source

  • f6dca0ba
    upgrade packages (#​2595) (Carl-Erik Kopseng)
  • 5025d001
    Avoid return and callArg* clearing each other's state (#​2593) (Carl-Erik Kopseng)
    • Partially revert "fix returns does not override call through (#​2567)"
    • revert to the old manual clearing of props
  • ed068a88
    Bump ip from 1.1.8 to 1.1.9 (#​2587) (dependabot[bot])
  • ec4d592e
    fix #​2589: avoid invoking getter as side-effect (#​2592) (Carl-Erik Kopseng)
  • 9972e1e3
    Fix typo in mocks documentation (#​2591) (Eduardo de la Cruz Palacios)
  • 52e6e4c5
    chore: prefer cache option of setup-node (Morgan Roderick)
  • 08da1235
    Bump actions/cache from 3 to 4 (dependabot[bot])
  • 404ef47e
    Bump nokogiri from 1.14.3 to 1.16.2 (dependabot[bot])
  • fd79612c
    Update Bug_report.md (Carl-Erik Kopseng)
  • 1fbc812a
    Re-add about (Carl-Erik Kopseng)
  • fc8f6c3e
    Fix formatting :clown: (Carl-Erik Kopseng)
  • c57e38ae
    Remove old template (Carl-Erik Kopseng)
  • 754bf7a9
    Update Bug_report.md (Carl-Erik Kopseng)
  • 87eed9d2
    Fix some typos at code comments (#​2581) (EliyahuMachluf)
  • cbae6997
    Link to createStubInstance util.md docs in stubs.md (#​2577) (Daniel Kaplan)
  • adcf936d
    Fix Mocha watch task by delegating to Node (#​2573) (Carl-Erik Kopseng)
  • 30ad2372
    prettier:write (Carl-Erik Kopseng)
  • 45c4d6b9
    Remove outdated info from README (#​2571) (Carl-Erik Kopseng)
  • 6c9f5c2a
    Add a notice that the Fake Timers API doc is incomplete (#​2570) (Carl-Erik Kopseng)
  • 93db3ef3
    breaking: Remove sinon.defaultConfig and related modules (#​2565) (Carl-Erik Kopseng)
    • breaking: Remove sinon.defaultConfig and related modules

    default-config and get-config are leftovers from when Sinon

    shipped with sinon.test (now the independent NPM module

    'sinon-test').

Released by Carl-Erik Kopseng on 2024-05-07.

ladjs/supertest (supertest)

v7.0.0

Compare Source

  • Merge pull request #​834 from Bruception/master 225118c
  • Fix TestAgent not inheriting Agent properties f290431
  • fix: bump deps, drop Node.js v<14.16.0 1e18c20

Configuration

📅 Schedule: Branch creation - "before 2pm on Tuesday" in timezone Europe/Stockholm, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title chore(deps): update dependency @types/supertest to v6 chore(deps): update test dependencies (major) Jan 2, 2024
@renovate renovate bot force-pushed the renovate/major-tests branch 2 times, most recently from fe2ecf7 to d1cd38e Compare January 16, 2024 01:51
@renovate renovate bot force-pushed the renovate/major-tests branch 2 times, most recently from 79b9aaa to 602eebb Compare February 6, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants