Skip to content

Commit

Permalink
feat: Adds support for React 18 (#769)
Browse files Browse the repository at this point in the history
* feat: Adds initial support for React 18

* chore: Rename function

Co-authored-by: Jørn A. Myrland <[email protected]>

* 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 <[email protected]>
  • Loading branch information
ctrlplusb and jmyrland authored Sep 17, 2022
1 parent 1a97310 commit 55f73e6
Show file tree
Hide file tree
Showing 28 changed files with 418 additions and 748 deletions.
11 changes: 11 additions & 0 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Prepare Application
description: A composite action to prepare the library.

runs:
using: composite
steps:
- uses: ./.github/actions/setup-node

- name: Install Dependencies
shell: bash
run: yarn install --frozen-lockfile
10 changes: 10 additions & 0 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Setup Node.js
description: A composite action to setup the required Node.js version.

runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: 14.x
cache: 'yarn'
21 changes: 21 additions & 0 deletions .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PR Validate

on:
pull_request:
branches:
- master

jobs:
code-quality:
name: Code Quality
strategy:
matrix:
command:
- lint
- test:coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare
- shell: bash
run: yarn ${{ matrix.command }}
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged && yarn run test
yarn lint && yarn test:source
36 changes: 0 additions & 36 deletions .size-snapshot.json

This file was deleted.

25 changes: 12 additions & 13 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
The MIT License (MIT)

Copyright (c) 2018 Sean Matheson
Copyright (c) 2018-present Sean Matheson

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

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

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

0 comments on commit 55f73e6

Please sign in to comment.