@data-client/normalizr
Advanced tools
Comparing version 0.14.6 to 0.14.10
{ | ||
"name": "@data-client/normalizr", | ||
"version": "0.14.6", | ||
"version": "0.14.10", | ||
"description": "Normalizes and denormalizes JSON according to schema for Redux and Flux applications", | ||
@@ -123,5 +123,5 @@ "homepage": "https://dataclient.io/docs/concepts/normalization", | ||
"@anansi/browserslist-config": "^1.4.2", | ||
"@types/node": "^20.0.0", | ||
"@types/node": "^22.0.0", | ||
"immutable": "4.2.2" | ||
} | ||
} |
@@ -93,14 +93,6 @@ # Normalizr Client | ||
// Define a users schema | ||
class User extends Entity { | ||
pk() { | ||
return this.id; | ||
} | ||
} | ||
class User extends Entity {} | ||
// Define your comments schema | ||
class Comment extends Entity { | ||
pk() { | ||
return this.id; | ||
} | ||
static schema = { | ||
@@ -114,6 +106,2 @@ commenter: User, | ||
class Article extends Entity { | ||
pk() { | ||
return this.id; | ||
} | ||
static schema = { | ||
@@ -120,0 +108,0 @@ author: User, |
@@ -637,3 +637,3 @@ // eslint-env jest | ||
).toEqual({ | ||
data: { article: '5' }, | ||
data: { article: 5 }, | ||
}); | ||
@@ -789,3 +789,3 @@ }); | ||
pagination: { next: '', previous: '' }, | ||
data: '5', | ||
data: 5, | ||
}); | ||
@@ -792,0 +792,0 @@ }); |
688141
247