Skip to content

Chore: deps update#135

Open
Kolezhniuk wants to merge 3 commits intomasterfrom
chore/deps-update
Open

Chore: deps update#135
Kolezhniuk wants to merge 3 commits intomasterfrom
chore/deps-update

Conversation

@Kolezhniuk
Copy link
Contributor

This pull request modernizes the project's ESLint configuration, updates dependencies, and makes minor improvements to the codebase. The most significant changes are the migration from the old .eslintrc.cjs to a new eslint.config.js format, updates to development dependencies, and simplification of code in build/main.cjs.

Linting configuration modernization:

  • Removed legacy .eslintrc.cjs and replaced it with a new eslint.config.js using the latest ESLint flat config format, including updated globals and rule definitions. [1] [2]

Dependency updates:

  • Updated versions of development dependencies in package.json, including eslint, mocha, chai, ffjavascript, and added @eslint/js and globals. Also bumped the package version to 0.0.21. [1] [2]

Code simplification and cleanup:

  • Removed unnecessary interop code and switched from fs__default["default"] to direct fs.promises usage in build/main.cjs, simplifying file operations. [1] [2]

Build configuration improvement:

  • Improved robustness in rollup.cjs.config.js by handling potentially undefined pkg.dependencies when specifying externals.

- Updated devDependencies in package.json:
  - Replaced eslint with @eslint/js and updated version to ^10.0.0
  - Updated chai to ^6.2.2 and chai-as-promised to ^8.0.2
  - Updated ffjavascript to ^0.3.1
  - Added globals as a new dependency with version ^17.3.0
  - Updated mocha to ^11.3.0 and rollup to ^4.57.1

- Modified rollup.cjs.config.js to handle optional dependencies safely by using nullish coalescing.
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