Skip to content

chore: bump to Node 18 ES2022 to drop tslib#406

Merged
JounQin merged 1 commit intomasterfrom
feat/node_18
Jun 1, 2025
Merged

chore: bump to Node 18 ES2022 to drop tslib#406
JounQin merged 1 commit intomasterfrom
feat/node_18

Conversation

@JounQin
Copy link
Member

@JounQin JounQin commented Jun 1, 2025

Important

Update Node.js requirement to 18, remove tslib, and target ES2022 in TypeScript configuration.

  • Node.js Version:
    • Updated Node.js version requirement to 18 in @pkgr/browser, @pkgr/imagemin, and @pkgr/rollup.
  • Dependencies:
    • Removed tslib from @pkgr/browser, @pkgr/imagemin, and @pkgr/rollup.
  • TypeScript Configuration:
    • Updated tsconfig.base.json to target ES2022.
  • Build Scripts:
    • Modified build:r script in root package.json to use ES2022 target.

This description was created by Ellipsis for 271adfa. You can customize this summary. It will automatically update as commits are pushed.


Summary by CodeRabbit

  • Chores
    • Increased the minimum required Node.js version to 18 for improved compatibility and security.
    • Updated and simplified dependency versions across multiple packages.
    • Removed unused dependencies to streamline package management.
    • Adjusted build scripts for more consistent and centralized CLI usage.
    • Updated TypeScript configuration to target ES2022 for enhanced language features.

@JounQin JounQin requested a review from Copilot June 1, 2025 02:15
@JounQin JounQin self-assigned this Jun 1, 2025
@changeset-bot
Copy link

changeset-bot bot commented Jun 1, 2025

🦋 Changeset detected

Latest commit: 271adfa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@pkgr/imagemin Major
@pkgr/rollup Major
@pkgr/browser Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Jun 1, 2025

Walkthrough

The changes update Node.js engine requirements to version 18 across multiple package manifests, remove the "tslib" dependency, and adjust dependency versions for consistency. The TypeScript configuration now explicitly targets ES2022. In addition, the build process is refactored by centralizing the CLI invocation through a new script in the root package.json and updating build command options.

Changes

File(s) Change Summary
package.json Added "r" script for CLI invocation; updated "build:r" script to call "yarn r" with esbuild options.
packages/browser/package.json Raised Node.js engine to 18; removed "tslib"; pinned "open" and simplified "picocolors" versions.
packages/imagemin/package.json
packages/rollup/package.json
Raised Node.js engine to 18; removed "tslib" dependency.
tsconfig.base.json Added explicit compilerOptions.target as ES2022 to TypeScript config.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant Yarn as Yarn CLI
    participant TSX as TSX Runtime
    participant CLI as CLI Script

    Dev->>Yarn: yarn build:r
    Yarn->>Yarn: Run "r" script with flags and esbuild option
    Yarn->>TSX: tsx packages/rollup/src/cli.ts -f cjs -d false -e named --esbuild '{target:es2022}'
    TSX->>CLI: Execute CLI logic
Loading

Poem

🐇
A hop to Node.js eighteen,
With ES2022 in between.
"tslib" we now retire,
And scripts with yarn inspire.
Our builds are neat and bright,
As rabbits leap into the light!
🌱✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

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 bumps the Node version to 18 and updates the TypeScript target to ES2022, while removing the dependency on tslib. Key changes include:

  • Updating tsconfig.base.json to extend the Node 16 config with additional compilerOptions for ES2022.
  • Bumping the Node engine requirement to >=18 and removing tslib from several package.json files.
  • Modifying the build scripts in package.json to leverage the updated Node version and ES2022 target.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tsconfig.base.json Updated to configure ES2022 target for TypeScript.
packages/rollup/package.json Updated Node engine requirement and removed tslib dependency.
packages/imagemin/package.json Updated Node engine requirement and removed tslib dependency.
packages/browser/package.json Updated Node engine requirement and adjusted dependencies to remove tslib.
package.json Updated build scripts to align with the Node and ES2022 changes; added new "r" script.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2025

📊 Package size report   No changes

File Before After
Total (Includes all files) 3.1 MB 3.1 MB
Tarball size 1.1 MB 1.1 MB
Unchanged files
File Size
.changeset/config.json 309 B
.changeset/README.md 510 B
.codesandbox/ci.json 76 B
.editorconfig 145 B
.gitattributes 35 B
.github/workflows/autofix.yml 917 B
.github/workflows/ci.yml 1.7 kB
.github/workflows/pkg-pr-new.yml 641 B
.github/workflows/pkg-size.yml 723 B
.github/workflows/release.yml 1.5 kB
.github/workflows/vercel.yml 1.0 kB
.markuplintrc 43 B
.nano-staged.js 48 B
.nvmrc 6 B
.prettierignore 6 B
.remarkrc 42 B
.renovaterc 49 B
.simple-git-hooks.js 49 B
.stylelintignore 99 B
.stylelintrc 42 B
.yarn/plugins/plugin-prepare-lifecycle.cjs 202 B
.yarn/releases/yarn-4.9.1.cjs 3.0 MB
.yarnrc.yml 397 B
CHANGELOG.md 486 B
docs/App.tsx 1.2 kB
docs/global.css 321 B
docs/index.tsx 299 B
eslint.config.js 302 B
index.html 402 B
LICENSE 1.1 kB
package.json 2.9 kB
packages/browser/CHANGELOG.md 1.4 kB
packages/browser/index.d.cts 60 B
packages/browser/index.ts 4.7 kB
packages/browser/openChrome.applescript 2.5 kB
packages/browser/package.json 1.1 kB
packages/browser/tsconfig.json 139 B
packages/core/CHANGELOG.md 2.5 kB
packages/core/index.d.cts 54 B
packages/core/package.json 957 B
packages/core/src/constants.ts 538 B
packages/core/src/helpers.ts 1.9 kB
packages/core/src/index.ts 60 B
packages/core/tsconfig.json 154 B
packages/es-modules/CHANGELOG.md 5.2 kB
packages/es-modules/index.d.cts 64 B
packages/es-modules/index.ts 1.4 kB
packages/es-modules/package.json 1.0 kB
packages/es-modules/README.md 3.7 kB
packages/es-modules/test/test.spec.ts 936 B
packages/es-modules/tsconfig.json 139 B
packages/imagemin/CHANGELOG.md 9.0 kB
packages/imagemin/index.d.cts 57 B
packages/imagemin/package.json 1.3 kB
packages/imagemin/src/cli.ts 508 B
packages/imagemin/src/index.ts 1.2 kB
packages/imagemin/tsconfig.json 154 B
packages/rollup/CHANGELOG.md 22.0 kB
packages/rollup/package.json 1.6 kB
packages/rollup/shim.d.ts 647 B
packages/rollup/src/cli.ts 4.0 kB
packages/rollup/src/config.ts 11.9 kB
packages/rollup/tsconfig.json 132 B
packages/umd-globals/CHANGELOG.md 6.2 kB
packages/umd-globals/index.d.cts 66 B
packages/umd-globals/index.ts 1.8 kB
packages/umd-globals/package.json 919 B
packages/umd-globals/README.md 3.4 kB
packages/umd-globals/test/test.spec.ts 1.9 kB
packages/umd-globals/tsconfig.json 139 B
packages/utils/CHANGELOG.md 12.2 kB
packages/utils/index.d.cts 51 B
packages/utils/package.json 961 B
packages/utils/src/constants.ts 497 B
packages/utils/src/helpers.ts 2.8 kB
packages/utils/src/index.ts 117 B
packages/utils/src/monorepo.ts 691 B
packages/utils/tsconfig.json 154 B
README.md 4.1 kB
test/global.d.ts 41 B
test/tsconfig.json 96 B
tsconfig.base.json 41 B
tsconfig.json 395 B
vercel.json 190 B
vite.config.ts 544 B
vitest.config.ts 342 B

🤖 This report was automatically generated by pkg-size-action

@socket-security
Copy link

socket-security bot commented Jun 1, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedvalidate-npm-package-license@​3.0.410010010076100
Addedpromise-retry@​2.0.11001009880100

View full report

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 9a4c03b in 1 minute and 28 seconds. Click for details.
  • Reviewed 103 lines of code in 5 files
  • Skipped 1 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. package.json:17
  • Draft comment:
    Verify that the --esbuild argument '--esbuild '{target:es2022}'' is correctly parsed on all platforms; consider using JSON-quoted syntax if issues arise.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to verify the parsing of an argument across all platforms, which falls under the rule of not asking the author to double-check or ensure behavior. It also suggests using JSON-quoted syntax if issues arise, which is a suggestion but is conditional on verification, making it less direct. This comment is not approved as it violates the rules.
2. packages/imagemin/package.json:41
  • Draft comment:
    The tslib dependency has been removed. Confirm that no parts of the code rely on tslib helpers and that native alternatives are in place.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to confirm that no parts of the code rely on tslib helpers after its removal. This is a request for confirmation, which violates the rule against asking the PR author to confirm their intention or to double-check things.
3. packages/rollup/package.json:50
  • Draft comment:
    Removal of tslib dependency in rollup package; ensure that any helper functions previously provided by tslib are now handled correctly.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is related to a dependency change, specifically the removal of the tslib dependency. The comment asks the author to ensure that helper functions previously provided by tslib are handled correctly. This falls under the rule of not commenting on dependency changes or asking the author to ensure things are handled correctly.
4. tsconfig.base.json:2
  • Draft comment:
    While targeting ES2022, the config still extends '@1stg/tsconfig/node16'. Confirm there are no conflicting compiler options; consider updating to a Node18-specific config if available.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The comment suggests changing to node18 config, but this is speculative - we don't know if there are actual conflicts. The author included documentation link showing they deliberately chose ES2022 target. This feels like asking the author to double-check their intention, which violates our rules. The comment also uses "confirm" language which is explicitly discouraged. The comment might be identifying a real technical issue with TypeScript configuration that could cause problems. Node version and ES target mismatches can cause runtime issues. While configuration mismatches can be problematic, the author shows awareness of version mapping through the included comment link. Without concrete evidence of an actual conflict, this is just speculation and asking for confirmation. Delete the comment as it's speculative and asks for confirmation rather than pointing out a definite issue. The author shows awareness of version mapping in their comment.

Workflow ID: wflow_yCvruP5gdFI1a1Uj

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
tsconfig.base.json (1)

2-3: Consider using a Node18 base config
You’re extending @1stg/tsconfig/node16 but targeting ES2022. If a node18 preset exists, switching to it could avoid the manual override and keep configs aligned.

package.json (1)

17-17: Avoid Windows quoting issues
Single quotes around {target:es2022} may not work on Windows shells.

Apply this diff to ensure cross-platform compatibility:

-    "build:r": "yarn r -f cjs -d false -e named --esbuild '{target:es2022}'",
+    "build:r": "yarn r -f cjs -d false -e named --esbuild \"{target:es2022}\"",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 65c4cc5 and 9a4c03b.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (5)
  • package.json (2 hunks)
  • packages/browser/package.json (2 hunks)
  • packages/imagemin/package.json (2 hunks)
  • packages/rollup/package.json (1 hunks)
  • tsconfig.base.json (1 hunks)
🧰 Additional context used
🪛 Biome (1.9.4)
tsconfig.base.json

[error] 4-4: Expected a property but instead found '// https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-18'.

Expected a property here.

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (8)
packages/imagemin/package.json (2)

12-12: Bump Node engine to 18
Aligns with the repo-wide requirement for Node.js 18+.


44-44: Verify tinyglobby retention vs summary
The AI summary indicated that tinyglobby was removed alongside tslib, yet it still appears here. Please confirm whether this dependency should indeed be retained or if it was meant to be dropped.

Likely an incorrect or invalid review comment.

packages/rollup/package.json (1)

12-12: Bump Node engine to 18
Consistent with other packages now targeting Node.js 18+.

packages/browser/package.json (3)

12-12: Bump Node engine to 18
Aligns this package with the monorepo’s minimum Node.js 18 requirement.


34-34: Pin open dependency version
Restricts open to ^10.1.2, ensuring a known stable release.


35-35: Simplify picocolors version
Updated to ^1.1.1, removing unnecessary precision.

tsconfig.base.json (1)

2-6: Override TS target to ES2022
Explicitly sets target to ES2022 to leverage Node.js 18 ECMAScript features. JSONC supports inline comments, so the URL comment is expected.

🧰 Tools
🪛 Biome (1.9.4)

[error] 4-4: Expected a property but instead found '// https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-18'.

Expected a property here.

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)

package.json (1)

27-27: Add r script to invoke Rollup CLI
Introduces a consistent entry point for running the Rollup CLI via tsx.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 1, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 1, 2025

Open in StackBlitz

@pkgr/browser

npm i https://pkg.pr.new/@pkgr/browser@406

@pkgr/core

npm i https://pkg.pr.new/@pkgr/core@406

@pkgr/es-modules

npm i https://pkg.pr.new/@pkgr/es-modules@406

@pkgr/imagemin

npm i https://pkg.pr.new/@pkgr/imagemin@406

@pkgr/rollup

npm i https://pkg.pr.new/@pkgr/rollup@406

@pkgr/umd-globals

npm i https://pkg.pr.new/@pkgr/umd-globals@406

@pkgr/utils

npm i https://pkg.pr.new/@pkgr/utils@406

commit: 271adfa

@codecov
Copy link

codecov bot commented Jun 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 9.85%. Comparing base (65c4cc5) to head (271adfa).
Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #406   +/-   ##
======================================
  Coverage    9.85%   9.85%           
======================================
  Files          12      12           
  Lines         426     426           
  Branches      186     189    +3     
======================================
  Hits           42      42           
  Misses        384     384           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2025

Deploy preview for pkgr ready!

✅ Preview
https://pkgr-3zct7rng0-1stg.vercel.app

Built with commit 271adfa.
This pull request is being automatically deployed with vercel-action

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed 271adfa in 1 minute and 36 seconds. Click for details.
  • Reviewed 116 lines of code in 6 files
  • Skipped 1 files when reviewing.
  • Skipped posting 7 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .changeset/short-pets-beam.md:1
  • Draft comment:
    Changeset file format looks good; ensure the version bumps are intentional.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. package.json:17
  • Draft comment:
    Review the '--esbuild' flag value; single quotes around {target:es2022} might be misinterpreted in some shells.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% Shell interpretation of quotes can be tricky, but this is in package.json which is parsed as JSON, not directly by a shell. The actual shell interpretation would depend on how yarn and the underlying tools handle the arguments. Without strong evidence that this causes actual problems, this seems speculative. The current format may actually be safer in some shells. I could be wrong about how yarn handles script arguments. There might be specific shell environments where this is a real issue. Without concrete evidence of a problem or documentation showing the correct format, this comment is speculative and could potentially make things worse. The comment should be deleted as it makes a speculative suggestion about shell behavior without clear evidence of an actual problem.
3. packages/browser/package.json:12
  • Draft comment:
    Node engine updated to '>=18'; ensure documentation and CI are updated to reflect this breaking change.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. packages/imagemin/package.json:12
  • Draft comment:
    Node engine bumped to '>=18' and tslib removed; confirm that all image-minification workflows still work as expected.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. packages/rollup/package.json:12
  • Draft comment:
    Updated Node engine to '>=18'; ensure this breaking change is well documented for users.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
6. packages/rollup/package.json:50
  • Draft comment:
    Removal of tslib dependency appears intentional; verify that no helper functions are missing post-removal.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
7. tsconfig.base.json:1
  • Draft comment:
    Now targeting ES2022 while still extending a Node16 config; consider switching to a Node18-specific config if available.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_U4tPimgl5xTKAIjT

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
tsconfig.base.json (2)

4-6: Align TypeScript target with Node 18 features.
Setting "target": "ES2022" is exactly what's needed to leverage Node 18 syntax. The inline link is a useful reference.

Optionally, if your base config doesn’t already include it, add "lib": ["ES2022"] under compilerOptions to ensure proper type definitions for new built-ins.

🧰 Tools
🪛 Biome (1.9.4)

[error] 4-4: Expected a property but instead found '// https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-18'.

Expected a property here.

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


4-5: Suppress linter errors on JSONC comments.
Biome is flagging the // … comment as invalid JSON. Since tsconfig files support JSONC, either adjust Biome’s parser settings to allow comments in .json or rename this file to .jsonc to eliminate false positives.

🧰 Tools
🪛 Biome (1.9.4)

[error] 4-4: Expected a property but instead found '// https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-18'.

Expected a property here.

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9a4c03b and 271adfa.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (6)
  • .changeset/short-pets-beam.md (1 hunks)
  • package.json (2 hunks)
  • packages/browser/package.json (2 hunks)
  • packages/imagemin/package.json (2 hunks)
  • packages/rollup/package.json (1 hunks)
  • tsconfig.base.json (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • .changeset/short-pets-beam.md
  • packages/rollup/package.json
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/imagemin/package.json
  • packages/browser/package.json
  • package.json
🧰 Additional context used
🪛 Biome (1.9.4)
tsconfig.base.json

[error] 4-4: Expected a property but instead found '// https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-18'.

Expected a property here.

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)


[error] 5-5: End of file expected

Use an array for a sequence of values: [1, 2]

(parse)

⏰ Context from checks skipped due to timeout of 90000ms (12)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Lint and Test with Node.js 20 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 on macos-latest
  • GitHub Check: Lint and Test with Node.js 22 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 on windows-latest
🔇 Additional comments (1)
tsconfig.base.json (1)

2-2: Verify base configuration alignment.
The extends field still points to @1stg/tsconfig/node16. Since we've bumped to Node 18/ES2022, ensure there's no mismatch—either switch to a Node 18–specific base config (e.g. @1stg/tsconfig/node18) or confirm that your Node 16 config fully covers ES2022 features.

@JounQin JounQin merged commit 7f30c63 into master Jun 1, 2025
36 checks passed
@JounQin JounQin deleted the feat/node_18 branch June 1, 2025 02:42
@JounQin JounQin mentioned this pull request Jun 1, 2025
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.

2 participants