@internetarchive/bookreader 5.0.0-71 → 5.0.0-72
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/node.js.yml +16 -16
- package/.github/workflows/npm-publish.yml +6 -6
- package/BookReader/BookReader.js +1 -1
- package/BookReader/plugins/plugin.text_selection.js +1 -1
- package/BookReader/plugins/plugin.text_selection.js.map +1 -1
- package/BookReader/plugins/plugin.tts.js +1 -1
- package/BookReader/plugins/plugin.tts.js.map +1 -1
- package/CHANGELOG.md +6 -0
- package/netlify.toml +1 -1
- package/package.json +4 -5
- package/scripts/preversion.js +0 -4
- package/src/BookReader/utils/SelectionObserver.js +3 -1
- package/src/plugins/tts/AbstractTTSEngine.js +5 -2
- package/src/plugins/tts/plugin.tts.js +1 -1
- package/src/plugins/tts/utils.js +15 -0
- package/tests/jest/BookReader/utils/SelectionObserver.test.js +14 -0
@@ -14,11 +14,11 @@ jobs:
|
|
14
14
|
runs-on: ubuntu-latest
|
15
15
|
|
16
16
|
steps:
|
17
|
-
- uses: actions/checkout@
|
18
|
-
- uses: actions/setup-node@
|
17
|
+
- uses: actions/checkout@v4
|
18
|
+
- uses: actions/setup-node@v4
|
19
19
|
with:
|
20
20
|
# Keep in sync with netlify.toml
|
21
|
-
node-version:
|
21
|
+
node-version: 20.x
|
22
22
|
- name: Cache node_modules
|
23
23
|
uses: actions/cache@v3
|
24
24
|
id: cache
|
@@ -29,7 +29,7 @@ jobs:
|
|
29
29
|
# we don't use `npm ci` specifically to try to get faster CI flows. So caching
|
30
30
|
# `node_modules` directly.
|
31
31
|
path: 'node_modules'
|
32
|
-
key: ${{ runner.os }}-node-
|
32
|
+
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
|
33
33
|
- if: steps.cache.outputs.cache-hit != 'true'
|
34
34
|
run: npm install
|
35
35
|
|
@@ -37,16 +37,16 @@ jobs:
|
|
37
37
|
needs: install
|
38
38
|
runs-on: ubuntu-latest
|
39
39
|
steps:
|
40
|
-
- uses: actions/checkout@
|
41
|
-
- uses: actions/setup-node@
|
40
|
+
- uses: actions/checkout@v4
|
41
|
+
- uses: actions/setup-node@v4
|
42
42
|
with:
|
43
|
-
node-version:
|
43
|
+
node-version: 20.x
|
44
44
|
- name: Load node_modules from cache
|
45
45
|
uses: actions/cache@v3
|
46
46
|
with:
|
47
47
|
# Use node_modules from previous jobs
|
48
48
|
path: 'node_modules'
|
49
|
-
key: ${{ runner.os }}-node-
|
49
|
+
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
|
50
50
|
- name: Cache BookReader/
|
51
51
|
uses: actions/cache@v3
|
52
52
|
id: build-cache
|
@@ -61,16 +61,16 @@ jobs:
|
|
61
61
|
needs: install
|
62
62
|
runs-on: ubuntu-latest
|
63
63
|
steps:
|
64
|
-
- uses: actions/checkout@
|
65
|
-
- uses: actions/setup-node@
|
64
|
+
- uses: actions/checkout@v4
|
65
|
+
- uses: actions/setup-node@v4
|
66
66
|
with:
|
67
|
-
node-version:
|
67
|
+
node-version: 20.x
|
68
68
|
- name: Load node_modules from cache
|
69
69
|
uses: actions/cache@v3
|
70
70
|
with:
|
71
71
|
# Use node_modules from previous jobs
|
72
72
|
path: 'node_modules'
|
73
|
-
key: ${{ runner.os }}-node-
|
73
|
+
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
|
74
74
|
- run: npm run lint
|
75
75
|
- run: npm run test
|
76
76
|
- run: npm run codecov
|
@@ -79,16 +79,16 @@ jobs:
|
|
79
79
|
needs: build
|
80
80
|
runs-on: ubuntu-latest
|
81
81
|
steps:
|
82
|
-
- uses: actions/checkout@
|
83
|
-
- uses: actions/setup-node@
|
82
|
+
- uses: actions/checkout@v4
|
83
|
+
- uses: actions/setup-node@v4
|
84
84
|
with:
|
85
|
-
node-version:
|
85
|
+
node-version: 20.x
|
86
86
|
- name: Load node_modules from cache
|
87
87
|
uses: actions/cache@v3
|
88
88
|
with:
|
89
89
|
# Use node_modules from previous jobs
|
90
90
|
path: 'node_modules'
|
91
|
-
key: ${{ runner.os }}-node-
|
91
|
+
key: ${{ runner.os }}-node-20-${{ hashFiles('package*.json') }}
|
92
92
|
- name: Load BookReader/ from cache
|
93
93
|
uses: actions/cache@v3
|
94
94
|
with:
|
@@ -11,10 +11,10 @@ jobs:
|
|
11
11
|
build:
|
12
12
|
runs-on: ubuntu-latest
|
13
13
|
steps:
|
14
|
-
- uses: actions/checkout@
|
15
|
-
- uses: actions/setup-node@
|
14
|
+
- uses: actions/checkout@v4
|
15
|
+
- uses: actions/setup-node@v4
|
16
16
|
with:
|
17
|
-
node-version:
|
17
|
+
node-version: 20
|
18
18
|
- run: npm ci
|
19
19
|
- run: npm test
|
20
20
|
|
@@ -22,10 +22,10 @@ jobs:
|
|
22
22
|
needs: build
|
23
23
|
runs-on: ubuntu-latest
|
24
24
|
steps:
|
25
|
-
- uses: actions/checkout@
|
26
|
-
- uses: actions/setup-node@
|
25
|
+
- uses: actions/checkout@v4
|
26
|
+
- uses: actions/setup-node@v4
|
27
27
|
with:
|
28
|
-
node-version:
|
28
|
+
node-version: 20
|
29
29
|
registry-url: https://registry.npmjs.org/
|
30
30
|
- run: npm ci
|
31
31
|
- run: npm publish --tag next
|