Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/fine-carrots-open.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"cnpj-utils": patch
"cpf-utils": patch
"br-utils": patch
"@lacussoft/cnpj-fmt": patch
"@lacussoft/cnpj-gen": patch
"@lacussoft/cnpj-val": patch
"@lacussoft/cpf-fmt": patch
"@lacussoft/cpf-gen": patch
"@lacussoft/cpf-val": patch
---

Update overall dependencies.
629 changes: 430 additions & 199 deletions bun.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@
"test:cpf-utils": "bun run --filter './**/cpf-utils' test"
},
"devDependencies": {
"@changesets/cli": "^2.29.6",
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@changesets/cli": "^2.29.8",
"@commitlint/cli": "^20.2.0",
"@commitlint/config-conventional": "^20.2.0",
"commitizen": "^4.3.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.34.0",
"eslint-config-any": "^2.1.1",
"eslint": "^9.39.1",
"eslint-config-any": "^2.2.1",
"husky": "^9.1.7",
"lint-staged": "^16.1.5",
"prettier": "^3.6.2",
"typescript": "^5.9.2"
"lint-staged": "^16.2.7",
"prettier": "^3.7.4",
"typescript": "^5.9.3"
}
}
18 changes: 9 additions & 9 deletions packages/br-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@
"test:ci": "bun test"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@types/node": "^22.17.2",
"rollup": "^4.47.1",
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^22.19.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
Comment on lines +68 to +79
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🌐 Web query:

Rollup 4.53.3 @rollup/plugin-babel 6.1.0 @rollup/plugin-commonjs 29.0.0 @rollup/plugin-node-resolve 16.0.3 @rollup/plugin-typescript 12.3.0 compatibility

💡 Result:

Short answer: Yes — Rollup 4.53.3 is compatible with those plugin versions, but check Node and peer-deps and a couple of usage details.

Key points

  • Rollup 4.53.3 (released Nov 19, 2025) — update to Rollup 4 requires Node 18+ and “update all your Rollup plugins to their latest versions.” Test your config after upgrading. [1][2]
  • @rollup/plugin-babel 6.1.0 — current plugin release; works with Rollup 4 (ensure babelHelpers config and place commonjs before babel if using both). [3]
  • @rollup/plugin-commonjs 29.0.0 — current release; compatible with Rollup 4. Put commonjs before babel in plugins array when needed. [4]
  • @rollup/plugin-node-resolve 16.0.3 — current release; compatible with Rollup 4. [5]
  • @rollup/plugin-typescript 12.3.0 — current release; compatible with Rollup 4 but requires installing TypeScript and tslib as peer deps (and node LTS). Test TypeScript-specific config after upgrade. [6]

Recommendations

  • Use Node 18+ (Rollup 4 requirement). [2]
  • Install plugin peer deps (typescript, tslib, @babel/core, etc.) and run your full build/test suite after upgrading. [3][6]
  • If you hit type errors from plugin typing changes, update TypeScript and plugin types and check the Rollup migration guide for breaking changes. [2]

Sources
[1] Rollup release v4.53.3 (GitHub).
[2] Rollup migration / Rollup 4 prerequisites (rollupjs.org).
[3] @rollup/plugin-babel (jsdocs / npm).
[4] @rollup/plugin-commonjs (jsdocs).
[5] @rollup/plugin-node-resolve (jsdocs).
[6] @rollup/plugin-typescript (npm / Snyk).


Verify Node version requirement and plugin peer dependencies after Rollup ecosystem upgrade.

The devDependency updates are compatible: Rollup 4.53.3 works with @rollup/plugin-babel 6.1.0, @rollup/plugin-commonjs 29.0.0, @rollup/plugin-node-resolve 16.0.3, and @rollup/plugin-typescript 12.3.0. However, Rollup 4 requires Node 18+, and the plugins require peer dependencies (typescript, tslib, @babel/core) to be installed. Additionally, ensure @rollup/plugin-commonjs is placed before @rollup/plugin-babel in the plugins array if both are used. Run the full build and test suite after upgrading to verify the configuration works.

🤖 Prompt for AI Agents
In packages/br-utils/package.json around lines 68 to 79, after upgrading Rollup
and its plugins ensure the package declares the Node engine requirement (set
engines.node >=18) and that required peer dependencies are present in
devDependencies (install/types as needed: typescript is present but add/verify
tslib and @babel/core), update package.json devDependencies accordingly, adjust
your rollup config to place @rollup/plugin-commonjs before @rollup/plugin-babel
in the plugins array, and then run the full build and test suite to confirm the
configuration works.

}
}
20 changes: 10 additions & 10 deletions packages/cnpj-fmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@
"dependencies": {
"deepmerge": "^4.3.1",
"html-escaper": "^3.0.3",
"num-only": "^1.2.6"
"num-only": "^1.2.8"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@rollup/plugin-typescript": "^12.3.0",
"@types/deepmerge": "^2.2.3",
"@types/html-escaper": "^3.0.4",
"@types/node": "^22.17.2",
"rollup": "^4.47.1",
"@types/node": "^22.19.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
2 changes: 1 addition & 1 deletion packages/cnpj-fmt/tests/__coverage__/lcov.info
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ DA:65,37
DA:66,4
DA:67,19
DA:70,28
LF:72
LF:64
LH:64
end_of_record
20 changes: 10 additions & 10 deletions packages/cnpj-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@
"dependencies": {
"@lacussoft/cnpj-fmt": "^2.0.1",
"deepmerge": "^4.3.1",
"num-only": "^1.2.6"
"num-only": "^1.2.8"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@rollup/plugin-typescript": "^12.3.0",
"@types/deepmerge": "^2.2.3",
"@types/node": "^22.17.2",
"@types/node": "^22.19.1",
"cnpj": "^5.0.0",
"rollup": "^4.47.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
4 changes: 2 additions & 2 deletions packages/cnpj-gen/tests/__coverage__/lcov.info
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ DA:65,0
DA:66,4
DA:67,19
DA:70,28
LF:72
LF:64
LH:46
end_of_record
TN:
Expand Down Expand Up @@ -116,6 +116,6 @@ DA:48,52
DA:49,52
DA:50,82
DA:53,28
LF:55
LF:43
LH:42
end_of_record
18 changes: 9 additions & 9 deletions packages/cnpj-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@
"@lacussoft/cnpj-val": "^2.0.1"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@types/node": "^22.17.2",
"rollup": "^4.47.1",
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^22.19.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
20 changes: 10 additions & 10 deletions packages/cnpj-val/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@
},
"dependencies": {
"@lacussoft/cnpj-gen": "^2.0.1",
"num-only": "^1.2.6"
"num-only": "^1.2.8"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@types/node": "^22.17.2",
"rollup": "^4.47.1",
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^22.19.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
6 changes: 3 additions & 3 deletions packages/cnpj-val/tests/__coverage__/lcov.info
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ DA:63,0
DA:64,0
DA:65,1
DA:68,29
LF:70
LF:62
LH:20
end_of_record
TN:
Expand Down Expand Up @@ -113,7 +113,7 @@ DA:46,50
DA:47,50
DA:48,51
DA:51,29
LF:53
LF:42
LH:37
end_of_record
TN:
Expand All @@ -132,6 +132,6 @@ DA:10,35
DA:11,33
DA:12,3
DA:15,29
LF:17
LF:12
LH:12
end_of_record
20 changes: 10 additions & 10 deletions packages/cpf-fmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@
"dependencies": {
"deepmerge": "^4.3.1",
"html-escaper": "^3.0.3",
"num-only": "^1.2.6"
"num-only": "^1.2.8"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@rollup/plugin-typescript": "^12.3.0",
"@types/deepmerge": "^2.2.3",
"@types/html-escaper": "^3.0.4",
"@types/node": "^22.17.2",
"rollup": "^4.47.1",
"@types/node": "^22.19.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
2 changes: 1 addition & 1 deletion packages/cpf-fmt/tests/__coverage__/lcov.info
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ DA:63,36
DA:64,4
DA:65,18
DA:68,27
LF:70
LF:62
LH:62
end_of_record
20 changes: 10 additions & 10 deletions packages/cpf-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@
"dependencies": {
"@lacussoft/cpf-fmt": "^2.0.1",
"deepmerge": "^4.3.1",
"num-only": "^1.2.6"
"num-only": "^1.2.8"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@rollup/plugin-typescript": "^12.3.0",
"@types/deepmerge": "^2.2.3",
"@types/node": "^22.17.2",
"@types/node": "^22.19.1",
"cpf-check": "^3.0.0",
"rollup": "^4.47.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
4 changes: 2 additions & 2 deletions packages/cpf-gen/tests/__coverage__/lcov.info
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ DA:63,0
DA:64,4
DA:65,18
DA:68,27
LF:70
LF:62
LH:44
end_of_record
TN:
Expand Down Expand Up @@ -108,6 +108,6 @@ DA:40,49
DA:41,6
DA:42,79
DA:45,27
LF:47
LF:37
LH:37
end_of_record
18 changes: 9 additions & 9 deletions packages/cpf-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@
"@lacussoft/cpf-val": "^2.0.1"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@types/node": "^22.17.2",
"rollup": "^4.47.1",
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^22.19.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
20 changes: 10 additions & 10 deletions packages/cpf-val/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@
},
"dependencies": {
"@lacussoft/cpf-gen": "^2.0.1",
"num-only": "^1.2.6"
"num-only": "^1.2.8"
},
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@babel/preset-env": "^7.28.5",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "~0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@types/node": "^22.17.2",
"rollup": "^4.47.1",
"@rollup/plugin-typescript": "^12.3.0",
"@types/node": "^22.19.1",
"rollup": "^4.53.3",
"rollup-plugin-delete": "^3.0.1",
"rollup-plugin-dts": "^6.2.3",
"rollup-plugin-dts": "^6.3.0",
"rollup-plugin-esbuild": "^6.2.1",
"typescript": "^5.9.2"
"typescript": "^5.9.3"
}
}
Loading