Skip to content
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
bc445b7
fix: Allow React 19 as peer dependency
Sidnioulz Aug 12, 2025
eae8b4f
chore: Update GitHub action
Sidnioulz Aug 20, 2025
9219668
feat: Port to Storybook 9 and update deps
Sidnioulz Aug 20, 2025
aa9e87e
chore: Ensure test cache key is more complete
Sidnioulz Aug 20, 2025
c0a4feb
chore: Fix last script errors with babel runtime and sb commands
Sidnioulz Aug 20, 2025
f0f62cf
test: Fix warnings
Sidnioulz Aug 20, 2025
260b804
style: Fix or hide lint warnings
Sidnioulz Aug 20, 2025
ce041c4
docs: Fix stories
Sidnioulz Aug 20, 2025
75ec8ce
feat: Support React 19
Sidnioulz Aug 20, 2025
5e6a391
chore: Add canary release workflow
Sidnioulz Aug 20, 2025
1394dc7
chore: Remove broken yarn cache
Sidnioulz Aug 20, 2025
518b24f
chore: Work against Yarn lockfile handling to get a canary release wo…
Sidnioulz Aug 20, 2025
be9e8ba
chore: Update dependencies and add .yarnrc configuration
ndelangen Sep 2, 2025
eb4c974
chore: Enable Corepack in release and unit test workflows
ndelangen Sep 2, 2025
1ed2056
chore: Migrate from Webpack to Vite for Storybook configuration and r…
ndelangen Sep 2, 2025
070657b
migrate to vitest
ndelangen Sep 2, 2025
5779967
chore: Remove unused testing setup and update dependencies in package…
ndelangen Sep 2, 2025
5490bab
chore: Update Storybook configuration to use ES module syntax
ndelangen Sep 2, 2025
60d4969
chore: Add happy-dom as a testing environment and update related conf…
ndelangen Sep 2, 2025
908671a
fix: Assign name to namedFunction for better debugging and clarity
ndelangen Sep 2, 2025
cc830c0
chore: Update Storybook configuration to disable minification for bet…
ndelangen Sep 2, 2025
3952ee8
refactor: Remove explicit function name assignment for namedFunction
ndelangen Sep 2, 2025
fa8aebc
chore: Remove Travis CI configuration and Webpack production config; …
ndelangen Sep 2, 2025
2444ca3
chore: Update dependencies in package.json and yarn.lock; upgrade Sto…
ndelangen Sep 2, 2025
6856464
chore: Remove unused ESLint disable comments from multiple files
ndelangen Sep 2, 2025
e94b508
chore: Remove main, module, and types fields from package.json as the…
ndelangen Sep 2, 2025
01da0ff
chore: Add ESLint configuration file and clean up .gitignore; remove …
ndelangen Sep 2, 2025
9c3308c
chore: Update GitHub Actions workflows to specify pull request event …
ndelangen Sep 2, 2025
f8ad924
chore: Add concurrency settings to GitHub Actions workflows for impro…
ndelangen Sep 2, 2025
37d7500
chore: Update release process in package.json and GitHub Actions work…
ndelangen Sep 2, 2025
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
30 changes: 0 additions & 30 deletions .babelrc

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release

on:
pull_request:

permissions:
contents: write
issues: write
pull-requests: write
id-token: write

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Enable Corepack
run: corepack enable

- name: Checkout
uses: actions/checkout@v4

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Install
run: |
yarn install

- name: Mask irrelevant lockfile changes
run: |
git checkout yarn.lock

- name: Create canary release
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release:canary
52 changes: 27 additions & 25 deletions .github/workflows/tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,33 @@ on: [push, pull_request, workflow_dispatch]

jobs:
build:

name: Core Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ hashFiles('**/yarn.lock') }}
- name: install
run: |
yarn
- name: test
run: |
yarn test
- name: lint
run: |
yarn lint
- name: chromatic
run: |
yarn chromatic
- uses: actions/setup-node@v4
with:
node-version: '22.x'

- name: Enable Corepack
run: corepack enable

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install
run: |
yarn

- name: test
run: |
yarn test

- name: lint
run: |
yarn lint

- name: chromatic
run: |
yarn chromatic
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
node_modules
.DS_Store
.vscode
jsconfig.json

react-codemod
gh-pages/
dist
build
*.log
storybook-static
.yarn/*
6 changes: 0 additions & 6 deletions .storybook/main.js

This file was deleted.

16 changes: 16 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export default {
stories: ['../stories/*.*'],

framework: {
name: '@storybook/react-vite',
},

viteFinal: async (config) => {
// Disable minification to preserve function names
if (config.build) {
config.build.minify = false;
}

return config;
},
};
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
8 changes: 8 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

## 7.0.0 (20/08/2025)
- Port to React 18/19 syntax
- Add Storybook 9 to peer dependencies
- Port local package to Storybook 9
- Update CI runners and jobs
- Audit and update all tooling except Jest

## 6.0.0 (04/07/2022)
- Upgrade devDependencies
- Remove all dependencies
Expand Down
29 changes: 29 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import tseslint from '@typescript-eslint/eslint-plugin';
import tsparser from '@typescript-eslint/parser';
import prettier from 'eslint-plugin-prettier';
import storybook from 'eslint-plugin-storybook';

export default [
{
files: ['**/*.{js,ts,jsx,tsx}'],
ignores: ['dist/**', 'node_modules/**'],
languageOptions: {
parser: tsparser,
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: {
'@typescript-eslint': tseslint,
prettier: prettier,
},
rules: {
...tseslint.configs.recommended.rules,
...prettier.configs.recommended.rules,
...storybook.configs.recommended.rules,
'prettier/prettier': ['error'],
'@typescript-eslint/ban-ts-comment': 'warn',
// Too much legacy to fix.
'@typescript-eslint/no-explicit-any': 'off',
},
},
];
77 changes: 0 additions & 77 deletions karma.conf.js

This file was deleted.

Loading