Skip to content

Commit 55f73e6

Browse files
ctrlplusbjmyrland
andauthored
feat: Adds support for React 18 (#769)
* feat: Adds initial support for React 18 * chore: Rename function Co-authored-by: Jørn A. Myrland <j@myrland.nu> * chore: Removes size snapshot from repo * chore: Updates contributors * chore: Removes UMD build (was never used) * chore: Upgrades to latest Husky * chore: Updates git commit hook to ignore typescript tests * feat: Adds support for React 18 SSR hydration * fix: Lint errors * ci: Adds PR Validate workflow * ci: Fix PR Validate workflow Co-authored-by: Jørn A. Myrland <j@myrland.nu>
1 parent 1a97310 commit 55f73e6

28 files changed

Lines changed: 418 additions & 748 deletions

.github/actions/prepare/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Prepare Application
2+
description: A composite action to prepare the library.
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: ./.github/actions/setup-node
8+
9+
- name: Install Dependencies
10+
shell: bash
11+
run: yarn install --frozen-lockfile
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Setup Node.js
2+
description: A composite action to setup the required Node.js version.
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: actions/setup-node@v3
8+
with:
9+
node-version: 14.x
10+
cache: 'yarn'

.github/workflows/pr-validate.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PR Validate
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
code-quality:
10+
name: Code Quality
11+
strategy:
12+
matrix:
13+
command:
14+
- lint
15+
- test:coverage
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: ./.github/actions/prepare
20+
- shell: bash
21+
run: yarn ${{ matrix.command }}

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-commit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
33

4-
yarn lint-staged && yarn run test
4+
yarn lint && yarn test:source

.size-snapshot.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

LICENSE

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 Sean Matheson
3+
Copyright (c) 2018-present Sean Matheson
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)