Skip to content

Commit 50f462c

Browse files
authored
chore: dependencies 2023-12 (#2652)
* chore: update dependencies * chore: update lit * chore: update typescript * chore: update owc testing calls * chore: update tsconfig * chore: update lit dependency * chore: resolve some new linting, type, and static a11y errors * chore: update node version * chore: ts-node workaround * chore: juggle ci * fix: popover a11y * fix: popover render * test: fix popover test * fix: docs build * fix: syntax errors (pebcak) * fix(tools): types for a11ySnapshot * test: fix types * fix(tools): types * chore: fix build * chore: chalk dep
1 parent 502e931 commit 50f462c

Some content is hidden

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

48 files changed

+7208
-6388
lines changed

.changeset/tidy-numbers-rush.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@patternfly/pfe-tools": patch
3+
"@patternfly/pfe-core": patch
4+
"@patternfly/elements": patch
5+
---
6+
7+
"@patternfly/elements": major
8+
---
9+
10+
Update dependencies, including Lit version 3

.github/workflows/bundle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v3
2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: '18'
28+
node-version: '20'
2929
cache: npm
3030

3131
- name: Bundle

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: '18'
16+
node-version: '20'
1717
cache: npm
1818

1919
- name: Verify JSPM URL

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: '18'
17+
node-version: '20'
1818
cache: npm
1919

2020
- run: npm ci --prefer-offline

.github/workflows/tests.yml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ jobs:
4040
# steps:
4141
# - name: Debugging context variables
4242
# run: echo "$GITHUB_CONTEXT"
43-
44-
test:
45-
name: Run test suite (Web Test Runner)
43+
lint:
44+
name: Lint files
4645
runs-on: ubuntu-latest
4746
steps:
4847
- name: Checkout repository
@@ -52,7 +51,7 @@ jobs:
5251
- name: Configure node version
5352
uses: actions/setup-node@v3
5453
with:
55-
node-version: '18'
54+
node-version: '20'
5655
cache: npm
5756

5857
- name: Install dependencies
@@ -62,13 +61,32 @@ jobs:
6261
id: lint
6362
run: npm run lint
6463

64+
65+
test:
66+
name: Run test suite (Web Test Runner)
67+
runs-on: ubuntu-latest
68+
steps:
69+
- name: Checkout repository
70+
uses: actions/checkout@v3
71+
72+
# Configures the node version used on GitHub-hosted runners
73+
- name: Configure node version
74+
uses: actions/setup-node@v3
75+
with:
76+
node-version: '20'
77+
cache: npm
78+
79+
- name: Install dependencies
80+
run: npm ci --prefer-offline
81+
82+
- name: install playwright
83+
run: npx playwright install
84+
6585
- name: Run tests
6686
run: npm test
67-
if: ${{ always() }}
6887

6988
- name: JUnit Report Action
7089
uses: mikepenz/action-junit-report@v2.8.2
71-
if: ${{ always() }}
7290
with:
7391
report_paths: test-results/test-results.xml
7492
fail_on_failure: true # fail the actions run if the tests failed
@@ -79,10 +97,8 @@ jobs:
7997
strategy:
8098
matrix:
8199
node:
82-
- '18'
83-
- '19'
84-
# https://github.com/TypeStrong/ts-node/issues/1997
85-
# - '20'
100+
- '20'
101+
- '21'
86102
if: |
87103
github.event_name == 'workflow_dispatch'
88104
|| github.event_name == 'push'
@@ -126,8 +142,9 @@ jobs:
126142
validate:
127143
name: Validate successful build on main
128144
needs:
129-
- build
145+
- lint
130146
- test
147+
- build
131148
if: ${{ always() }}
132149
runs-on: ubuntu-latest
133150
steps:

.github/workflows/visual-regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- uses: actions/setup-node@v3
3131
with:
32-
node-version: '18'
32+
node-version: '20'
3333
cache: npm
3434
- run: npm ci --prefer-offline
3535

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.12.1
1+
v20.10.0

core/pfe-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"test": "wtr --files './test/*.spec.ts' --config ../../web-test-runner.config.js"
5252
},
5353
"dependencies": {
54-
"@floating-ui/dom": "^1.2.6",
55-
"lit": "^2.7.2"
54+
"@floating-ui/dom": "^1.5.3",
55+
"lit": "^3.1.0"
5656
},
5757
"repository": {
5858
"type": "git",

docs/_data/importMap.cjs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const fs = require('fs');
22
const path = require('path');
3-
const { promisify } = require('node:util');
4-
const Glob = require('glob');
5-
const glob = promisify(Glob);
3+
const { glob } = require('glob');
64

75
const packageLock = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package-lock.json')));
86

@@ -46,12 +44,17 @@ const LIT_DEPS = [
4644
'./decorators.js',
4745
'./directive.js',
4846
'./directive-helpers.js',
49-
'./experimental-hydrate-support.js',
50-
'./experimental-hydrate.js',
5147
'./html.js',
5248
'./polyfill-support.js',
5349
'./static-html.js',
5450
]
51+
},
52+
{
53+
target: `@lit-labs/ssr-client`,
54+
subpaths: [
55+
'.',
56+
'./lit-element-hydrate-support.js',
57+
]
5558
}
5659
];
5760

@@ -69,7 +72,7 @@ module.exports = async function() {
6972
const { Generator } = await import('@jspm/generator');
7073

7174
const generator = new Generator({
72-
defaultProvider: 'jspm',
75+
defaultProvider: 'jspm.io',
7376
env: ['production', 'browser', 'module']
7477
});
7578

docs/_plugins/create-import-map.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = function(eleventyConfig) {
33
const { Generator } = await import('@jspm/generator');
44

55
const generator = new Generator({
6-
defaultProvider: 'jspm',
6+
defaultProvider: 'jspm.io',
77
env: ['production', 'browser', 'module']
88
});
99

0 commit comments

Comments
 (0)