-
Notifications
You must be signed in to change notification settings - Fork 15
How to Update Unicode Version
Jihyeok Park edited this page Sep 5, 2023
·
1 revision
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
dependencies
in thepackage.json
file. For example, if the new versions are15.0.0
and15.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.md
file 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
- Release this repo:
(It requires the authority. Please contact @jhnaldo
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_Start
andID_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