Skip to content

Commit 8b05996

Browse files
authored
Merge pull request #14 from cto-af/unicode16
BREAKING: Upgrade to Unicode 16. Now requires node20. example7 flag causes error.
2 parents 6a39cb4 + 8121302 commit 8b05996

File tree

107 files changed

+25748
-13719
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+25748
-13719
lines changed

.github/workflows/node.js.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [18.x, 20.x, 21.x]
16+
node-version: [20, 22, 24]
1717
os: [ubuntu-latest]
1818

1919
runs-on: ${{ matrix.os }}
2020

2121
steps:
2222
- uses: actions/checkout@v4
23-
- run: corepack enable
23+
- uses: pnpm/action-setup@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
2525
uses: actions/setup-node@v4
2626
with:
@@ -34,4 +34,6 @@ jobs:
3434
- name: Test
3535
run: npm run test
3636
- name: Upload coverage reports to Codecov
37-
uses: codecov/codecov-action@v3
37+
uses: codecov/codecov-action@v5
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,24 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
permissions:
9-
contents: read
9+
contents: write
1010
id-token: write
1111
steps:
1212
- uses: actions/checkout@v4
13-
- run: corepack enable
13+
- uses: pnpm/action-setup@v4
1414
- uses: actions/setup-node@v4
1515
with:
1616
node-version: '20.x'
1717
registry-url: 'https://registry.npmjs.org'
1818
cache: pnpm
1919
- run: pnpm i -r
2020
- run: npm run build
21+
- name: Deploy Docs
22+
uses: peaceiris/actions-gh-pages@v4
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: docs
26+
publish_branch: gh-pages
2127
- run: npm publish --access public --provenance
2228
env:
2329
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.vscode/
22
coverage/
3+
docs/
34
node_modules/
4-
tools/*.txt
55
t.js
6+
types/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ originally started as a refresh of the
66
[linebreak](https://github.com/foliojs/linebreak) package, and still shares
77
a small amount of test driver code with that project. The rest has been
88
rewritten to support a fully rules-based approach that implements UAX #14 from
9-
Unicode version 15.0. From that document:
9+
Unicode version 16.0.0 From that document:
1010

1111
> Line breaking, also known as word wrapping, is the process of breaking a
1212
> section of text into lines such that it will fit in the available width of a
@@ -73,7 +73,7 @@ Full API documentation is [available](http://cto-af.github.io/linebreak/).
7373
This package intends to be fully conformant with UAX #14. It currently passes
7474
**ALL** of the
7575
[tests](https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/LineBreakTest.txt)
76-
published by Unicode, when the `example7` option is enabled in the costructor.
76+
published by Unicode, when the `example7` option is enabled in the constructor.
7777

7878
Other tailoring is possible by adding and removing rules.
7979

docs/.nojekyll

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/assets/highlight.css

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)