Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3873 +/- ##
=======================================
Coverage 98.11% 98.11%
=======================================
Files 153 153
Lines 2916 2916
Branches 566 566
=======================================
Hits 2861 2861
Misses 11 11
Partials 44 44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b575946 to
72f3c03
Compare
72f3c03 to
79a6afc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@data-client/normalizr@0.16.6
Patch Changes
#3875
467a5f6- Fix deepClone to only copy own propertiesdeepClonein the immutable store path now usesObject.keys()instead offor...in, preventing inherited properties from being copied into cloned state.#3877
e9e96f1- Replace megamorphic computed dispatch in getDependency with switchgetDependencyuseddelegate[array[index]](...spread)which creates a temporary array, a computed property lookup, and a spread call on every invocation — a megamorphic pattern that prevents V8 from inlining or type-specializing the call site. Replaced with aswitchonpath.lengthfor monomorphic dispatch.#3876
7d28629- Improve denormalization performance by pre-allocating the dependency tracking slotReplace
Array.prototype.unshift()inGlobalCache.getResults()with a pre-allocated slot at index 0, avoiding O(n) element shifting on every cache-miss denormalization.#3884
7df6a49- Move entity table POJO clone from getNewEntities to setEntityLazy-clone entity and meta tables on first write per entity type instead of eagerly in getNewEntities. This keeps getNewEntities as a pure Map operation, eliminating its V8 Maglev bailout ("Insufficient type feedback for generic named access" on
this.entities).#3878
98a7831- Avoid hidden class mutation in normalize() return objectThe normalize result object was constructed with
result: '' as anythen mutated viaret.result = visit(...), causing a V8 hidden class transition when the property type changed from string to the actual result type. Restructured to compute the result first and construct the final object in a single step.@data-client/rest@0.16.6
Patch Changes
#3868
8a7c8d9- Addcontentproperty to RestEndpoint for typed response parsingSet
contentto control how the response body is parsed, with automatic return type inference:Accepted values:
'json','blob','text','arrayBuffer','stream'.Non-JSON content types (
'blob','text','arrayBuffer','stream') constrainschematoundefinedat the type level, with a runtime check that throws if a normalizable schema is set.When
contentis not set, auto-detection now handles binary Content-Types (image/*,application/octet-stream,application/pdf, etc.) by returningresponse.blob()instead ofcorrupting data via
.text().Updated dependencies []:
example-benchmark@0.4.83
Patch Changes
467a5f6,e9e96f1,7d28629,7df6a49,98a7831]:example-benchmark-react@0.1.7
Patch Changes
8a7c8d9]:coinbase-lite@0.0.22
Patch Changes
8a7c8d9]:normalizr-github-example@0.1.58
Patch Changes
467a5f6,e9e96f1,7d28629,7df6a49,98a7831]:normalizr-redux-example@0.1.56
Patch Changes
467a5f6,e9e96f1,7d28629,7df6a49,98a7831]:normalizr-relationships@0.1.58
Patch Changes
467a5f6,e9e96f1,7d28629,7df6a49,98a7831]:test-bundlesize@0.1.14
Patch Changes
8a7c8d9]: