diff --git a/.babel-preset.js b/.babel-preset.js index 92d2c4321a..4c08fb3284 100644 --- a/.babel-preset.js +++ b/.babel-preset.js @@ -16,10 +16,7 @@ const browsers = [ ] const plugins = [ - ['@babel/plugin-proposal-class-properties', { loose: true }], - ['@babel/plugin-proposal-optional-chaining', { loose: true }], '@babel/plugin-proposal-export-default-from', - '@babel/plugin-proposal-export-namespace-from', '@babel/plugin-syntax-dynamic-import', [ '@babel/plugin-transform-runtime', @@ -36,6 +33,12 @@ const plugins = [ // modules and avoid modules that prevent tree-shaking: // https://github.com/lodash/lodash/issues/4119 'lodash', + [ + 'transform-next-use-client', + { + customClientImports: ['useAutoControlledValue', 'useEventCallback', 'useMergedRefs'], + }, + ], // CJS modules are not tree-shakable in any bundler by default // https://github.com/formium/tsdx#using-lodash (isESBuild || isUMDBuild) && [ diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ea763b310..295a31bdfc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,9 +5,12 @@ general: ignore: - gh-pages +orbs: + browser-tools: circleci/browser-tools@1.4.6 + docker_defaults: &docker_defaults docker: - - image: circleci/node:12-browsers + - image: cimg/node:16.16-browsers working_directory: ~/project/semantic-ui-react environment: @@ -32,6 +35,7 @@ jobs: key: v6-node-{{ .Branch }}-{{ checksum "yarn.lock" }} paths: - ~/.cache/yarn + - browser-tools/install-chrome - persist_to_workspace: root: ~/ paths: diff --git a/.eslintrc b/.eslintrc index 14d66ad96c..da85b88782 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,7 +1,7 @@ { "root": true, "parser": "babel-eslint", - "extends": ["airbnb", "prettier"], + "extends": ["airbnb", "prettier", "plugin:react-hooks/recommended"], "env": { "browser": true }, @@ -9,8 +9,9 @@ "newline-per-chained-call": "off", "class-methods-use-this": "off", "consistent-return": "off", - "complexity": ["warn", 10], + "complexity": "off", "global-require": "off", + "func-names": "off", "lines-between-class-members": "off", "no-console": "error", "no-multi-spaces": ["error", { "ignoreEOLComments": true }], diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 1897cbd5da..913c8a0c81 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 16.x - name: Cache node_modules uses: actions/cache@v1 diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 0000000000..8ede38bf97 --- /dev/null +++ b/.release-it.json @@ -0,0 +1,9 @@ +{ + "github": { + "release": false + }, + "npm": { + "publishArgs": "--registry=https://registry.npmjs.org", + "skipChecks": true + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md index caf5e8060d..30b47c7a45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,45 @@ # Change Log +## v3.0.0-beta.2 (2023-12-30) + +#### :rocket: New Feature +* [#4437](https://github.com/Semantic-Org/Semantic-UI-React/pull/4437) feat(FormGroup): add error prop to FormGroup ([@felixmosh](https://github.com/felixmosh)) +* [#4436](https://github.com/Semantic-Org/Semantic-UI-React/pull/4436) feat(Form.Group): add disabled prop ([@naman1608](https://github.com/naman1608)) + +#### :bug: Bug Fix +* [#4447](https://github.com/Semantic-Org/Semantic-UI-React/pull/4447) fix(typings): update types to support `ref` ([@layershifter](https://github.com/layershifter)) +* [#4446](https://github.com/Semantic-Org/Semantic-UI-React/pull/4446) fix(Popup): fix positioning in scrollable container ([@CoryDuncan](https://github.com/CoryDuncan)) +* [#4445](https://github.com/Semantic-Org/Semantic-UI-React/pull/4445) fix(Portal): fix event handling for mouseEnter/mouseLeave ([@tourman](https://github.com/tourman)) + +#### :memo: Documentation +* [#4431](https://github.com/Semantic-Org/Semantic-UI-React/pull/4431) docs: add migration guide to v3 ([@layershifter](https://github.com/layershifter)) + +#### :house: Internal +* [#4456](https://github.com/Semantic-Org/Semantic-UI-React/pull/4456) chore: remove "dot-syntax" from examples ([@layershifter](https://github.com/layershifter)) +* [#4455](https://github.com/Semantic-Org/Semantic-UI-React/pull/4455) chore: fix lint warnings ([@layershifter](https://github.com/layershifter)) +* [#4452](https://github.com/Semantic-Org/Semantic-UI-React/pull/4452) chore: add "use client" directive in components where it's needed ([@layershifter](https://github.com/layershifter)) +* [#4454](https://github.com/Semantic-Org/Semantic-UI-React/pull/4454) chore: bump Babel & react-docgen ([@layershifter](https://github.com/layershifter)) +* [#4449](https://github.com/Semantic-Org/Semantic-UI-React/pull/4449) chore: remove usage of deprecated `.defaultProps` ([@tourman](https://github.com/tourman)) + +## v2.1.5 (2023-12-10) + +#### :bug: Bug Fix +* [#4446](https://github.com/Semantic-Org/Semantic-UI-React/pull/4446) fix(Popup): fix positioning in scrollable container ([@CoryDuncan](https://github.com/CoryDuncan)) + +## v3.0.0-beta.0 (2023-02-28) + +> Migration guide is available here ➡️ https://react.semantic-ui.com/migration-guide/ + +#### :rocket: New Feature + +- [#4233](https://github.com/Semantic-Org/Semantic-UI-React/pull/4233) All components support native [ref forwarding](https://reactjs.org/docs/forwarding-refs.html) 🎉 + +#### :boom: Breaking Change + +- [#4286](https://github.com/Semantic-Org/Semantic-UI-React/pull/4286) chore: remove `Ref` component +- [#4257](https://github.com/Semantic-Org/Semantic-UI-React/pull/4257) chore: remove `Visibility` component +- [#4266](https://github.com/Semantic-Org/Semantic-UI-React/pull/4266) chore: remove some static props on `Transition` component + ## v2.1.4 (2022-11-23) #### :bug: Bug Fix diff --git a/docs/src/components/Document.js b/docs/src/components/Document.js index 3541722176..d86e4e0ae1 100644 --- a/docs/src/components/Document.js +++ b/docs/src/components/Document.js @@ -20,7 +20,7 @@ const Document = ({ Body, children, Head, Html, siteData: { dev, versions } }) = />