Skip to content

Conversation

@Abijeet
Copy link
Member

@Abijeet Abijeet commented Oct 14, 2025

Dropped support for Node.js 16, 18.
Updated ESLint to v9 since assert is not supported in v8. See:
eslint/eslint#15305

Dropping support for Node v16, v18 should be fine as they are both EOL.

Consequently had to drop support for Wikimedia/eslint rules as it
doesn't yet support ESLint v9.

Used vite to bundle the library for browser usage.

Bug: https://phabricator.wikimedia.org/T407180
Change-Id: I44dee29b49804da5a13d986352148931baf7cb34

@Abijeet Abijeet requested review from hueitan and santhoshtr October 14, 2025 08:23
@Abijeet Abijeet self-assigned this Oct 14, 2025
@Abijeet Abijeet requested a review from Nikerabbit October 14, 2025 08:24
@Abijeet Abijeet force-pushed the esm-module branch 4 times, most recently from e2ea721 to 0ea91ee Compare October 14, 2025 10:04
Dropped support for Node.js 16, 18.
Updated ESLint to v9 since assert is not supported in v8. See:
eslint/eslint#15305

Dropping support for Node v16, v18 should be fine as they are both EOL.

Consequently had to drop support for Wikimedia/eslint rules as it
doesn't yet support ESLint v9.

Used vite to bundle the library for browser usage.

Bug: https://phabricator.wikimedia.org/T407180
Change-Id: I44dee29b49804da5a13d986352148931baf7cb34
@Abijeet Abijeet changed the base branch from use-localecompare to master October 15, 2025 07:07
@Abijeet Abijeet changed the base branch from master to use-localecompare October 15, 2025 07:07
@Abijeet Abijeet changed the title Update JavaScript codebase to use ESM module Update JavaScript codebase to use ESM and vite Oct 15, 2025
@Abijeet Abijeet requested a review from santhoshtr October 15, 2025 07:08
@Abijeet
Copy link
Member Author

Abijeet commented Oct 15, 2025

Tested this using npm pack (docs).If package type is module, ESM can be used, otherwise CommonJS require works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants