Repository navigation
Validate archetype ids on fromData restore and add space option to serializeToJSON - #278
Merged
Merged
Conversation
…rializeToJSON; bump 0.10.35 Co-Authored-By: OpenCode <noreply@opencode.ai>
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.
Summary
fromDataarchetype-id validation (@adobe/data/ecs): Validate allocated occupied slots in serialized entity-location tables before mutating store state on restore, throwing an error naming the entity index and archetype id when a slot references an out-of-range archetype id (whetherarchetypesDatais populated or empty) while leaving the store unchanged.serializeToJSONspacing option (@adobe/data/functions): AddSerializeToJSONOptions({ space?: number | string }, defaulting to2) toserializeToJSONso callers can emit compact single-line JSON ({ space: 0 }/{ space: "" }) or custom indentation while round-tripping throughdeserializeFromJSON.0.10.35.Verification
remapSerializedArchetypeIdsandstore.fromData(id pastarchetypesData.length, id that would alias a live archetype, and emptyarchetypesData).serializeToJSONdefault pretty-printed output, compact output, custom indentation, anddeserializeFromJSONround-tripping.typecheck,lint,build,docs, and full@adobe/data+@adobe/data-persistencetest suites.