Skip to content

Bump @hyperjump/pact from 1.5.1 to 2.0.1 in /language-server - #196

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/language-server/hyperjump/pact-2.0.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/language-server/hyperjump/pact-2.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 18, 2026

Copy link
Copy Markdown
Contributor

Bumps @hyperjump/pact from 1.5.1 to 2.0.1.

Release notes

Sourced from @​hyperjump/pact's releases.

v2.0.1

No changes to the code.

v2.0.0

A rewrite of @hyperjump/pact. The documentation is now at https://hyperjump.io/pact/.

What's new

  • Faster. The iterators are hand-written classes instead of generators. Sync pipelines are 2 to 15 times faster than in v1, and async pipelines are about 1.5 times faster. See Benchmarks for how pipelines compare with array methods.
  • compose. It builds a pipeline without a source, which you can use with any number of iterables or put in another pipeline. See Pipelines.
  • New functions. flatMap, forEach, and zipKeyed. range takes a step, and zip takes any number of iterables and has shortest, longest, and strict modes.
  • Native helper methods. Every iterator pact returns is an Iterator, so the native helper methods work on it. See Native helpers.
  • Async iterators read in order and can be disposed. Overlapping next() calls are queued, and every async iterator has [Symbol.asyncDispose](). See Async.

Breaking changes

  • Every function is a step. It takes only its configuration and returns a function that takes the iterable: map(fn, iterable) is map(fn)(iterable), or a step in a pipe. flatten takes only the depth.
  • The root module has only the sync functions. The async ones are in @hyperjump/pact/async, without the async prefix: asyncMap is map from there. The types lost the prefix too.
  • collectArray, collectSet, collectMap, and collectObject are toArray, toSet, toMap, and toObject.
  • zip takes an array of iterables instead of two arguments, and stops when any of them is done. Use { mode: "longest" } to keep going.
  • Callbacks get each value's index as the argument after the value, so map(parseInt) is wrong. Use map((s) => parseInt(s)).
  • reduce without an initial value starts with the first value, and throws a TypeError for an empty iterable.
  • head closes the iterator it reads from.
  • concat throws a TypeError for anything that isn't an iterable object, including a string.
  • A step gets an iterator from its iterable when it's called with it, so something that isn't iterable throws right away.
  • The functions return an IteratorObject instead of a Generator, without a throw() method.
  • It needs Node.js 24 or later, or Chrome 122, Firefox 131, or Safari 18.4 or later. Its types need TypeScript 5.6 or later.

See Migrating from v1 for each change and what to do about it.

Commits
  • fde4948 2.0.1
  • a454334 Rewrite the readme
  • 80c8cee Add the homepage to package.json
  • adffa4c 2.0.0
  • eb6e995 Require Node 24 in engines
  • 52d228b Format function names in the docs' headings as code
  • 48a3368 Drop the README's note that v2 is unpublished
  • e73f5b7 Tidy the declarations and the types inside the code
  • af465e9 Make the types say what the functions do
  • 832bace Require Node 22 in engines
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@hyperjump/pact](https://github.com/hyperjump-io/pact) from 1.5.1 to 2.0.1.
- [Release notes](https://github.com/hyperjump-io/pact/releases)
- [Commits](hyperjump-io/pact@v1.5.1...v2.0.1)

---
updated-dependencies:
- dependency-name: "@hyperjump/pact"
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants