Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: reduxjs/react-redux
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.5
Choose a base ref
...
head repository: reduxjs/react-redux
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.1.2
Choose a head ref

Commits on Mar 20, 2023

  1. check for Provider even when using custom context

    ben.durrant committed Mar 20, 2023
    Copy the full SHA
    d14cdcb View commit details
  2. another ts-ignore wee

    ben.durrant committed Mar 20, 2023
    Copy the full SHA
    52a16e3 View commit details

Commits on Mar 21, 2023

  1. Fix the build badge

    timdorr authored Mar 21, 2023
    Copy the full SHA
    89a8680 View commit details

Commits on May 6, 2023

  1. Copy the full SHA
    97edc0f View commit details
  2. Copy the full SHA
    ab72ce1 View commit details

Commits on May 21, 2023

  1. Copy the full SHA
    a800613 View commit details
  2. Copy the full SHA
    909fdd8 View commit details
  3. Tweak TS page

    markerikson committed May 21, 2023
    Copy the full SHA
    ea48959 View commit details
  4. Update Yarn to 3.4.1

    markerikson committed May 21, 2023
    Copy the full SHA
    a21f0d9 View commit details

Commits on May 22, 2023

  1. Update Docusaurus to 2.4

    markerikson committed May 22, 2023
    Copy the full SHA
    3717414 View commit details
  2. Copy the full SHA
    23fceaa View commit details
  3. Really update lockfile

    markerikson committed May 22, 2023
    Copy the full SHA
    f9e5f9e View commit details
  4. Copy the full SHA
    24d2a34 View commit details
  5. Bump Node for docs builds

    markerikson committed May 22, 2023
    Copy the full SHA
    1435bac View commit details
  6. Copy the full SHA
    940fe61 View commit details

Commits on May 28, 2023

  1. Copy the full SHA
    1bd4b25 View commit details
  2. Copy the full SHA
    9332aa6 View commit details

Commits on May 30, 2023

  1. Copy the full SHA
    9ee1df5 View commit details
  2. Copy the full SHA
    e1e38ef View commit details
  3. Copy the full SHA
    53a87e1 View commit details
  4. Release 8.0.6

    markerikson committed May 30, 2023
    Copy the full SHA
    c99502b View commit details

Commits on May 31, 2023

  1. Fix broken RTK peer dep

    markerikson committed May 31, 2023
    Copy the full SHA
    d45204f View commit details
  2. Release 8.0.7

    markerikson committed May 31, 2023
    Copy the full SHA
    06f3ef0 View commit details
  3. Update lockfile

    markerikson committed May 31, 2023
    Copy the full SHA
    07e89ac View commit details

Commits on Jun 3, 2023

  1. Update quick-start.md typos (#2021)

    Co-authored-by: Tim Dorr <timdorr@users.noreply.github.com>
    snehil002 and timdorr authored Jun 3, 2023
    Copy the full SHA
    ee7ac84 View commit details

Commits on Jun 11, 2023

  1. Copy the full SHA
    b5a6d14 View commit details
  2. Experiment with selector stability idea.

    ben.durrant authored and markerikson committed Jun 11, 2023
    Copy the full SHA
    a60a105 View commit details
  3. fix tests

    ben.durrant authored and markerikson committed Jun 11, 2023
    Copy the full SHA
    86716db View commit details
  4. add stability check tests

    EskiMojo14 authored and markerikson committed Jun 11, 2023
    Copy the full SHA
    80b8a51 View commit details
  5. Add docs

    EskiMojo14 authored and markerikson committed Jun 11, 2023
    Copy the full SHA
    e0da9c1 View commit details
  6. add equalityFn test

    EskiMojo14 authored and markerikson committed Jun 11, 2023
    Copy the full SHA
    ca1be67 View commit details
  7. rm extra space

    EskiMojo14 authored and markerikson committed Jun 11, 2023
    Copy the full SHA
    7039625 View commit details
  8. Copy over wording changes

    EskiMojo14 authored and markerikson committed Jun 11, 2023
    Copy the full SHA
    9a617b3 View commit details
  9. Copy the full SHA
    b6cbd2d View commit details
  10. Copy the full SHA
    6007055 View commit details

Commits on Jun 13, 2023

  1. Copy the full SHA
    45d918b View commit details
  2. Add React-Redux

    markerikson committed Jun 13, 2023
    Copy the full SHA
    2eab959 View commit details
  3. Copy the full SHA
    2730991 View commit details
  4. Copy the full SHA
    e1434f7 View commit details
  5. Copy the full SHA
    a25d15c View commit details
  6. lazily create Context for RSC compat

    phryneas authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    51cfc4c View commit details
  7. Update src/components/Context.ts

    Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
    2 people authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    1b350fe View commit details
  8. fixup import

    phryneas authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    aaf1364 View commit details
  9. Copy the full SHA
    1812a78 View commit details
  10. add no-op check

    EskiMojo14 authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    a5e9a43 View commit details
  11. add test

    EskiMojo14 authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    43c75e2 View commit details
  12. update docs

    EskiMojo14 authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    40b8382 View commit details
  13. Apply suggestions from code review

    Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
    2 people authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    94c09f4 View commit details
  14. add import type rule

    EskiMojo14 authored and markerikson committed Jun 13, 2023
    Copy the full SHA
    b5f7ec9 View commit details
  15. Copy the full SHA
    f9a0de3 View commit details
Showing with 8,591 additions and 6,776 deletions.
  1. +26 −6 .eslintrc
  2. +24 −0 .github/workflows/publish.yaml
  3. +2 −2 .github/workflows/size.yaml
  4. +62 −5 .github/workflows/test.yml
  5. +8 −0 .release-it.json
  6. +873 −0 .yarn/releases/yarn-3.4.1.cjs
  7. +0 −55 .yarn/releases/yarn-berry.cjs
  8. +3 −3 .yarnrc.yml
  9. +1 −1 README.md
  10. +3 −0 docs/api/Provider.md
  11. +134 −21 docs/api/hooks.md
  12. +15 −7 docs/introduction/getting-started.md
  13. +5 −6 docs/tutorials/quick-start.md
  14. +3 −5 docs/tutorials/typescript.md
  15. +1 −1 docs/using-react-redux/accessing-store.md
  16. +49 −0 examples/publish-ci/rr-rsc-context/.gitignore
  17. +34 −0 examples/publish-ci/rr-rsc-context/README.md
  18. BIN examples/publish-ci/rr-rsc-context/app/favicon.ico
  19. +107 −0 examples/publish-ci/rr-rsc-context/app/globals.css
  20. +22 −0 examples/publish-ci/rr-rsc-context/app/layout.tsx
  21. +229 −0 examples/publish-ci/rr-rsc-context/app/page.module.css
  22. +98 −0 examples/publish-ci/rr-rsc-context/app/page.tsx
  23. +4 −0 examples/publish-ci/rr-rsc-context/next.config.js
  24. +21 −0 examples/publish-ci/rr-rsc-context/package.json
  25. +1 −0 examples/publish-ci/rr-rsc-context/public/next.svg
  26. +1 −0 examples/publish-ci/rr-rsc-context/public/vercel.svg
  27. +28 −0 examples/publish-ci/rr-rsc-context/tsconfig.json
  28. +483 −0 examples/publish-ci/rr-rsc-context/yarn.lock
  29. +2 −2 netlify.toml
  30. +3 −3 package.json
  31. +31 −6 src/components/Context.ts
  32. +20 −6 src/components/Provider.tsx
  33. +25 −22 src/components/connect.tsx
  34. +2 −2 src/connect/wrapMapToProps.ts
  35. +4 −6 src/hooks/useDispatch.ts
  36. +22 −11 src/hooks/useReduxContext.ts
  37. +98 −12 src/hooks/useSelector.ts
  38. +9 −7 src/hooks/useStore.ts
  39. +2 −2 src/next.ts
  40. +8 −2 src/types.ts
  41. +1 −1 src/utils/bindActionCreators.ts
  42. +2 −2 src/utils/useIsomorphicLayoutEffect.native.ts
  43. +4 −2 src/utils/useIsomorphicLayoutEffect.ts
  44. +2 −1 test/components/Provider.spec.tsx
  45. +2 −2 test/components/connect.spec.tsx
  46. +21 −1 test/hooks/useReduxContext.spec.tsx
  47. +231 −29 test/hooks/useSelector.spec.tsx
  48. +4 −0 test/typetests/hooks.tsx
  49. +17 −6 website/docusaurus.config.js
  50. +3 −2 website/package.json
  51. +8 −9 website/src/pages/index.js
  52. +4,696 −5,402 website/yarn.lock
  53. +1,137 −1,126 yarn.lock
32 changes: 26 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -11,10 +11,16 @@
"react": {
"version": "detect"
},
"import/ignore": ["react-native"],
"import/ignore": [
"react-native"
],
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".tsx"]
"extensions": [
".js",
".ts",
".tsx"
]
}
}
},
@@ -38,12 +44,26 @@
"react/jsx-wrap-multilines": 2,
"react/no-string-refs": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-unused-vars": [
"error"
],
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"]
"@typescript-eslint/no-redeclare": [
"error"
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
]
},
"plugins": ["@typescript-eslint", "import", "react"],
"plugins": [
"@typescript-eslint",
"import",
"react"
],
"globals": {
"JSX": true
}
}
}
24 changes: 24 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Package to npmjs
on:
# keeping it purely manual for now as to not accidentally trigger a release
#release:
# types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/size.yaml
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2-beta
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: preactjs/compressed-size-action@v1
- uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
67 changes: 62 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -14,10 +14,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'yarn'
@@ -31,6 +31,17 @@ jobs:
- name: Collect coverage
run: yarn coverage

- name: Build
run: yarn build

- name: Pack
run: yarn pack

- uses: actions/upload-artifact@v3
with:
name: package
path: ./package.tgz

test-types:
name: Test Types with TypeScript ${{ matrix.ts }}

@@ -40,13 +51,13 @@ jobs:
fail-fast: false
matrix:
node: ['16.x']
ts: ['4.1', '4.2', '4.3', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9.2-rc']
ts: ['4.7', '4.8', '4.9', '5.0']
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
@@ -61,3 +72,49 @@ jobs:
run: |
yarn tsc --version
yarn type-tests
test-published-artifact-local:
name: Test Published Artifact (Local) ${{ matrix.example }}

needs: [build]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['16.x']
example: ['rr-rsc-context']
defaults:
run:
working-directory: ./examples/publish-ci/${{ matrix.example }}
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Use node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'

- name: Install deps
run: yarn install

- name: Remove existing React-Redux
run: yarn remove react-redux

- uses: actions/download-artifact@v3
with:
name: package
path: ./examples/publish-ci/${{ matrix.example }}

- name: Check folder contents
run: ls -l .

- name: Install build artifact
run: yarn add ./package.tgz

- name: Show installed React-Redux versions
run: yarn info react-redux && yarn why react-redux

- name: Build example
run: yarn build
8 changes: 8 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"hooks": {
"after:bump": "yarn && git add -u"
},
"git": {
"tagName": "v${version}"
}
}
Loading