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: v6.0.1
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: master
Choose a head ref

Commits on Mar 3, 2019

  1. Add first SSR integration-tests (#1197)

    * Added integration test-folder and first basic server-rendering test
    
    * Added tests for dispatching actions serverside
    Ephem authored and timdorr committed Mar 3, 2019
    Copy the full SHA
    5bf647d View commit details

Commits on Mar 4, 2019

  1. Change CommonJS Broken Docs Link (#1198)

    mytuny authored and timdorr committed Mar 4, 2019
    Copy the full SHA
    471cb2c View commit details
  2. Copy the full SHA
    4f3c2e2 View commit details
  3. Copy the full SHA
    72ed6db View commit details

Commits on Apr 4, 2019

  1. Copy the full SHA
    8e20a05 View commit details
  2. Copy the full SHA
    28adb54 View commit details

Commits on Apr 7, 2019

  1. Enable versioned docs (#1106)

    * Enable versioned doc
    
    * Start adding 6.0 docs
    
    * Rename 5.1.1 to 5.x and make it work
    
    * Cast v6.x versioned docs
    
    * Display v7.x as pre-release version
    wgao19 authored and markerikson committed Apr 7, 2019
    Copy the full SHA
    eae14cc View commit details

Commits on Apr 9, 2019

  1. Use Hooks internally (aka 7.0) (#1209)

    * Update React to latest
    
    * Update React peer dependency to 16.8.x
    
    * Initial re-implementation of `connectAdvanced` using hooks
    
    Matches changes from v7.0.0-alpha.1
    
    * Update tests to match v7-alpha.1 behavior
    
    Added rtl.act() calls around dispatches and other component updates
    Added clarification on expected mapState calls in some places
    Disabled some no-longer-relevant tests per implementation
    Made tests run against React 16.8 by default
    
    * adding a react hooks test that fails with v7 alpha
    
    * wrapping store.dispatch with rlt.act, fixes component renders
    
    * reducing hooks test to 2 components
    
    * Fix case where wrapper props changed before store update render
    
    * Mark ReactDOM as global in UMD builds
    
    Matches state as of v7.0.0-alpha.2
    
    * Fix perf problems with out-of-bounds array access
    
    Matches state as of v7.0.0-alpha.3
    
    * Add modules to handle importing batchedUpdates
    
    * Use appropriate batched update API for subscriptions
    
    * Inject unstable_batchedUpdates in default entry point
    
    * Provide an alternate entry point for alternate renderers
    
    Matches state as of v7.0.0-alpha.4
    
    * Remove batch arg from createListenerCollection (#1205)
    
    This prevents a bug with Terser (webpack's default minifier) where the
    returned batch function isn't defined due to function inlining.
    
    Matches state as of v7.0.0-alpha.5
    
    * Remove older React versions from Travis
    
    * Add comments to connectAdvanced. Many much comments!
    
    * Re-add test for a custom store as a prop
    
    * Fix null pointer exception when store is given as a prop
    
    We were trying to read contextValue.subscription, even if that
    value was null.  Reworked logic to handle cases where the store
    came in as a prop.
    
    * Ensure wrapper props are passed correctly when forwarding refs
    
    * Add a test to verify subscription passthrough with store-as-prop
    
    * add non-batched tests (#1208)
    
    * Force SSR tests to mimic a Node environment
    
    * Restructure connect tests to group by category for easier reading
    
    Yeah, this kills the blame history. Sorry. But it's a lot easier
    to figure out what the tests are used for now.
    
    * Clean up dead code in Provider tests
    
    * Add tests to verify errors are thrown for bad mapState functions
    
    * Fix edge cases around saved wrapper props and error handling
    
    Changed to useLayoutEffect to ensure that the lastWrapperProps ref
    is written to synchronously when a render is committed. However,
    because React warns about this in SSR, added a check to fall back
    to plain useEffect under Node so we don't print warnings.
    
    Also added logic to ensure that if an error is thrown during a
    mapState function, but the component is unmounted before it can
    render, that the error will still be thrown.  This shouldn't happen
    given our top-down subscriptions, but this will help surface the
    problem in our tests if we ever break the top-down behavior.
    
    * Formatting
    
    * Add a test to verify no errors are printed in SSR usage
    
    * Ignore .idea/
    
    * 7.0.0-beta.0
    
    * Updated outdated SSR-test (dispatch in ancestors) (#1213)
    
    * Added test for injecting dynamic reducers on client and server (#1211)
    
    * Remove WebStorm gitignore
    
    This goes in a global gitignore file, not a project.
    
    * [FIX]: #1219 Save references before update (#1220)
    
    * Re-ignore .idea/
    
    * 7.0.0-beta.1
    
    * Update the codecov config to be more forgiving.
    
    * add test to verify that mapStateToProps is always called with latest store state (#1215)
    timdorr authored and markerikson committed Apr 9, 2019
    Copy the full SHA
    fa58572 View commit details
  2. 7.0.0

    markerikson committed Apr 9, 2019
    Copy the full SHA
    608c9c5 View commit details
  3. Update README

    markerikson committed Apr 9, 2019
    Copy the full SHA
    4bed472 View commit details
  4. 7.0.1

    markerikson committed Apr 9, 2019
    Copy the full SHA
    5c69baf View commit details
  5. Update v7 docs to be "current version" (#1222)

    * v7 docs to current version
    
    * Update version number for 7.x
    wgao19 authored and timdorr committed Apr 9, 2019
    Copy the full SHA
    7402f72 View commit details

Commits on Apr 12, 2019

  1. fix timing issue with setting up store subscription inside a connecte…

    …d component; see issue 1226 (#1235)
    MrWolfZ authored and timdorr committed Apr 12, 2019
    Copy the full SHA
    7555eae View commit details
  2. memoize renderedWrappedComponent separately to prevent this step from…

    … being performed when redundant (#1234)
    vzaidman authored and timdorr committed Apr 12, 2019
    Copy the full SHA
    8719eda View commit details
  3. Switch back to plain Jest

    Since we're not testing multiple versions of React anymore, let's rip this stuff out to speed up the build process a tad.
    timdorr committed Apr 12, 2019
    Copy the full SHA
    c315d4d View commit details
  4. 7.0.2

    timdorr committed Apr 12, 2019
    Copy the full SHA
    8853327 View commit details

Commits on Apr 15, 2019

  1. Copy the full SHA
    960b733 View commit details

Commits on Apr 17, 2019

  1. Fix broken link (#1243)

    fedyk authored and timdorr committed Apr 17, 2019
    Copy the full SHA
    b67a8d3 View commit details
  2. Lower react peer dependency to ^16.8.3 (#1242)

    This PR lowers the `react` peer dependency from `^16.8.4` to `^16.8.3`. This is useful for React Native users, since the `react` peer dependency in `react-native` is [exactly `16.8.3`.](https://github.com/facebook/react-native/blob/master/package.json#L86)
    
    This should have no effect on existing v7 users, but does open up new users to DevTools potentially crashing if they aren't on `react@^16.8.4`.
    jeremy-deutsch authored and timdorr committed Apr 17, 2019
    Copy the full SHA
    d4b54b5 View commit details

Commits on Apr 22, 2019

  1. Hooks docs (#1249)

    * Formatting
    
    * Add initial hooks API docs
    
    * Enable alpha docs versioning
    
    * Fix hooks page metadata
    markerikson authored Apr 22, 2019
    Copy the full SHA
    edc1501 View commit details
  2. Copy the full SHA
    cf24fc8 View commit details
  3. Fix example typo (#1250)

    Fixed example typo `useReduxDispatch => useDispatch`
    madeinfree authored and timdorr committed Apr 22, 2019
    Copy the full SHA
    aefc520 View commit details
  4. Copy the full SHA
    d4f09a7 View commit details

Commits on Apr 23, 2019

  1. Fix typo in useSelector docs (#1254)

    * Add selector deps, perf info, and bump version
    
    * Fix typo in useSelector docs
    philipp-spiess authored and markerikson committed Apr 23, 2019
    Copy the full SHA
    e2804f2 View commit details
  2. Copy the full SHA
    67944a3 View commit details

Commits on Apr 24, 2019

  1. Copy the full SHA
    9803028 View commit details

Commits on Apr 26, 2019

  1. Copy the full SHA
    d162625 View commit details

Commits on Apr 28, 2019

  1. 7.0.3

    markerikson committed Apr 28, 2019
    Copy the full SHA
    dbfcc97 View commit details
  2. Remove useRedux docs

    markerikson committed Apr 28, 2019
    Copy the full SHA
    712616d View commit details
  3. detected a syntax error typo (#1265)

    arvinio authored and timdorr committed Apr 28, 2019
    Copy the full SHA
    e4c0d4d View commit details

Commits on May 1, 2019

  1. Copy the full SHA
    58bbf4e View commit details
  2. Copy the full SHA
    0586c0b View commit details

Commits on May 2, 2019

  1. Removed UseAction (#1270)

    Removed the useAction suggestion as useAction has been removed.
    mohan-murali authored and timdorr committed May 2, 2019
    Copy the full SHA
    5867fdc View commit details
  2. Add docs for batch() (#1271)

    * Add `batch()` to docs
    
    * Make website work for `batch()` docs as well as on versioned docs
    wgao19 authored and timdorr committed May 2, 2019
    Copy the full SHA
    b4d6ac3 View commit details

Commits on May 4, 2019

  1. Copy the full SHA
    8605088 View commit details

Commits on May 8, 2019

  1. Copy the full SHA
    dec00a8 View commit details

Commits on May 13, 2019

  1. Check if window.document.createElement exists to determine if renderi…

    …ng on server or not (#1283)
    tobhult authored and timdorr committed May 13, 2019
    Copy the full SHA
    dcf2cb0 View commit details

Commits on May 15, 2019

  1. fixed typo (#1285)

    Changed "Prefer `useSelector()` as your primary choices." to ...primary
    choice.
    jonyonson authored and markerikson committed May 15, 2019
    Copy the full SHA
    7669175 View commit details

Commits on May 20, 2019

  1. adjust the hooks docs with more details about useSelector and add som…

    …e more examples (#1267)
    
    * adjust the hooks docs with more details about the inner workings of useSelector and add some more examples
    
    * update hooks docs for removal of `useSelector` deps; add examples for usage with memoizing selectors; removed code example for custom `useActions` hook to not second-guess our own API design decision; some other minor docs tweaks
    
    * in the hooks doc code examples change nr to num or number
    
    * Update useSelector equality info and add hooks recipes
    MrWolfZ authored and markerikson committed May 20, 2019
    Copy the full SHA
    0ea274a View commit details
  2. Copy the full SHA
    24af60e View commit details
  3. Fix some broken links

    Fixes #1289
    timdorr authored May 20, 2019
    Copy the full SHA
    7e653f8 View commit details

Commits on May 21, 2019

  1. Update hooks.md

    markerikson authored May 21, 2019
    Copy the full SHA
    8a645be View commit details

Commits on May 25, 2019

  1. Various adjustments to hooks docs (#1293)

    * fix bug in useActions recipe in the hooks docs
    
    * various adjustments to hooks docs
    
    * correct a statement about preventing stale props
    MrWolfZ authored and timdorr committed May 25, 2019
    Copy the full SHA
    0640501 View commit details

Commits on May 29, 2019

  1. fix link on doc (#1297)

    toshihidetagami authored and timdorr committed May 29, 2019
    Copy the full SHA
    08e6064 View commit details

Commits on Jun 7, 2019

  1. Update hooks.md

    markerikson authored Jun 7, 2019
    Copy the full SHA
    851eb0c View commit details

Commits on Jun 11, 2019

  1. add react hooks for accessing redux store state and dispatching redux…

    … actions (#1248)
    
    * add react hooks for accessing redux store state and dispatching redux actions
    
    * remove `useReduxContext` from public API
    
    * add `useRedux` hook
    
    * Preserve stack trace of errors inside store subscription callback
    
    Ported changes from react-redux-hooks-poc
    
    Note: the "transient errors" test seems flawed atm.
    
    * Alter test descriptions to use string names
    
    WebStorm won't recognize tests as runnable if `someFunc.name` is
    used as the `describe()` argument.
    MrWolfZ authored and timdorr committed Jun 11, 2019
    Copy the full SHA
    15ef9b9 View commit details
  2. 7.1.0-alpha.0

    markerikson authored and timdorr committed Jun 11, 2019
    Copy the full SHA
    3d5b803 View commit details
  3. add deps to useSelector to allow controlling stability of selector (

    #1251)
    
    * fix stale selector issue
    
    * add `deps` to `useSelector` to allow controlling stability of selector
    MrWolfZ authored and timdorr committed Jun 11, 2019
    Copy the full SHA
    070270d View commit details
  4. 7.1.0-alpha.1

    markerikson authored and timdorr committed Jun 11, 2019
    Copy the full SHA
    3a5bef4 View commit details
  5. use proper example code tag in hooks JSDoc comments (#1257)

    * use proper example code tag in hooks JSDoc comments
    
    * fix mistake in `useActions` hook example code
    
    * remove TypeScript annotations from example code and adjust `useReduxContext` hook to also use @example JSDoc tag
    MrWolfZ authored and timdorr committed Jun 11, 2019
    Copy the full SHA
    9f422c3 View commit details
Showing with 53,227 additions and 27,973 deletions.
  1. +0 −14 .babelrc.js
  2. +6 −0 .codesandbox/ci.json
  3. +0 −33 .eslintrc
  4. +73 −0 .eslintrc.json
  5. +1 −0 .gitattributes
  6. +1 −0 .github/FUNDING.yml
  7. +0 −24 .github/ISSUE_TEMPLATE/---bug-report.md
  8. +0 −10 .github/ISSUE_TEMPLATE/---support-usage-question.md
  9. +55 −0 .github/ISSUE_TEMPLATE/bug_report.yml
  10. +5 −0 .github/ISSUE_TEMPLATE/config.yml
  11. +34 −0 .github/ISSUE_TEMPLATE/feature_request.yml
  12. +24 −0 .github/workflows/publish.yaml
  13. +16 −0 .github/workflows/size.yaml
  14. +314 −0 .github/workflows/test.yml
  15. +24 −10 .gitignore
  16. +2 −0 .prettierignore
  17. +8 −0 .release-it.json
  18. +0 −14 .travis.yml
  19. +3 −0 .vscode/settings.json
  20. +925 −0 .yarn/releases/yarn-4.4.1.cjs
  21. +7 −0 .yarnrc.yml
  22. +0 −1 CODE_OF_CONDUCT.md
  23. +28 −91 CONTRIBUTING.md
  24. +40 −20 README.md
  25. +356 −0 api-extractor.dt-types.json
  26. +356 −0 api-extractor.json
  27. +7 −1 codecov.yml
  28. +0 −12 docs/README.md
  29. +65 −49 docs/api/Provider.md
  30. +46 −0 docs/api/batch.md
  31. +67 −116 docs/api/connect.md
  32. +593 −0 docs/api/hooks.md
  33. +150 −0 docs/introduction/getting-started.md
  34. +22 −21 docs/introduction/why-use-react-redux.md
  35. +30 −63 docs/troubleshooting.md
  36. +453 −0 docs/tutorials/connect.md
  37. +222 −0 docs/tutorials/quick-start.md
  38. +182 −0 docs/tutorials/typescript.md
  39. +38 −18 docs/using-react-redux/accessing-store.md
  40. +50 −41 docs/using-react-redux/connect-dispatching-actions-with-mapDispatchToProps.md
  41. +20 −16 docs/using-react-redux/connect-extracting-data-with-mapStateToProps.md
  42. +284 −0 docs/using-react-redux/usage-with-typescript.md
  43. +626 −0 etc/react-redux.api.md
  44. +600 −0 etc/react-redux.dt-types.api.md
  45. +49 −0 examples/publish-ci/rr-rsc-context/.gitignore
  46. +34 −0 examples/publish-ci/rr-rsc-context/README.md
  47. BIN examples/publish-ci/rr-rsc-context/app/favicon.ico
  48. +107 −0 examples/publish-ci/rr-rsc-context/app/globals.css
  49. +22 −0 examples/publish-ci/rr-rsc-context/app/layout.tsx
  50. +231 −0 examples/publish-ci/rr-rsc-context/app/page.module.css
  51. +98 −0 examples/publish-ci/rr-rsc-context/app/page.tsx
  52. +4 −0 examples/publish-ci/rr-rsc-context/next.config.js
  53. +21 −0 examples/publish-ci/rr-rsc-context/package.json
  54. +1 −0 examples/publish-ci/rr-rsc-context/public/next.svg
  55. +1 −0 examples/publish-ci/rr-rsc-context/public/vercel.svg
  56. +28 −0 examples/publish-ci/rr-rsc-context/tsconfig.json
  57. +500 −0 examples/publish-ci/rr-rsc-context/yarn.lock
  58. +22 −0 netlify.toml
  59. +0 −11,489 package-lock.json
  60. +73 −68 package.json
  61. +0 −54 rollup.config.js
  62. +0 −5 src/components/Context.js
  63. +50 −0 src/components/Context.ts
  64. +0 −84 src/components/Provider.js
  65. +105 −0 src/components/Provider.tsx
  66. +813 −0 src/components/connect.tsx
  67. +0 −279 src/components/connectAdvanced.js
  68. +0 −104 src/connect/connect.js
  69. +14 −0 src/connect/invalidArgFactory.ts
  70. +0 −28 src/connect/mapDispatchToProps.js
  71. +25 −0 src/connect/mapDispatchToProps.ts
  72. +0 −13 src/connect/mapStateToProps.js
  73. +14 −0 src/connect/mapStateToProps.ts
  74. +0 −44 src/connect/mergeProps.js
  75. +78 −0 src/connect/mergeProps.ts
  76. +0 −128 src/connect/selectorFactory.js
  77. +242 −0 src/connect/selectorFactory.ts
  78. +0 −27 src/connect/verifySubselectors.js
  79. +26 −0 src/connect/verifySubselectors.ts
  80. +49 −13 src/connect/{wrapMapToProps.js → wrapMapToProps.ts}
  81. +51 −0 src/exports.ts
  82. +104 −0 src/hooks/useDispatch.ts
  83. +42 −0 src/hooks/useReduxContext.ts
  84. +286 −0 src/hooks/useSelector.ts
  85. +123 −0 src/hooks/useStore.ts
  86. +34 −0 src/index-rsc.ts
  87. +0 −6 src/index.js
  88. +1 −0 src/index.ts
  89. +180 −0 src/types.ts
  90. +183 −0 src/utils/Subscription.ts
  91. +4 −0 src/utils/batch.ts
  92. +16 −0 src/utils/bindActionCreators.ts
  93. +139 −0 src/utils/hoistStatics.ts
  94. +17 −17 src/utils/{isPlainObject.js → isPlainObject.ts}
  95. +97 −0 src/utils/react-is.ts
  96. +3 −0 src/utils/react.ts
  97. +6 −5 src/utils/{shallowEqual.js → shallowEqual.ts}
  98. +40 −0 src/utils/useIsomorphicLayoutEffect.ts
  99. +9 −0 src/utils/useSyncExternalStore.ts
  100. +6 −2 src/utils/{verifyPlainObject.js → verifyPlainObject.ts}
  101. +1 −1 src/utils/{warning.js → warning.ts}
  102. +0 −5 src/utils/wrapActionCreators.js
  103. +0 −5 test/.eslintrc
  104. +0 −6 test/babel-transformer.jest.js
  105. +0 −279 test/components/Provider.spec.js
  106. +407 −0 test/components/Provider.spec.tsx
  107. +0 −2,652 test/components/connect.spec.js
  108. +3,470 −0 test/components/connect.spec.tsx
  109. +0 −183 test/components/connectAdvanced.spec.js
  110. +154 −0 test/components/hooks.spec.tsx
  111. +76 −0 test/hooks/hooks.withTypes.test.tsx
  112. +61 −0 test/hooks/useDispatch.spec.tsx
  113. +35 −0 test/hooks/useReduxContext.spec.tsx
  114. +1,119 −0 test/hooks/useSelector.spec.tsx
  115. +0 −97 test/install-test-deps.js
  116. +204 −0 test/integration/dynamic-reducers.spec.tsx
  117. +204 −0 test/integration/server-rendering.spec.tsx
  118. +216 −0 test/integration/ssr.spec.tsx
  119. +0 −451 test/react/16.4/package-lock.json
  120. +0 −12 test/react/16.4/package.json
  121. +0 −420 test/react/16.5/package-lock.json
  122. +0 −12 test/react/16.5/package.json
  123. +0 −420 test/react/16.6/package-lock.json
  124. +0 −12 test/react/16.6/package.json
  125. +0 −433 test/react/16.8/package-lock.json
  126. +0 −12 test/react/16.8/package.json
  127. +0 −41 test/run-tests.js
  128. +1 −0 test/setup.ts
  129. +7 −0 test/typeTestHelpers.ts
  130. +495 −0 test/typetests/connect-mapstate-mapdispatch.test-d.tsx
  131. +900 −0 test/typetests/connect-options-and-issues.test-d.tsx
  132. +52 −0 test/typetests/counterApp.ts
  133. +277 −0 test/typetests/hooks.test-d.tsx
  134. +47 −0 test/typetests/hooks.withTypes.test-d.tsx
  135. +24 −0 test/typetests/provider.test-d.tsx
  136. +451 −0 test/typetests/react-redux-types.test-d.tsx
  137. +59 −0 test/utils/Subscription.spec.ts
  138. +19 −22 test/utils/{isPlainObject.spec.js → isPlainObject.spec.ts}
  139. +17 −14 test/utils/{shallowEqual.spec.js → shallowEqual.spec.ts}
  140. +0 −28 test/utils/wrapActionCreators.spec.js
  141. +29 −0 tsconfig.base.json
  142. +10 −0 tsconfig.build.json
  143. +13 −0 tsconfig.json
  144. +10 −0 tsconfig.test.json
  145. +116 −0 tsup.config.ts
  146. +17 −0 vitest.config.mts
  147. +22 −0 website/.gitignore
  148. +10 −5 website/README.md
  149. +17 −0 website/_redirects
  150. +0 −111 website/core/Footer.js
  151. +228 −0 website/docusaurus.config.ts
  152. +0 −9,153 website/package-lock.json
  153. +19 −7 website/package.json
  154. +0 −42 website/pages/en/404.js
  155. +0 −174 website/pages/en/index.js
  156. +0 −22 website/sidebars.json
  157. +48 −0 website/sidebars.ts
  158. +0 −104 website/siteConfig.js
  159. +201 −0 website/src/pages/index.js
  160. +89 −0 website/src/pages/styles.module.css
  161. +59 −0 website/src/theme/NotFound.js
  162. +25 −26 website/static/css/404.css
  163. +3 −3 website/static/css/codeblock.css
  164. +180 −203 website/static/css/custom.css
  165. +1 −0 website/static/img/course-callout-mid.svg
  166. +1 −0 website/static/img/course-callout-narrow.svg
  167. +1 −0 website/static/img/course-callout-wide.svg
  168. +1 −1 website/static/img/external-link-square-alt-solid.svg
  169. +1 −1 website/static/img/github-brands.svg
  170. +1 −1 website/static/img/noun_Box_1664404.svg
  171. +1 −1 website/static/img/noun_Certificate_1945625.svg
  172. +1 −1 website/static/img/noun_Check_1870817.svg
  173. +1 −1 website/static/img/noun_Rocket_1245262.svg
  174. BIN website/static/img/redux-logo-landscape.png
  175. BIN website/static/img/redux-logo-twitter.png
  176. +1 −7 website/static/img/redux.svg
  177. +1 −7 website/static/img/redux_white.svg
  178. +24 −24 website/static/scripts/codeblock.js
  179. +62 −0 website/static/scripts/monokaiTheme.js
  180. +10 −7 website/static/scripts/sidebarScroll.js
  181. +500 −0 website/versioned_docs/version-5.x/api.md
  182. +115 −0 website/versioned_docs/version-5.x/api/Provider.md
  183. +50 −0 website/versioned_docs/version-5.x/api/api.md
  184. +88 −0 website/versioned_docs/version-5.x/api/connect-advanced.md
  185. +335 −0 website/versioned_docs/version-5.x/api/connect.md
  186. +440 −0 website/versioned_docs/version-5.x/introduction/basic-tutorial.md
  187. +67 −0 website/versioned_docs/version-5.x/introduction/quick-start.md
  188. +88 −0 website/versioned_docs/version-5.x/introduction/why-use-react-redux.md
  189. +89 −0 website/versioned_docs/version-5.x/troubleshooting.md
  190. +400 −0 ...rsioned_docs/version-5.x/using-react-redux/connect-dispatching-actions-with-mapDispatchToProps.md
  191. +228 −0 website/versioned_docs/version-5.x/using-react-redux/connect-extracting-data-with-mapStateToProps.md
  192. +100 −0 website/versioned_docs/version-6.x/api/Provider.md
  193. +1 −1 {docs → website/versioned_docs/version-6.x}/api/connect-advanced.md
  194. +579 −0 website/versioned_docs/version-6.x/api/connect.md
  195. +21 −39 {docs → website/versioned_docs/version-6.x}/introduction/basic-tutorial.md
  196. +3 −7 {docs → website/versioned_docs/version-6.x}/introduction/quick-start.md
  197. +90 −0 website/versioned_docs/version-6.x/introduction/why-use-react-redux.md
  198. +89 −0 website/versioned_docs/version-6.x/troubleshooting.md
  199. +138 −0 website/versioned_docs/version-6.x/using-react-redux/accessing-store.md
  200. +400 −0 ...rsioned_docs/version-6.x/using-react-redux/connect-dispatching-actions-with-mapDispatchToProps.md
  201. +228 −0 website/versioned_docs/version-6.x/using-react-redux/connect-extracting-data-with-mapStateToProps.md
  202. +100 −0 website/versioned_docs/version-7.0/api/Provider.md
  203. +34 −0 website/versioned_docs/version-7.0/api/batch.md
  204. +86 −0 website/versioned_docs/version-7.0/api/connect-advanced.md
  205. +579 −0 website/versioned_docs/version-7.0/api/connect.md
  206. +440 −0 website/versioned_docs/version-7.0/introduction/basic-tutorial.md
  207. +79 −0 website/versioned_docs/version-7.0/introduction/quick-start.md
  208. +90 −0 website/versioned_docs/version-7.0/introduction/why-use-react-redux.md
  209. +89 −0 website/versioned_docs/version-7.0/troubleshooting.md
  210. +138 −0 website/versioned_docs/version-7.0/using-react-redux/accessing-store.md
  211. +400 −0 ...rsioned_docs/version-7.0/using-react-redux/connect-dispatching-actions-with-mapDispatchToProps.md
  212. +228 −0 website/versioned_docs/version-7.0/using-react-redux/connect-extracting-data-with-mapStateToProps.md
  213. +100 −0 website/versioned_docs/version-7.1/api/Provider.md
  214. +34 −0 website/versioned_docs/version-7.1/api/batch.md
  215. +86 −0 website/versioned_docs/version-7.1/api/connect-advanced.md
  216. +579 −0 website/versioned_docs/version-7.1/api/connect.md
  217. +447 −0 website/versioned_docs/version-7.1/api/hooks.md
  218. +440 −0 website/versioned_docs/version-7.1/introduction/basic-tutorial.md
  219. +79 −0 website/versioned_docs/version-7.1/introduction/quick-start.md
  220. +91 −0 website/versioned_docs/version-7.1/introduction/why-use-react-redux.md
  221. +89 −0 website/versioned_docs/version-7.1/troubleshooting.md
  222. +138 −0 website/versioned_docs/version-7.1/using-react-redux/accessing-store.md
  223. +400 −0 ...rsioned_docs/version-7.1/using-react-redux/connect-dispatching-actions-with-mapDispatchToProps.md
  224. +228 −0 website/versioned_docs/version-7.1/using-react-redux/connect-extracting-data-with-mapStateToProps.md
  225. +225 −0 website/versioned_docs/version-7.1/using-react-redux/static-types.md
  226. BIN website/versioned_docs/version-7.2/api/.DS_Store
  227. +100 −0 website/versioned_docs/version-7.2/api/Provider.md
  228. +34 −0 website/versioned_docs/version-7.2/api/batch.md
  229. +86 −0 website/versioned_docs/version-7.2/api/connect-advanced.md
  230. +579 −0 website/versioned_docs/version-7.2/api/connect.md
  231. +480 −0 website/versioned_docs/version-7.2/api/hooks.md
  232. +440 −0 website/versioned_docs/version-7.2/introduction/basic-tutorial.md
  233. +83 −0 website/versioned_docs/version-7.2/introduction/quick-start.md
  234. +90 −0 website/versioned_docs/version-7.2/introduction/why-use-react-redux.md
  235. +116 −0 website/versioned_docs/version-7.2/troubleshooting.md
  236. +148 −0 website/versioned_docs/version-7.2/using-react-redux/accessing-store.md
  237. +418 −0 ...rsioned_docs/version-7.2/using-react-redux/connect-dispatching-actions-with-mapDispatchToProps.md
  238. +228 −0 website/versioned_docs/version-7.2/using-react-redux/connect-extracting-data-with-mapStateToProps.md
  239. +225 −0 website/versioned_docs/version-7.2/using-react-redux/static-types.md
  240. +20 −0 website/versioned_sidebars/version-5.x-sidebars.json
  241. +20 −0 website/versioned_sidebars/version-6.x-sidebars.json
  242. +21 −0 website/versioned_sidebars/version-7.0-sidebars.json
  243. +23 −0 website/versioned_sidebars/version-7.1-sidebars.json
  244. +23 −0 website/versioned_sidebars/version-7.2-sidebars.json
  245. +15,124 −0 website/yarn.lock
  246. +6,541 −0 yarn.lock
14 changes: 0 additions & 14 deletions .babelrc.js

This file was deleted.

6 changes: 6 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sandboxes": ["vanilla", "vanilla-ts"],
"node": "20",
"buildCommand": "build",
"packages": ["."]
}
33 changes: 0 additions & 33 deletions .eslintrc

This file was deleted.

73 changes: 73 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"env": {
"browser": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2015,
"project": true,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import", "react"],
"rules": {
"valid-jsdoc": [
2,
{ "requireReturnType": false, "requireParamType": false }
],
"react/no-is-mounted": [0]
},
"settings": {
"import/ignore": ["react-native"],
"import/resolver": {
"typescript": { "extensions": [".js", ".ts", ".tsx"] }
},
"react": { "version": "detect" }
},
"overrides": [
{
"files": ["**/*.{ts,tsx,cts}"],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-comment": [0],
"@typescript-eslint/no-redeclare": [2],
"@typescript-eslint/no-explicit-any": [0],
"@typescript-eslint/no-unused-vars": [0],
"@typescript-eslint/ban-types": [0],
"react/display-name": [0],
"react/jsx-no-undef": [2],
"react/jsx-uses-react": [1],
"react/jsx-wrap-multilines": [2],
"react/no-string-refs": [0],
"@typescript-eslint/consistent-type-imports": [
2,
{ "fixStyle": "separate-type-imports" }
],
"@typescript-eslint/consistent-type-exports": [2],
"valid-jsdoc": [
2,
{ "requireReturnType": false, "requireParamType": false }
],
"react/no-is-mounted": [0]
}
},
{
"files": ["**/test/**/*.{ts,tsx}"],
"parserOptions": { "project": true }
}
]
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [markerikson, timdorr, phryneas]
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/---bug-report.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/---support-usage-question.md

This file was deleted.

55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 🐛 Bug Report
description: Something isn't working correctly.
body:
- type: markdown
attributes:
value: |
Thank you for contributing to open source!
Do you need some help?
======================
The issue tracker is meant for bug reports only. This isn't the best place for support or usage questions. Questions here don't have as much visibility as they do elsewhere. Before you ask a question, here are some resources to get help first:
- Read the docs: https://react-redux.js.org/
- Check out the troubleshooting guide: https://react-redux.js.org/troubleshooting
- Look for/ask questions on Stack Overflow: https://stackoverflow.com/questions/tagged/redux
- Ask in chat: https://www.reactiflux.com/
Think you found a bug?
======================
The best bug report is a failing test in the repository as a pull request. Otherwise, please use the form below.
- type: textarea
attributes:
label: What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
value: |
- React:
- ReactDOM/React Native:
- Redux:
- React Redux:
validations:
required: true
- type: textarea
attributes:
label: What is the current behavior?
description: |
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to a CodeSandbox (https://codesandbox.io/s/new) or RN Snack (https://snack.expo.io/) example below
validations:
required: true
- type: textarea
attributes:
label: What is the expected behavior?
validations:
required: true
- type: input
attributes:
label: Which browser and OS are affected by this issue?
validations:
required: false
- type: checkboxes
attributes:
label: Did this work in previous versions of React Redux?
options:
- label: 'Yes'
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 🤔 Questions and Help
url: https://redux.js.org/introduction/getting-started#help-and-discussion
about: This is a bug tracker, not a support system. For usage questions, please use our support resources.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 👍 Feature Request
description: I'd like React Redux to do something new.
body:
- type: markdown
attributes:
value: |
Thank you for contributing to open source!
Do you need some help?
======================
The issue tracker is meant for bug reports only. This isn't the best place for support or usage questions. Questions here don't have as much visibility as they do elsewhere. Before you ask a question, here are some resources to get help first:
- Read the docs: https://react-redux.js.org/
- Check out the troubleshooting guide: https://react-redux.js.org/troubleshooting
- Look for/ask questions on Stack Overflow: https://stackoverflow.com/questions/tagged/redux
- Ask in chat: https://www.reactiflux.com/
- type: textarea
attributes:
label: What is the new or updated feature that you are suggesting?
description: |
Please provide thoughtful commentary *and code samples* on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc. Please keep it product-centric.
validations:
required: true
- type: textarea
attributes:
label: Why should this feature be included?
validations:
required: true
- type: textarea
attributes:
label: What docs changes are needed to explain this?
validations:
required: 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@v4
- uses: actions/setup-node@v4
with:
node-version: '22.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 }}
16 changes: 16 additions & 0 deletions .github/workflows/size.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Bundle Size

on: [pull_request]

jobs:
build:
name: Check compressed size
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
Loading