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

Bump itertools from 1.7.1 to 2.2.0 #1040

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 2, 2024

Bumps itertools from 1.7.1 to 2.2.0.

Release notes

Sourced from itertools's releases.

v2.2.0

  • Move to ESM by default
  • Drop support for node 12.x and 14.x
    (they probably still work, but they're EoL)

v2.1.2

Improve tree-shakability when used in bundlers.

v2.1.1

  • Improve documentation
  • Fix a minor edge case bug in reduce() (when first argument in iterable is undefined, and the predicate function was not explicitly set)

v2.1.0

  • The following functions retain richer type information about their arguments:

    • ifilter()
    • filter()
    • partition()

    For example, TypeScript will now know the following:

    const items = [3, 'hi', -7, 'foo', 13];
    function isNum(value: unknown): value is number {
    return typeof value === 'number';
    }
    const numbers: number[] = filter(items, isNum); // ✅
    const [numbers, strings] = partition(items, isNum); // ✅
    //     ^^^^^^^  ^^^^^^^ string[]
    //     number[]

  • Add new find(iterable, pred) function, which is almost the same as first(iterable, pred) but behaves slightly more intuitive in the case where no predicate function is given.

  • Fix bug in chunked() with size=1

v2.0.0

Breaking changes:

  • Rewritten source code in TypeScript (instead of Flow)
  • Modern ESM and CJS dual exports (fully tree-shakable when using ESM)
  • Massively reduced bundle size
  • Targeted ES2015 (instead of ES5)
  • Support only TypeScript versions >= 4.3
  • Drop Flow support[^1]
  • Drop Node 10.x support
  • icompact, compact, and compactObject functions will now also remove null values, not only undefined

... (truncated)

Changelog

Sourced from itertools's changelog.

v2.2.0

  • Move to ESM by default
  • Drop support for node 12.x and 14.x
    (they probably still work, but they're EoL)

v2.1.2

  • Improve tree-shakability when used in bundlers

v2.1.1

  • Improve documentation
  • Fix a bug in reduce() in a very small edge case

v2.1.0

The following functions retain richer type information about their arguments:

  • ifilter()
  • filter()
  • partition()

For example, TypeScript will now know the following:

const items = [3, "hi", -7, "foo", 13];
function isNum(value: unknown): value is number {
return typeof value === "number";
}
const numbers: number[] = filter(items, isNum); // ✅
const [numbers, strings] = partition(items, isNum); // ✅
//     ^^^^^^^  ^^^^^^^ string[]
//     number[]

  • Add new find(iterable, pred) function, which is almost the same as first(iterable, pred) but behaves slightly more intuitive in the case where no predicate function is given.

  • Fix bug in chunked() with size=1

v2.0.0

Breaking changes:

  • Rewritten source code in TypeScript (instead of Flow)

... (truncated)

Commits

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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 [itertools](https://github.com/nvie/itertools) from 1.7.1 to 2.2.0.
- [Release notes](https://github.com/nvie/itertools/releases)
- [Changelog](https://github.com/nvie/itertools/blob/main/CHANGELOG.md)
- [Commits](nvie/itertools@v1.7.1...v2.2.0)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 2, 2024

Looks like itertools is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Jan 2, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/itertools-2.2.0 branch January 2, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants