-
Notifications
You must be signed in to change notification settings - Fork 24
How to Update Unicode Version
Jihyeok Park edited this page Jan 2, 2026
·
2 revisions
This document explains how to update Unicode version in ESMeta.
First, you need to update es-meta/unicode-gen.
- Clone the repo.
- Add the new Unicode versions to
dependenciesin thepackage.jsonfile. For example, if the new versions are15.0.0and15.1.0, you need to add two npm packages as follows:{ ... "dependencies": { ... "@unicode/unicode-15.0.0": "^1.5.2", "@unicode/unicode-15.1.0": "^1.5.2", ... } ... } - Change the version in
package.json(Only minor version update):{ ... "version": "1.1.0" ... } - Add new versions to
data.js. - Update examples in
REAMDE.mdfile andargs.js. - Build and check the update is valid:
npm run build ./bin/unicode-gen.js help ./bin/unicode-gen.js -u 15.1.0 -p ID_Start -o id_start.json - Commit all the changes.
- Add a new tag and push it to the remote:
git tag v1.1.0 git push --tag origin v1.1.0
- Login npm:
(It requires the authority. Please contact @jhnaldo
npm login
- Release this repo:
npm run release
- Install the
unicode-gen:npm install -g @es-meta/unicode-gen
- Enter the resource directory for Unicode:
cd $ESMETA_HOME/src/main/resources/unicode
- Generate unicode raw data for
ID_StartandID_Continue:unicode-gen -u 15.1.0 -p ID_Start -o ID_Start_15.1.0.json unicode-gen -u 15.1.0 -p ID_Continue -o ID_Continue_15.1.0.json - Update the
$ESMETA_HOME/src/main/scala/esmeta/parser/Unicode.scalafile:val RECENT_VERSION = "15.1.0"