Skip to content

Commit

Permalink
chore(node): drops support for node versions <18.x
Browse files Browse the repository at this point in the history
* chore(workflows): run on node 18
* chore(jest): update 29.x
* chore(commitlint): update 17.x
* chore(husky): update 8.x

BREAKING CHANGE: drops support for node versions <18.x
  • Loading branch information
JAdshead committed May 25, 2023
1 parent 7f8ce29 commit 0d9708d
Show file tree
Hide file tree
Showing 10 changed files with 15,243 additions and 12,489 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '8.x', '10.x', '12.x', '14.x' ]
node: [ '18.x' ]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 18
- name: Install dependencies
run: npm ci
- name: Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '8.x', '10.x', '12.x', '14.x' ]
node: [ '18.x']
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
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 test
2 changes: 1 addition & 1 deletion __tests__/__snapshots__/collectBuiltState.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`collectBuiltState should build a mutable state 1`] = `
Object {
{
"other": Immutable.Map {
"baz": "test",
},
Expand Down
14 changes: 7 additions & 7 deletions __tests__/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`vitruvius should build the expected state for a flat tree of reducers 1`] = `
Object {
{
"other": Immutable.Map {
"baz": "test",
},
Expand All @@ -15,8 +15,8 @@ Object {
`;

exports[`vitruvius should build the expected state for a nested tree of reducers 1`] = `
Object {
"nested": Object {
{
"nested": {
"other": Immutable.Map {
"baz": "test",
},
Expand All @@ -31,7 +31,7 @@ Object {
`;

exports[`vitruvius should handle a mix of reducers having and not having buildInitialState method 1`] = `
Object {
{
"other": Immutable.Map {
"baz": "test",
},
Expand All @@ -45,7 +45,7 @@ Object {
`;

exports[`vitruvius should handle all reducers having buildInitialState method 1`] = `
Object {
{
"other": Immutable.Map {
"baz": "test",
},
Expand All @@ -58,10 +58,10 @@ Object {
}
`;

exports[`vitruvius should handle no reducers having buildInitialState method 1`] = `Object {}`;
exports[`vitruvius should handle no reducers having buildInitialState method 1`] = `{}`;

exports[`vitruvius should return an initialState that is acceptable to redux's createStore 1`] = `
Object {
{
"other": Immutable.Map {
"baz": "test",
},
Expand Down
2 changes: 1 addition & 1 deletion immutable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
*/

// Required file is only included in build
// eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-unresolved, import/extensions
module.exports = require('./lib/immutable');
Loading

0 comments on commit 0d9708d

Please sign in to comment.