ep_hide_line_numbers 0.0.54 → 0.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,8 +11,23 @@ jobs:
11
11
  if: |
12
12
  (github.event_name != 'pull_request')
13
13
  || (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
14
- name: with Plugins
14
+ name: with Plugins (Node ${{ matrix.node }} / core ${{ matrix.core_ref || 'develop' }})
15
15
  runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ # Plugin floor is engines.node >=22 but current Etherpad core
19
+ # requires >=24 (engineStrict). Each cell pairs a Node version
20
+ # with a core ref that actually allows it: Node 22 against the
21
+ # last tag whose core floor was 22 (v2.7.3); Node 24 / 26 against
22
+ # current develop.
23
+ matrix:
24
+ include:
25
+ - node: '22'
26
+ core_ref: 'v2.7.3'
27
+ - node: '24'
28
+ core_ref: ''
29
+ - node: '26'
30
+ core_ref: ''
16
31
  steps:
17
32
  -
18
33
  name: Install libreoffice
@@ -25,11 +40,12 @@ jobs:
25
40
  uses: actions/checkout@v6
26
41
  with:
27
42
  repository: ether/etherpad-lite
43
+ ref: ${{ matrix.core_ref }}
28
44
  path: etherpad-lite
29
- - uses: actions/setup-node@v4
45
+ - uses: actions/setup-node@v6
30
46
  name: Install Node.js
31
47
  with:
32
- node-version: 22
48
+ node-version: ${{ matrix.node }}
33
49
  - uses: pnpm/action-setup@v6
34
50
  name: Install pnpm
35
51
  with:
@@ -7,7 +7,26 @@ on:
7
7
 
8
8
  jobs:
9
9
  test-frontend:
10
- runs-on: ubuntu-latest
10
+ runs-on: ${{ matrix.os || 'ubuntu-latest' }}
11
+ name: Playwright (Node ${{ matrix.node }} / core ${{ matrix.core_ref || 'develop' }})
12
+ strategy:
13
+ fail-fast: false
14
+ # Plugin floor is engines.node >=22 but current Etherpad core
15
+ # requires >=24 (engineStrict). Each cell pairs a Node version
16
+ # with a core ref that actually allows it: Node 22 against the
17
+ # last tag whose core floor was 22 (v2.7.3); Node 24 / 26 against
18
+ # current develop.
19
+ matrix:
20
+ include:
21
+ - node: '22'
22
+ core_ref: 'v2.7.3'
23
+ # ubuntu-latest is now 26.04, and the Playwright pinned by core
24
+ # v2.7.3 refuses to install chromium there.
25
+ os: ubuntu-24.04
26
+ - node: '24'
27
+ core_ref: ''
28
+ - node: '26'
29
+ core_ref: ''
11
30
 
12
31
  steps:
13
32
  -
@@ -15,11 +34,12 @@ jobs:
15
34
  uses: actions/checkout@v6
16
35
  with:
17
36
  repository: ether/etherpad-lite
37
+ ref: ${{ matrix.core_ref }}
18
38
  path: etherpad-lite
19
- - uses: actions/setup-node@v4
39
+ - uses: actions/setup-node@v6
20
40
  name: Install Node.js
21
41
  with:
22
- node-version: 22
42
+ node-version: ${{ matrix.node }}
23
43
  - uses: pnpm/action-setup@v6
24
44
  name: Install pnpm
25
45
  with:
@@ -52,6 +72,17 @@ jobs:
52
72
  - name: Create settings.json
53
73
  working-directory: ./etherpad-lite
54
74
  run: cp ./src/tests/settings.json settings.json
75
+ # Etherpad v2.7.x added a "severely outdated" version-badge that polls
76
+ # GitHub for the latest release and renders an absolutely-positioned
77
+ # banner at top-right when the running core is a full major behind.
78
+ # On the core v2.7.3 matrix cell that banner intercepts pointer
79
+ # events (e.g. #chaticon) and Playwright clicks time out. Set
80
+ # updates.tier=off so the badge stays hidden. Harmless no-op on cores
81
+ # without the updater or with the tier already off.
82
+ - name: Disable updater poll in test settings
83
+ working-directory: ./etherpad-lite
84
+ run: |
85
+ node -e 'const fs=require("fs");const s=JSON.parse(fs.readFileSync("settings.json","utf8"));s.updates={...(s.updates||{}),tier:"off"};fs.writeFileSync("settings.json",JSON.stringify(s,null,2));'
55
86
  - name: Run the frontend tests
56
87
  working-directory: ./etherpad-lite
57
88
  shell: bash
@@ -20,13 +20,17 @@ jobs:
20
20
  steps:
21
21
  - uses: actions/setup-node@v6
22
22
  with:
23
- # OIDC trusted publishing needs npm >= 11.5.1, which requires
24
- # Node >= 20.17.0. setup-node's `20` resolves to the latest
25
- # 20.x, which satisfies that.
26
- node-version: 20
23
+ # OIDC trusted publishing needs npm >= 11.5.1. Node 26 is the
24
+ # Active LTS line and bundles npm 11.x, so the pinned upgrade below
25
+ # stays on the same npm major. Avoid odd non-LTS lines (Node 25):
26
+ # npm 12 requires ^22.22.2 || ^24.15.0 || >=26.0.0 and the upgrade
27
+ # step dies there with EBADENGINE.
28
+ node-version: 26
27
29
  registry-url: https://registry.npmjs.org/
30
+ # Pinned to a range rather than @latest: the next npm major dropping
31
+ # this Node line would silently break publishing fleet-wide again.
28
32
  - name: Upgrade npm to >=11.5.1 (required for trusted publishing)
29
- run: npm install -g npm@latest
33
+ run: npm install -g npm@^11.5.1
30
34
  - name: Check out Etherpad core
31
35
  uses: actions/checkout@v6
32
36
  with:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_hide_line_numbers",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "keywords": [
5
5
  "line",
6
6
  "numbers",
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/ether/ep_hide_line_numbers.git"
21
21
  },
22
22
  "engines": {
23
- "node": ">=18.0.0"
23
+ "node": ">=22.0.0"
24
24
  },
25
25
  "funding": {
26
26
  "type": "individual",