feat: pin casbin version and drop Node.js 18 to fix CI test failures#34
feat: pin casbin version and drop Node.js 18 to fix CI test failures#34
Conversation
|
@nodece @Shivansh-yadav13 please review |
|
|
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
|
@copilot fix: https://github.com/node-casbin/redis-watcher/actions/runs/21597843441/job/62236229609?pr=34 |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
... Fixed in 6bb0bfd. The issue was using csv-parse v5 instead of v4. casbin v5.10.0 requires csv-parse ^4.15.3, updated the dependency to match. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot fix: https://github.com/node-casbin/redis-watcher/actions/runs/21598506265/job/62237960505?pr=34 |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
... Fixed in 7f725ea. The issue was that |
|
@copilot only run against Node.js 20 in CI, drop Node.js 18 in CI |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
# [1.1.0](v1.0.2...v1.1.0) (2026-02-02) ### Bug Fixes * fix broken links ([#31](#31)) ([3deaa9c](3deaa9c)) ### Features * pin casbin version and drop Node.js 18 to fix CI test failures ([#34](#34)) ([dd63a07](dd63a07)) * remove codebeat badge from README ([a738a82](a738a82)) * upgrade CI Node.js version to 18 and 20 ([00b9121](00b9121))
fix: #33
CI fails with
Cannot find module 'csv-parse/sync'when running tests. The workflow usesyarn install --no-lockfile, which installs the latest compatible versions of dependencies. With casbin specified as^5.2.1, yarn can install v5.10.0 or later, which requires csv-parse as a dependency. Additionally, Node.js 18 was incompatible with thewhich@6.0.0transitive dependency that requires Node >= 20.17.0.Changes
casbinto exact version5.2.1(remove caret^) in devDependenciesThis prevents yarn from automatically upgrading to newer casbin versions that require csv-parse. Version 5.2.1 doesn't require csv-parse, eliminating the dependency issue. Dropping Node.js 18 from CI avoids compatibility issues with newer transitive dependencies. This approach addresses the root cause of version drift when using
--no-lockfilerather than adding workarounds.