diff --git a/.babelrc b/.babelrc deleted file mode 100644 index edd5def..0000000 --- a/.babelrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "presets": [ - [ "env", { "modules": false } ], - "stage-0", - "react" - ] -} diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 93d680d..0000000 --- a/.eslintrc +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extends": [ - "eslint:recommended", - "plugin:react/recommended" - ], - "plugins": [ - "react" - ], - "parser": "babel-eslint", - "parserOptions": { - "ecmaVersion": 6, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true - } - }, - "env": { - "browser": false, - "node": true, - "es6": true - }, - "rules": { - "semi": [ 2, "never" ] - } -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aab6e92 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [master, v3] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - run: npm ci + - run: npm run typecheck + - run: npm run lint + - run: npm test + - run: npm run build + - run: npm pack --dry-run + - run: npx playwright install --with-deps chromium + - run: npm run test:e2e + - run: npm run build:demo diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..919c220 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,37 @@ +name: Pages + +on: + push: + branches: [master] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - run: npm ci + - run: npm run build:demo + env: + VITE_BASE: /react-breadcrumbs/ + - uses: actions/upload-pages-artifact@v3 + with: + path: demo/dist + - id: deploy + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index bb714a0..7585cd6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,12 @@ node_modules/ -.idea -npm-debug.log +dist/ +demo/dist/ +*.log +.DS_Store +.idea +playwright-report/ +test-results/ +blob-report/ +.vite/ +.playwright-mcp/ +*.tgz diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e32a325..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "node" - - "8" diff --git a/CHANGELOG.md b/CHANGELOG.md index 905d1b9..f930aa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,62 +1,65 @@ # Changelog -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +All notable changes to this project will be documented in this file. -### [2.1.7](https://github.com/svenanders/react-breadcrumbs/compare/v2.1.6...v2.1.7) (2019-06-14) +## [3.0.0] - 2026-09-01 +Rewrite for React 19 and React Router 7. v2 remains available as `react-breadcrumbs@2`. -### Bug Fixes - -* allow usage with latest react-router version ([d4258e9](https://github.com/svenanders/react-breadcrumbs/commit/d4258e9)) - - - - -## [2.1.6](https://github.com/svenanders/react-breadcrumbs/compare/v2.1.5...v2.1.6) (2018-07-05) - +### Breaking +- Peer dependencies are now `react`/`react-dom` ≥ 19 and `react-router` ≥ 7. +- `` is required. The Redux singleton store is gone. +- Default markup is `