[Snyk] Upgrade tslib from 2.4.0 to 2.8.1#26
Conversation
Snyk has created this PR to upgrade tslib from 2.4.0 to 2.8.1. See this package in npm: tslib See this project in Snyk: https://app.snyk.io/org/newtonombese1/project/07db8baa-fc1b-41c8-b4d0-00bd4cea1cf0?utm_source=github&utm_medium=referral&page=upgrade-pr
There was a problem hiding this comment.
Summary of Changes
Hello @nejidevelops, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request, automatically generated by Snyk, aims to keep the project's dependencies up-to-date by upgrading the tslib library from version 2.4.0 to 2.8.1. This update helps in mitigating potential vulnerabilities and ensures compatibility with newer TypeScript features. The change also involves a minor version bump for the @iote/bricks-angular package and a significant expansion of its declared peer dependencies, leading to a comprehensive update of the package-lock.json file.
Highlights
- Dependency Upgrade: The primary change is the upgrade of the
tslibdependency from version2.4.0to2.8.1. This update incorporates several bug fixes and new features from thetsliblibrary, including improvements to ES module interop helpers, support for new ES features likeusingandawait usingdeclarations, and various internal fixes. - Package Version Bump: The
@iote/bricks-angularpackage itself has been updated from version2.0.0to2.0.5. - Expanded Peer Dependencies: The
package.jsonfor@iote/bricks-angularnow declares a significantly broader set of peer dependencies. This includes various Angular modules (@angular/cdk,@angular/flex-layout,@angular/forms,@angular/material,@angular/router),@iote/time,lodash,rxjs, andsubsink, indicating a more explicit declaration of its required ecosystem. - Lock File Regeneration: The
package-lock.jsonfile has been extensively regenerated to reflect the newtslibversion and the expanded peer dependencies. This includes updates to existing Angular peer dependency versions (e.g.,@angular/commonand@angular/corefrom14.0.5to14.3.0) and the addition of many new transitive dependencies.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Code Review
This PR updates tslib and other dependencies, including Angular packages. It introduces a deprecated package (@angular/flex-layout) and a transitive dependency (@firebase/util) with a higher Node.js requirement. Review the changes in package-lock.json and package.json to ensure compatibility and update the PR title and description to reflect all dependency changes.
| "version": "14.0.0-beta.41", | ||
| "resolved": "https://registry.npmjs.org/@angular/flex-layout/-/flex-layout-14.0.0-beta.41.tgz", | ||
| "integrity": "sha512-x1YcxqkdFlcbVXEy9ebCgW/F+7n/MXkEkwEcVEIPf5v5qn7HZsjQxgIj35Lf0amvMyF7h35prpoxO1uX5+ntFg==", | ||
| "deprecated": "This package has been deprecated. Please see https://blog.angular.io/modern-css-in-angular-layouts-4a259dca9127", |
There was a problem hiding this comment.
| "tslib": "^2.1.0" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20.0.0" |
There was a problem hiding this comment.
The update introduces a transitive dependency on @firebase/util@1.13.0, which requires Node.js version >=20.0.0. This is a significant increase from the requirements of other Angular packages in the project (which require ^14.15.0 || >=16.10.0). Please ensure your CI/CD pipelines and local development environments support Node.js 20+ to prevent this change from breaking your builds.
| }, | ||
| "dependencies": { | ||
| "tslib": "^2.3.0" | ||
| "tslib": "^2.8.1" |
Snyk has created this PR to upgrade tslib from 2.4.0 to 2.8.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 12 versions ahead of your current version.
The recommended version was released 9 months ago.
Release notes
Package name: tslib
-
2.8.1 - 2024-10-31
- Fix publish workflow by @ andrewbranch in #271
- Include non-enumerable keys in __importStar helper by @ rbuckton in #272
- Remove use of ES2015 syntax by @ andrewbranch in #275
-
2.8.0 - 2024-10-15
- Validate export structure of every entrypoint by @ andrewbranch in #269
- Add rewriteRelativeImportExtension helper by @ andrewbranch in #270
-
2.7.0 - 2024-08-23
- Implement deterministic collapse of
- Use global 'Iterator.prototype' for downlevel generators by @ rbuckton in #267
-
2.6.3 - 2024-06-04
- 'await using' normative changes by @ rbuckton in #258
-
2.6.2 - 2023-08-18
- Fix path to
-
2.6.1 - 2023-07-24
- Allow functions as values in __addDisposableResource by @ rbuckton in #215
- Stop using es6 syntax in the es6 file by @ andrewbranch in #216
-
2.6.0 - 2023-06-26
- Add helpers for
-
2.5.3 - 2023-06-02
- Do not reference tslib.es6.js from package.json exports by @ andrewbranch in #208
-
2.5.2 - 2023-05-18
-
2.5.1 - 2023-05-17
-
2.5.0 - 2023-01-26
-
2.4.1 - 2022-10-31
-
2.4.0 - 2022-04-22
from tslib GitHub release notesWhat's Changed
Full Changelog: v2.8.0...v2.8.1
What's Changed
Full Changelog: v2.7.0...v2.8.0
What's Changed
awaitinawait usingby @ rbuckton in #262Full Changelog: v2.6.3...v2.7.0
What's Changed
Full Changelog: v2.6.2...v2.6.3
What's Changed
exports["module"]["types"]by @ andrewbranch in #217Full Changelog: v2.6.1...v2.6.2
What's Changed
Full Changelog: 2.6.0...v2.6.1
What's Changed
usingandawait usingby @ rbuckton in #213Full Changelog: v2.5.3...2.6.0
What's Changed
Full Changelog: 2.5.2...v2.5.3
This release explicitly re-exports helpers to work around TypeScript's incomplete symbol resolution for tslib.
This release of tslib provides fixes for two issues.
First, it reverses the order of
inithooks provided by decorators to correctly reflect proposed behavior.Second, it corrects the
exportsfield of tslib'spackage.jsonand provides accurate declaration files so that it may be consumed under thenode16andbundlersettings formoduleResolution.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: