Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.7.0 integration branch #1565

Merged
merged 66 commits into from
Dec 10, 2021
Merged

v1.7.0 integration branch #1565

merged 66 commits into from
Dec 10, 2021

Conversation

phryneas
Copy link
Member

@phryneas phryneas commented Oct 1, 2021

Current progress is tracked in this Beta Project

@netlify
Copy link

netlify bot commented Oct 1, 2021

✔️ Deploy Preview for redux-starter-kit-docs ready!

🔨 Explore the source changes: 3fb4526

🔍 Inspect the deploy log: https://app.netlify.com/sites/redux-starter-kit-docs/deploys/6156c41a1043d200086cd762

😎 Browse the preview: https://deploy-preview-1565--redux-starter-kit-docs.netlify.app

@phryneas phryneas added this to the 1.7 milestone Oct 1, 2021
@github-actions
Copy link

github-actions bot commented Oct 1, 2021

size-limit report 📦

Path Size
1. entry point: @reduxjs/toolkit (cjs.production.min.js) 12.93 KB (+5.69% 🔺)
1. entry point: @reduxjs/toolkit (esm.js) 10.79 KB (+5.58% 🔺)
1. entry point: @reduxjs/toolkit/query (cjs.production.min.js) 22.59 KB (+11% 🔺)
1. entry point: @reduxjs/toolkit/query (esm.js) 18.94 KB (+9.08% 🔺)
1. entry point: @reduxjs/toolkit/query/react (cjs.production.min.js) 24.83 KB (+11.76% 🔺)
1. entry point: @reduxjs/toolkit/query/react (esm.js) 21.63 KB (+9.14% 🔺)
2. entry point: @reduxjs/toolkit (without dependencies) (cjs.production.min.js) 5.71 KB (+2.82% 🔺)
2. entry point: @reduxjs/toolkit (without dependencies) (esm.js) 5.67 KB (+2.53% 🔺)
2. entry point: @reduxjs/toolkit/query (without dependencies) (cjs.production.min.js) 10.04 KB (+9.2% 🔺)
2. entry point: @reduxjs/toolkit/query (without dependencies) (esm.js) 10.47 KB (+9.27% 🔺)
2. entry point: @reduxjs/toolkit/query/react (without dependencies) (cjs.production.min.js) 2.8 KB (+18.16% 🔺)
2. entry point: @reduxjs/toolkit/query/react (without dependencies) (esm.js) 3.21 KB (+45.58% 🔺)
3. createSlice (esm.js) 5.03 KB (-2.43% 🔽)
3. createEntityAdapter (esm.js) 6.28 KB (+7.76% 🔺)
3. configureStore (esm.js) 5.65 KB (-3.14% 🔽)
3. createApi (esm.js) 17.18 KB (+9.7% 🔺)
3. createApi (react) (esm.js) 19.89 KB (+10.21% 🔺)
3. fetchBaseQuery (esm.js) 11.61 KB (+6.27% 🔺)
3. setupListeners (esm.js) 10.42 KB (+6.42% 🔺)
3. ApiProvider (esm.js) 18.52 KB (+9.02% 🔺)

Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 1, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit aad6d32:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
reduxjs/redux-toolkit Configuration
@examples-query-react/advanced Configuration

@netlify
Copy link

netlify bot commented Oct 1, 2021

✔️ Deploy Preview for redux-starter-kit-docs ready!

🔨 Explore the source changes: 18ef51d

🔍 Inspect the deploy log: https://app.netlify.com/sites/redux-starter-kit-docs/deploys/6156c48638a3b1000774e759

😎 Browse the preview: https://deploy-preview-1565--redux-starter-kit-docs.netlify.app

@netlify
Copy link

netlify bot commented Oct 1, 2021

✔️ Deploy Preview for redux-starter-kit-docs ready!

🔨 Explore the source changes: aad6d32

🔍 Inspect the deploy log: https://app.netlify.com/sites/redux-starter-kit-docs/deploys/61b3a131680b4266a2aab986

😎 Browse the preview: https://deploy-preview-1565--redux-starter-kit-docs.netlify.app

markerikson and others added 26 commits November 4, 2021 21:07
fetchBaseQuery: return `null` instead of `undefined` on empty body for JSON. 
Also add dev errors if `baseQuery`/`queryFn` returns a wrong shape (#1699)
Co-authored-by: Lenz Weber <mail@lenzw.de>
…1701)

* Add unwrap to QueryActionCreatorResult and update LazyQueryTrigger
* Add test for the return value of lazy query's trigger
* Fix types for lazy query :fingers_crossed:
* minor refactor, add test for positive case
* Use QueryResultSelectorResult instead of QuerySubState
* Update buildHooks test and type expectations for useLazyQuery unwrapping
* Update UseLazyQueryTrigger signature
* Remove extra unwrap and add queryString types
* remove import, fix test

Co-authored-by: Lenz Weber <mail@lenzw.de>
Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
* Override unwrap behavior for buildInitiateQuery, update tests
* Update TS test matrix to cover 4.4 and 4.5
* Fix type issue in tests
* Update packages/toolkit/src/query/tests/buildHooks.test.tsx
* Remove intermediate variable for aggregatePromise
* Update packages/toolkit/src/query/core/buildInitiate.ts

Co-authored-by: Lenz Weber <mail@lenzw.de>
Co-authored-by: Mark Erikson <mark@isquaredsoftware.com>
The `ReducerPath` type tries to extract the generic type for "the
path of the reducer" arg from `EndpointDefinitions`. However, it
looks like this was always off by one: getting the 4th arg instead
of the actual 5th arg.

This caused bad input to the generated selectors. That seems to
have worked okay with Reselect 4.0 and its looser types, but
caused problems when we updated to Reselect 4.1.x and its improved
types. The `RootState` type collapsed down to an empty object,
because there was no valid string to use as an object key.

This fixes the bug and adds a typetest to verify that the selector
types are carried through all the way.
@markerikson
Copy link
Collaborator

Let's do this!

@markerikson markerikson merged commit db0d7dc into master Dec 10, 2021
@markerikson markerikson deleted the v1.7.0-integration branch December 10, 2021 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

10 participants