Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages, configs + Node.js 20 #612

Merged
merged 30 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
03c4bfc
Add .browserslistrc config file
colinrotherham Nov 21, 2023
f1e6865
Update Babel + dependencies
colinrotherham Nov 21, 2023
c8f3080
Use Babel config `babel.config.js` format
colinrotherham Nov 21, 2023
ec2507a
Apply Babel bug fixes to avoid “catch all” transforms
colinrotherham Dec 4, 2023
d6dd0c4
Update package `core-js` for polyfills
colinrotherham Nov 21, 2023
a81f87f
Match browser config, polyfills, transforms to README
colinrotherham Dec 4, 2023
5aa86ab
Replace package `uglifyjs-webpack-plugin` with `terser-webpack-plugin`
colinrotherham Dec 4, 2023
9f51246
Run `npm install` to rebuild package-lock.json
colinrotherham Nov 21, 2023
4214054
Run `npm dedupe` to consolidate duplicates
colinrotherham Nov 21, 2023
5ba8334
Update package `webpack`
colinrotherham Nov 21, 2023
643b6dd
Fix WebdriverIO missing directories
colinrotherham Nov 21, 2023
dd52f49
Fix webpack warning “`setup` option is deprecated”
colinrotherham Nov 17, 2023
096c048
Update and move Preact to (optional) `peerDependencies`
colinrotherham Nov 21, 2023
9d0920a
Update package `standard` for JavaScript Standard Style v17
colinrotherham Nov 21, 2023
2828c74
Flag deprecated React 16 lifecycle events
colinrotherham Nov 21, 2023
18d8bda
Run `standard --fix`
colinrotherham Nov 21, 2023
f549495
Use WebdriverIO without `@wdio/sync` + `fibers`
colinrotherham Nov 21, 2023
d4d5db7
Update package `husky` with pre-commit config
colinrotherham Nov 20, 2023
d987e0f
Update package `cross-env` with CLI double quotes for Windows
colinrotherham Nov 20, 2023
70444f0
Remove unused packages
colinrotherham Dec 4, 2023
5d9ac86
Update all test packages
colinrotherham Nov 21, 2023
10032b0
Allow Node.js LTS ‘Iron’ (v20) release version
colinrotherham Nov 20, 2023
cf15466
Convert `package-lock.json` to lockfileVersion 3
colinrotherham Nov 21, 2023
0b3eed8
Update package `chalk`
colinrotherham Nov 20, 2023
f9c7b71
Update package `csso-cli`
colinrotherham Nov 21, 2023
7c1b188
Update package `dotenv`
colinrotherham Dec 4, 2023
dccfa82
Update package `puppeteer`
colinrotherham Nov 20, 2023
854beec
Update package `webpack-dev-server` + dependencies
colinrotherham Dec 4, 2023
558621b
Run `npm audit --fix`
colinrotherham Dec 4, 2023
a1accc3
Update packages with recent bumps
colinrotherham Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .babelrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This list builds on the GOV.UK service manual's browser testing recommendations
# https://www.gov.uk/service-manual/technology/designing-for-different-browsers-and-devices

> 0.1% in GB and not dead
last 6 Chrome versions
last 6 Firefox versions
last 6 Edge versions
last 2 Samsung versions
Firefox ESR
Safari >= 11
iOS >= 11
ie 11
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run build && node scripts/check-staged.mjs
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/fermium
lts/iron
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ You should do this and commit it before you attempt to `git push`, otherwise the

## Prepush checks

When you push to a branch, git will run a `npm run prepush` [script](scripts/check-staged.js) that will compile the build on your behalf to the `dist/` folder. If it then finds unstaged files in `dist/`, it will fail your push.
When you push to a branch, git will run a `npm run prepush` [script](scripts/check-staged.mjs) that will compile the build on your behalf to the `dist/` folder. If it then finds unstaged files in `dist/`, it will fail your push.

The solution is to commit the files, preferably as part of a separate commit:

Expand Down
29 changes: 29 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Babel config
*
* @type {import('@babel/core').ConfigFunction}
*/
module.exports = {
presets: [
[
'@babel/preset-env',
{
bugfixes: true,
corejs: '3.33',
loose: true,
shippedProposals: true,
useBuiltIns: 'usage'
}
]
],

plugins: [
['@babel/plugin-transform-react-jsx', { pragma: 'h' }]
],

env: {
test: {
plugins: ['istanbul']
}
}
}
2 changes: 1 addition & 1 deletion dist/accessible-autocomplete.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/accessible-autocomplete.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/accessible-autocomplete.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/accessible-autocomplete.preact.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/accessible-autocomplete.preact.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/accessible-autocomplete.react.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/accessible-autocomplete.react.min.js.map

Large diffs are not rendered by default.

Loading