Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: bump deps and change node engine #276

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

HassanBahati
Copy link
Member

@HassanBahati HassanBahati commented Jul 9, 2025

Description

  • Change node engine to 20.x || 22.x || 24.x
  • Bump dependencies

Code sample

N/A

@HassanBahati HassanBahati changed the title chore: bump deps chore: bump deps and change node engine Jul 9, 2025
@@ -54,15 +54,15 @@
"prettier": "^1.19.1",
"sinon": "^7.5.0",
"tslint": "^5.20.0",
"typescript": "^4.2.5"
"typescript": "^5.8.3"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bumping typescript to latest major version because the errors below pop up when it is left current version in the project, the errors below come up;

MacBook-Pro firebase-functions-test % npm test

> [email protected] pretest
> node_modules/.bin/tsc

node_modules/@google-cloud/storage/build/cjs/src/crc32c.d.ts:6:39 - error TS2315: Type 'Int32Array' is not generic.

6 declare const CRC32C_EXTENSION_TABLE: Int32Array<ArrayBuffer>;
                                        ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@google-cloud/storage/build/cjs/src/crc32c.d.ts:115:45 - error TS2315: Type 'Int32Array' is not generic.

115     static readonly CRC32C_EXTENSION_TABLE: Int32Array<ArrayBuffer>;
                                                ~~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors in the same file, starting at: node_modules/@google-cloud/storage/build/cjs/src/crc32c.d.ts:6

on digging a bit into this, typescript version 4.5 seems to have introduced improvements to built-in type definitions for TypedArray types (like Int32Array, Uint8Array, etc.) and Int32Array was made an error, by defining Int32Array more strictly

@cabljac cabljac requested a review from Copilot July 10, 2025 08:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates project dependencies and restricts the supported Node.js engine versions.

  • Bump lodash and its type definitions to patch versions
  • Upgrade TypeScript to 5.8.3
  • Change the Node.js engine field to only allow LTS lines (20.x, 22.x, 24.x)
Comments suppressed due to low confidence (2)

package.json:41

  • Please include the corresponding lockfile updates (package-lock.json or yarn.lock) in this PR to ensure the bumped dependencies are consistently tracked.
    "@types/lodash": "^4.17.20",

package.json:65

  • Make sure to update any CI or local test configurations to cover these new Node.js engine versions so tests continue to run against the intended LTS releases.
    "node": "20.x || 22.x || 24.x"

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.

1 participant