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

fix: pass correct args to keyFor<Attribute|Relationship> when normalizing #7854

Merged
merged 1 commit into from
Apr 15, 2022

Conversation

runspired
Copy link
Contributor

@runspired runspired commented Jan 27, 2022

hoping no tests fail 🤞🏻
will add new tests if this appears safe.

noticed that the embedded records mixin was failing when configured to deserialize records but serialize ids because the args weren't passed to keyForRelationship appropriately.

@runspired runspired added 🏷️ bug This PR primarily fixes a reported issue 🎯 canary PR is targeting canary (default) labels Jan 27, 2022
@github-actions
Copy link

Asset Size Report for 1105d88

Modern Builds

EmberData increased by -30.0 B (-3.0 B compressed) which is within the allowed tolerance of 75 bytes uncompressed

Warnings

⚠️ The uncompressed size of the package @ember-data/serializer has increased by +30.0 B.

Changeset


EmberData +185.82 KB +30.0 B (+39.5 KB -3.0 B compressed)
    @ember-data/serializer +19.77 KB +30.0 B (+4.2 KB -3.0 B compressed)
        @ember-data/serializer/json +7.24 KB +30.0 B (+1.54 KB -3.0 B compressed)

Full Asset Analysis (Modern)

Asset Size Report
=================


Library: EmberData
┌────────────┬─────────────┐
│  (index)   │   Values    │
├────────────┼─────────────┤
│   bytes    │ '185.82 KB' │
│ compressed │ '39.50 KB'  │
│  packages  │      8      │
│  modules   │     44      │
└────────────┴─────────────┘

Package: @ember-data/store
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '78.11 KB' │
│  compressed  │ '16.60 KB' │
│ % Of Library │   '42.0'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/store/-private                        | 77.20 KB  | 16.41 KB   | 98.8          | 41.5
	@ember-data/store/index                           | 936.00 B  | 198.97 B   | 1.2           | 0.5

Package: @ember-data/model
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '29.11 KB' │
│  compressed  │ '6.19 KB'  │
│ % Of Library │   '15.7'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/model/-private                        | 28.64 KB  | 6.09 KB    | 98.4          | 15.4
	@ember-data/model/index                           | 486.00 B  | 103.31 B   | 1.6           | 0.3

Package: @ember-data/record-data
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '24.07 KB' │
│  compressed  │ '5.12 KB'  │
│ % Of Library │   '13.0'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/record-data/-private                  | 24.07 KB  | 5.12 KB    | 100.0         | 13.0

Package: @ember-data/serializer
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '19.77 KB' │
│  compressed  │ '4.20 KB'  │
│ % Of Library │   '10.6'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/serializer/json                       | 7.24 KB   | 1.54 KB    | 36.6          | 3.9
	@ember-data/serializer/-private                   | 5.52 KB   | 1.17 KB    | 27.9          | 3.0
	@ember-data/serializer/json-api                   | 3.75 KB   | 815.88 B   | 19.0          | 2.0
	@ember-data/serializer/rest                       | 2.80 KB   | 608.61 B   | 14.1          | 1.5
	@ember-data/serializer/index                      | 258.00 B  | 54.84 B    | 1.3           | 0.1
	@ember-data/serializer/transform                  | 215.00 B  | 45.70 B    | 1.1           | 0.1

Package: @ember-data/adapter
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '15.86 KB' │
│  compressed  │ '3.37 KB'  │
│ % Of Library │   '8.5'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/adapter/rest                          | 7.99 KB   | 1.70 KB    | 50.4          | 4.3
	@ember-data/adapter/-private                      | 3.81 KB   | 829.06 B   | 24.0          | 2.0
	@ember-data/adapter/error                         | 1.99 KB   | 433.45 B   | 12.6          | 1.1
	@ember-data/adapter/index                         | 1.04 KB   | 225.54 B   | 6.5           | 0.6
	@ember-data/adapter/json-api                      | 1.03 KB   | 225.12 B   | 6.5           | 0.6

Package: ember-data
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '9.35 KB' │
│  compressed  │ '1.99 KB' │
│ % Of Library │   '5.0'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-data/index                                  | 2.42 KB   | 526.34 B   | 25.9          | 1.3
	ember-data/-private                               | 2.13 KB   | 462.99 B   | 22.8          | 1.1
	ember-data/adapters/errors                        | 1.19 KB   | 258.70 B   | 12.7          | 0.6
	ember-data/setup-container                        | 368.00 B  | 78.22 B    | 3.8           | 0.2
	ember-data/relationships                          | 318.00 B  | 67.60 B    | 3.3           | 0.2
	ember-data/serializers/embedded-records-mixin     | 274.00 B  | 58.24 B    | 2.9           | 0.1
	ember-data/serializers/json-api                   | 251.00 B  | 53.35 B    | 2.6           | 0.1
	ember-data/adapters/json-api                      | 245.00 B  | 52.08 B    | 2.6           | 0.1
	ember-data/serializers/json                       | 243.00 B  | 51.65 B    | 2.5           | 0.1
	ember-data/serializers/rest                       | 243.00 B  | 51.65 B    | 2.5           | 0.1
	ember-data/transform                              | 241.00 B  | 51.23 B    | 2.5           | 0.1
	ember-data/adapters/rest                          | 237.00 B  | 50.38 B    | 2.5           | 0.1
	ember-data/serializer                             | 232.00 B  | 49.31 B    | 2.4           | 0.1
	ember-data/adapter                                | 226.00 B  | 48.04 B    | 2.4           | 0.1
	ember-data/model                                  | 222.00 B  | 47.19 B    | 2.3           | 0.1
	ember-data/store                                  | 222.00 B  | 47.19 B    | 2.3           | 0.1
	ember-data/attr                                   | 218.00 B  | 46.34 B    | 2.3           | 0.1
	ember-data/version                                | 161.00 B  | 34.22 B    | 1.7           | 0.1

Package: ember-inflector
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '6.74 KB' │
│  compressed  │ '1.43 KB' │
│ % Of Library │   '3.6'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-inflector/lib/system/inflector              | 3.01 KB   | 655.16 B   | 44.7          | 1.6
	ember-inflector/lib/system/inflections            | 1.59 KB   | 345.86 B   | 23.6          | 0.9
	ember-inflector/lib/system                        | 471.00 B  | 100.12 B   | 6.8           | 0.2
	ember-inflector/index                             | 379.00 B  | 80.56 B    | 5.5           | 0.2
	ember-inflector/lib/helpers/pluralize             | 373.00 B  | 79.29 B    | 5.4           | 0.2
	ember-inflector/lib/utils/make-helper             | 352.00 B  | 74.82 B    | 5.1           | 0.2
	ember-inflector/lib/system/string                 | 318.00 B  | 67.60 B    | 4.6           | 0.2
	ember-inflector/lib/helpers/singularize           | 296.00 B  | 62.92 B    | 4.3           | 0.2

Package: @ember-data/debug
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '2.82 KB'  │
│  compressed  │ '613.08 B' │
│ % Of Library │   '1.5'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/debug/index                           | 2.32 KB   | 505.72 B   | 82.5          | 1.3
	@ember-data/debug/setup                           | 505.00 B  | 107.35 B   | 17.5          | 0.3

Modern Builds (No Rollup)

EmberData increased by -30.0 B (-39.0 B compressed) which is within the allowed tolerance of 75 bytes uncompressed

Warnings

⚠️ The uncompressed size of the package @ember-data/serializer has increased by +30.0 B.

Changeset


EmberData +225.13 KB +30.0 B (+42.7 KB -39.0 B compressed)
    @ember-data/serializer +22.19 KB +30.0 B (+4.21 KB -39.0 B compressed)
        @ember-data/serializer/json +7.24 KB +30.0 B (+1.37 KB -39.0 B compressed)

Full Asset Analysis (Modern)

Asset Size Report
=================


Library: EmberData
┌────────────┬─────────────┐
│  (index)   │   Values    │
├────────────┼─────────────┤
│   bytes    │ '225.13 KB' │
│ compressed │ '42.70 KB'  │
│  packages  │      8      │
│  modules   │     148     │
└────────────┴─────────────┘

Package: @ember-data/store
┌──────────────┬─────────────┐
│   (index)    │   Values    │
├──────────────┼─────────────┤
│    bytes     │ '101.56 KB' │
│  compressed  │ '19.26 KB'  │
│ % Of Library │   '45.1'    │
└──────────────┴─────────────┘
	Module                                                                             | Bytes     | Compressed | % of Package  | % Of Library
	--------------------------------------------------------------------------------------------------------------------------------------
	@ember-data/store/-private/system/core-store                                       | 17.26 KB  | 3.27 KB    | 17.0          | 7.7
	@ember-data/store/-private/system/model/internal-model                             | 14.72 KB  | 2.79 KB    | 14.5          | 6.5
	@ember-data/store/-private/system/model/states                                     | 5.49 KB   | 1.04 KB    | 5.4           | 2.4
	@ember-data/store/-private/system/fetch-manager                                    | 5.21 KB   | 1011.96 B  | 5.1           | 2.3
	@ember-data/store/-private/system/record-array-manager                             | 4.34 KB   | 842.80 B   | 4.3           | 1.9
	@ember-data/store/-private/system/store/finders                                    | 4.00 KB   | 776.99 B   | 3.9           | 1.8
	@ember-data/store/-private/identifiers/cache                                       | 3.95 KB   | 766.56 B   | 3.9           | 1.8
	@ember-data/store/-private/system/store/record-data-store-wrapper                  | 3.46 KB   | 671.54 B   | 3.4           | 1.5
	@ember-data/store/-private/index                                                   | 3.36 KB   | 652.58 B   | 3.3           | 1.5
	@ember-data/store/-private/system/references/has-many                              | 3.23 KB   | 627.73 B   | 3.2           | 1.4
	@ember-data/store/-private/system/snapshot                                         | 3.09 KB   | 599.67 B   | 3.0           | 1.4
	@ember-data/store/-private/system/references/belongs-to                            | 2.89 KB   | 561.36 B   | 2.8           | 1.3
	@ember-data/store/-private/system/store/internal-model-factory                     | 2.88 KB   | 560.22 B   | 2.8           | 1.3
	@ember-data/store/-private/system/record-arrays/record-array                       | 2.29 KB   | 444.34 B   | 2.3           | 1.0
	@ember-data/store/-private/system/references/record                                | 2.02 KB   | 392.38 B   | 2.0           | 0.9
	@ember-data/store/-private/system/ds-model-store                                   | 1.92 KB   | 373.79 B   | 1.9           | 0.9
	@ember-data/store/-private/system/request-cache                                    | 1.79 KB   | 347.05 B   | 1.8           | 0.8
	@ember-data/store/-private/system/schema-definition-service                        | 1.52 KB   | 294.52 B   | 1.5           | 0.7
	@ember-data/store/-private/system/model/shim-model-class                           | 1.32 KB   | 256.21 B   | 1.3           | 0.6
	@ember-data/store/-private/system/store/serializer-response                        | 1.14 KB   | 221.51 B   | 1.1           | 0.5
	@ember-data/store/-private/identifiers/utils/uuid-v4                               | 999.00 B  | 189.45 B   | 1.0           | 0.4
	@ember-data/store/index                                                            | 936.00 B  | 177.51 B   | 0.9           | 0.4
	@ember-data/store/-private/system/record-arrays/adapter-populated-record-array     | 931.00 B  | 176.56 B   | 0.9           | 0.4
	@ember-data/store/-private/system/references/reference                             | 916.00 B  | 173.71 B   | 0.9           | 0.4
	@ember-data/store/-private/system/internal-model-map                               | 886.00 B  | 168.02 B   | 0.9           | 0.4
	@ember-data/store/-private/system/errors-utils                                     | 802.00 B  | 152.09 B   | 0.8           | 0.3
	@ember-data/store/-private/system/record-notification-manager                      | 800.00 B  | 151.71 B   | 0.8           | 0.3
	@ember-data/store/-private/system/snapshot-record-array                            | 769.00 B  | 145.84 B   | 0.7           | 0.3
	@ember-data/store/-private/utils/construct-resource                                | 699.00 B  | 132.56 B   | 0.7           | 0.3
	@ember-data/store/-private/system/promise-proxies                                  | 609.00 B  | 115.49 B   | 0.6           | 0.3
	@ember-data/store/-private/system/store/common                                     | 604.00 B  | 114.54 B   | 0.6           | 0.3
	@ember-data/store/-private/system/references                                       | 598.00 B  | 113.41 B   | 0.6           | 0.3
	@ember-data/store/-private/system/coerce-id                                        | 494.00 B  | 93.68 B    | 0.5           | 0.2
	@ember-data/store/-private/system/record-arrays                                    | 487.00 B  | 92.35 B    | 0.5           | 0.2
	@ember-data/store/-private/system/identity-map                                     | 454.00 B  | 86.10 B    | 0.4           | 0.2
	@ember-data/store/-private/system/record-data-for                                  | 392.00 B  | 74.34 B    | 0.4           | 0.2
	@ember-data/store/-private/ts-interfaces/identifier                                | 348.00 B  | 65.99 B    | 0.3           | 0.2
	@ember-data/store/-private/identifiers/is-stable-identifier                        | 329.00 B  | 62.39 B    | 0.3           | 0.1
	@ember-data/store/-private/ts-interfaces/fetch-manager                             | 316.00 B  | 59.92 B    | 0.3           | 0.1
	@ember-data/store/-private/utils/promise-record                                    | 290.00 B  | 54.99 B    | 0.3           | 0.1
	@ember-data/store/-private/system/backburner                                       | 271.00 B  | 51.39 B    | 0.3           | 0.1
	@ember-data/store/-private/system/deprecated-evented                               | 257.00 B  | 48.73 B    | 0.2           | 0.1
	@ember-data/store/-private/system/normalize-model-name                             | 220.00 B  | 41.72 B    | 0.2           | 0.1
	@ember-data/store/-private/utils/is-non-empty-string                               | 212.00 B  | 40.20 B    | 0.2           | 0.1
	@ember-data/store/-debug/index                                                     | 210.00 B  | 39.82 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/minimum-serializer-interface              | 169.00 B  | 32.05 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-record-wrapper                | 167.00 B  | 31.67 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/minimum-adapter-interface                 | 166.00 B  | 31.48 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-store-wrapper                 | 166.00 B  | 31.48 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/schema-definition-service                 | 166.00 B  | 31.48 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-json-api                      | 161.00 B  | 30.53 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/ember-data-json-api                       | 160.00 B  | 30.34 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-schemas                       | 160.00 B  | 30.34 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/promise-proxies                           | 156.00 B  | 29.58 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-instance                           | 156.00 B  | 29.58 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data                               | 152.00 B  | 28.82 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/ds-model                                  | 149.00 B  | 28.25 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/store                                     | 146.00 B  | 27.68 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/utils                                     | 146.00 B  | 27.68 B    | 0.1           | 0.1

Package: @ember-data/model
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '33.20 KB' │
│  compressed  │ '6.30 KB'  │
│ % Of Library │   '14.7'   │
└──────────────┴────────────┘
	Module                                                                | Bytes     | Compressed | % of Package  | % Of Library
	-------------------------------------------------------------------------------------------------------------------------
	@ember-data/model/-private/model                                      | 10.08 KB  | 1.91 KB    | 30.4          | 4.5
	@ember-data/model/-private/record-state                               | 6.23 KB   | 1.18 KB    | 18.8          | 2.8
	@ember-data/model/-private/system/promise-many-array                  | 3.95 KB   | 766.56 B   | 11.9          | 1.8
	@ember-data/model/-private/system/many-array                          | 2.86 KB   | 554.91 B   | 8.6           | 1.3
	@ember-data/model/-private/errors                                     | 2.10 KB   | 407.74 B   | 6.3           | 0.9
	@ember-data/model/-private/index                                      | 1.42 KB   | 276.12 B   | 4.3           | 0.6
	@ember-data/model/-private/system/relationships/relationship-meta     | 1.31 KB   | 253.56 B   | 3.9           | 0.6
	@ember-data/model/-private/attr                                       | 874.00 B  | 165.75 B   | 2.6           | 0.4
	@ember-data/model/-private/notify-changes                             | 845.00 B  | 160.25 B   | 2.5           | 0.4
	@ember-data/model/-private/belongs-to                                 | 688.00 B  | 130.47 B   | 2.0           | 0.3
	@ember-data/model/-private/has-many                                   | 648.00 B  | 122.89 B   | 1.9           | 0.3
	@ember-data/model/-private/util                                       | 526.00 B  | 99.75 B    | 1.5           | 0.2
	@ember-data/model/index                                               | 486.00 B  | 92.16 B    | 1.4           | 0.2
	@ember-data/model/-private/system/diff-array                          | 452.00 B  | 85.72 B    | 1.3           | 0.2
	@ember-data/model/-private/system/promise-belongs-to                  | 447.00 B  | 84.77 B    | 1.3           | 0.2
	@ember-data/model/-private/system/model-for-mixin                     | 427.00 B  | 80.98 B    | 1.3           | 0.2

Package: @ember-data/record-data
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '31.14 KB' │
│  compressed  │ '5.91 KB'  │
│ % Of Library │   '13.8'   │
└──────────────┴────────────┘
	Module                                                                            | Bytes     | Compressed | % of Package  | % Of Library
	-------------------------------------------------------------------------------------------------------------------------------------
	@ember-data/record-data/-private/record-data                                      | 8.29 KB   | 1.57 KB    | 26.6          | 3.7
	@ember-data/record-data/-private/graph/index                                      | 4.93 KB   | 957.53 B   | 15.8          | 2.2
	@ember-data/record-data/-private/graph/operations/replace-related-records         | 3.15 KB   | 611.42 B   | 10.1          | 1.4
	@ember-data/record-data/-private/graph/-edge-definition                           | 2.87 KB   | 557.56 B   | 9.2           | 1.3
	@ember-data/record-data/-private/relationships/state/has-many                     | 2.04 KB   | 395.41 B   | 6.5           | 0.9
	@ember-data/record-data/-private/relationships/state/belongs-to                   | 1.94 KB   | 376.26 B   | 6.2           | 0.9
	@ember-data/record-data/-private/graph/operations/update-relationship             | 1.51 KB   | 293.38 B   | 4.9           | 0.7
	@ember-data/record-data/-private/graph/operations/replace-related-record          | 1.06 KB   | 205.76 B   | 3.4           | 0.5
	@ember-data/record-data/-private/graph/-utils                                     | 1.06 KB   | 205.01 B   | 3.4           | 0.5
	@ember-data/record-data/-private/index                                            | 977.00 B  | 185.28 B   | 3.1           | 0.4
	@ember-data/record-data/-private/graph/operations/add-to-related-records          | 798.00 B  | 151.33 B   | 2.5           | 0.3
	@ember-data/record-data/-private/relationships/state/implicit                     | 692.00 B  | 131.23 B   | 2.2           | 0.3
	@ember-data/record-data/-private/graph/operations/remove-from-related-records     | 677.00 B  | 128.39 B   | 2.1           | 0.3
	@ember-data/record-data/-private/coerce-id                                        | 406.00 B  | 76.99 B    | 1.3           | 0.2
	@ember-data/record-data/-private/graph/-state                                     | 293.00 B  | 55.56 B    | 0.9           | 0.1
	@ember-data/record-data/-private/normalize-link                                   | 238.00 B  | 45.13 B    | 0.7           | 0.1
	@ember-data/record-data/-private/ts-interfaces/relationship-record-data           | 171.00 B  | 32.42 B    | 0.5           | 0.1
	@ember-data/record-data/-private/graph/-operations                                | 150.00 B  | 28.44 B    | 0.5           | 0.1

Package: @ember-data/serializer
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '22.19 KB' │
│  compressed  │ '4.21 KB'  │
│ % Of Library │   '9.9'    │
└──────────────┴────────────┘
	Module                                                     | Bytes     | Compressed | % of Package  | % Of Library
	--------------------------------------------------------------------------------------------------------------
	@ember-data/serializer/json                                | 7.24 KB   | 1.37 KB    | 32.6          | 3.2
	@ember-data/serializer/-private/embedded-records-mixin     | 4.41 KB   | 856.64 B   | 19.9          | 2.0
	@ember-data/serializer/json-api                            | 3.75 KB   | 727.87 B   | 16.9          | 1.7
	@ember-data/serializer/rest                                | 2.80 KB   | 542.96 B   | 12.6          | 1.2
	@ember-data/serializer/-private/index                      | 1.18 KB   | 229.47 B   | 5.3           | 0.5
	@ember-data/serializer/-private/transforms/date            | 530.00 B  | 100.51 B   | 2.3           | 0.2
	@ember-data/serializer/-private/transforms/boolean         | 511.00 B  | 96.91 B    | 2.2           | 0.2
	@ember-data/serializer/-private/transforms/number          | 453.00 B  | 85.91 B    | 2.0           | 0.2
	@ember-data/serializer/-private/transforms/string          | 381.00 B  | 72.25 B    | 1.7           | 0.2
	@ember-data/serializer/-private/utils                      | 303.00 B  | 57.46 B    | 1.3           | 0.1
	@ember-data/serializer/index                               | 258.00 B  | 48.92 B    | 1.1           | 0.1
	@ember-data/serializer/-private/transforms/transform       | 226.00 B  | 42.86 B    | 1.0           | 0.1
	@ember-data/serializer/transform                           | 215.00 B  | 40.77 B    | 0.9           | 0.1

Package: @ember-data/adapter
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '17.98 KB' │
│  compressed  │ '3.41 KB'  │
│ % Of Library │   '8.0'    │
└──────────────┴────────────┘
	Module                                                        | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------------------
	@ember-data/adapter/rest                                      | 7.99 KB   | 1.51 KB    | 44.4          | 3.5
	@ember-data/adapter/error                                     | 1.99 KB   | 386.69 B   | 11.1          | 0.9
	@ember-data/adapter/-private/build-url-mixin                  | 1.93 KB   | 375.50 B   | 10.8          | 0.9
	@ember-data/adapter/index                                     | 1.04 KB   | 201.21 B   | 5.8           | 0.5
	@ember-data/adapter/json-api                                  | 1.03 KB   | 200.83 B   | 5.8           | 0.5
	@ember-data/adapter/-private/index                            | 1.03 KB   | 200.26 B   | 5.7           | 0.5
	@ember-data/adapter/-private/utils/serialize-query-params     | 790.00 B  | 149.82 B   | 4.3           | 0.3
	@ember-data/adapter/-private/utils/determine-body-promise     | 568.00 B  | 107.72 B   | 3.1           | 0.2
	@ember-data/adapter/-private/utils/parse-response-headers     | 494.00 B  | 93.68 B    | 2.7           | 0.2
	@ember-data/adapter/-private/utils/fetch                      | 454.00 B  | 86.10 B    | 2.5           | 0.2
	@ember-data/adapter/-private/utils/serialize-into-hash        | 367.00 B  | 69.60 B    | 2.0           | 0.2
	@ember-data/adapter/-private/utils/continue-on-reject         | 222.00 B  | 42.10 B    | 1.2           | 0.1
	@ember-data/adapter/-private/fastboot-interface               | 147.00 B  | 27.87 B    | 0.8           | 0.1

Package: ember-data
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '9.51 KB' │
│  compressed  │ '1.80 KB' │
│ % Of Library │   '4.2'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-data/index                                  | 2.42 KB   | 469.57 B   | 25.4          | 1.1
	ember-data/-private/index                         | 1.93 KB   | 374.36 B   | 20.3          | 0.9
	ember-data/adapters/errors                        | 1.19 KB   | 230.80 B   | 12.5          | 0.5
	ember-data/-private/core                          | 368.00 B  | 69.79 B    | 3.8           | 0.2
	ember-data/setup-container                        | 368.00 B  | 69.79 B    | 3.8           | 0.2
	ember-data/relationships                          | 318.00 B  | 60.30 B    | 3.3           | 0.1
	ember-data/serializers/embedded-records-mixin     | 274.00 B  | 51.96 B    | 2.8           | 0.1
	ember-data/serializers/json-api                   | 251.00 B  | 47.60 B    | 2.6           | 0.1
	ember-data/adapters/json-api                      | 245.00 B  | 46.46 B    | 2.5           | 0.1
	ember-data/serializers/json                       | 243.00 B  | 46.08 B    | 2.5           | 0.1
	ember-data/serializers/rest                       | 243.00 B  | 46.08 B    | 2.5           | 0.1
	ember-data/transform                              | 241.00 B  | 45.70 B    | 2.5           | 0.1
	ember-data/adapters/rest                          | 237.00 B  | 44.94 B    | 2.4           | 0.1
	ember-data/serializer                             | 232.00 B  | 43.99 B    | 2.4           | 0.1
	ember-data/adapter                                | 226.00 B  | 42.86 B    | 2.3           | 0.1
	ember-data/model                                  | 222.00 B  | 42.10 B    | 2.3           | 0.1
	ember-data/store                                  | 222.00 B  | 42.10 B    | 2.3           | 0.1
	ember-data/attr                                   | 218.00 B  | 41.34 B    | 2.2           | 0.1
	ember-data/version                                | 161.00 B  | 30.53 B    | 1.7           | 0.1

Package: ember-inflector
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '6.74 KB' │
│  compressed  │ '1.28 KB' │
│ % Of Library │   '3.0'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-inflector/lib/system/inflector              | 3.01 KB   | 584.49 B   | 44.7          | 1.3
	ember-inflector/lib/system/inflections            | 1.59 KB   | 308.55 B   | 23.6          | 0.7
	ember-inflector/lib/system                        | 471.00 B  | 89.32 B    | 6.8           | 0.2
	ember-inflector/index                             | 379.00 B  | 71.87 B    | 5.5           | 0.2
	ember-inflector/lib/helpers/pluralize             | 373.00 B  | 70.73 B    | 5.4           | 0.2
	ember-inflector/lib/utils/make-helper             | 352.00 B  | 66.75 B    | 5.1           | 0.2
	ember-inflector/lib/system/string                 | 318.00 B  | 60.30 B    | 4.6           | 0.1
	ember-inflector/lib/helpers/singularize           | 296.00 B  | 56.13 B    | 4.3           | 0.1

Package: @ember-data/debug
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '2.82 KB'  │
│  compressed  │ '546.94 B' │
│ % Of Library │   '1.3'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/debug/index                           | 2.32 KB   | 451.16 B   | 82.5          | 1.0
	@ember-data/debug/setup                           | 505.00 B  | 95.77 B    | 17.5          | 0.2

@runspired runspired merged commit 696c253 into master Apr 15, 2022
@delete-merged-branch delete-merged-branch bot deleted the runspired/fix-embedded-records-normalization branch April 15, 2022 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 canary PR is targeting canary (default) 🏷️ bug This PR primarily fixes a reported issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants