@aws-amplify/datastore 4.0.12-upgrade-uuid-9.20 → 4.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +14 -13
- package/lib/index.native.d.ts +0 -17
- package/lib/index.native.js +0 -26
- package/lib/index.native.js.map +0 -1
- package/lib-esm/index.native.d.ts +0 -17
- package/lib-esm/index.native.js +0 -14
- package/lib-esm/index.native.js.map +0 -1
- package/src/index.native.ts +0 -37
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@4.0.11...@aws-amplify/datastore@4.0.12) (2023-01-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-amplify/datastore
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.0.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@4.0.10...@aws-amplify/datastore@4.0.11) (2023-01-19)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/datastore",
|
|
3
|
-
"version": "4.0.12
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"description": "AppSyncLocal support for aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
7
7
|
"typings": "./lib-esm/index.d.ts",
|
|
8
|
+
"react-native": {
|
|
9
|
+
"./lib/index": "./lib-esm/index.js"
|
|
10
|
+
},
|
|
8
11
|
"publishConfig": {
|
|
9
12
|
"access": "public"
|
|
10
13
|
},
|
|
@@ -38,13 +41,11 @@
|
|
|
38
41
|
"homepage": "https://aws-amplify.github.io/",
|
|
39
42
|
"devDependencies": {
|
|
40
43
|
"@react-native-community/netinfo": "4.7.0",
|
|
41
|
-
"@types/uuid": "
|
|
44
|
+
"@types/uuid": "3.4.6",
|
|
42
45
|
"@types/uuid-validate": "^0.0.1",
|
|
43
46
|
"dexie": "3.2.2",
|
|
44
47
|
"dexie-export-import": "1.0.3",
|
|
45
|
-
"fake-indexeddb": "3.0.0"
|
|
46
|
-
"react-native-get-random-values": "1.8.0",
|
|
47
|
-
"uuid": "9.0.0"
|
|
48
|
+
"fake-indexeddb": "3.0.0"
|
|
48
49
|
},
|
|
49
50
|
"files": [
|
|
50
51
|
"lib",
|
|
@@ -53,15 +54,15 @@
|
|
|
53
54
|
"ssr"
|
|
54
55
|
],
|
|
55
56
|
"dependencies": {
|
|
56
|
-
"@aws-amplify/api": "5.0.12
|
|
57
|
-
"@aws-amplify/auth": "5.1.6
|
|
58
|
-
"@aws-amplify/core": "5.0.12
|
|
59
|
-
"@aws-amplify/pubsub": "5.0.12
|
|
60
|
-
"amazon-cognito-identity-js": "6.1.
|
|
57
|
+
"@aws-amplify/api": "5.0.12",
|
|
58
|
+
"@aws-amplify/auth": "5.1.6",
|
|
59
|
+
"@aws-amplify/core": "5.0.12",
|
|
60
|
+
"@aws-amplify/pubsub": "5.0.12",
|
|
61
|
+
"amazon-cognito-identity-js": "6.1.2",
|
|
61
62
|
"idb": "5.0.6",
|
|
62
63
|
"immer": "9.0.6",
|
|
63
64
|
"ulid": "2.3.0",
|
|
64
|
-
"uuid": "
|
|
65
|
+
"uuid": "3.4.0",
|
|
65
66
|
"zen-observable-ts": "0.8.19",
|
|
66
67
|
"zen-push": "0.2.1"
|
|
67
68
|
},
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"name": "DataStore (top-level class)",
|
|
71
72
|
"path": "./lib-esm/index.js",
|
|
72
73
|
"import": "{ Amplify, DataStore }",
|
|
73
|
-
"limit": "153
|
|
74
|
+
"limit": "153 kB"
|
|
74
75
|
}
|
|
75
76
|
],
|
|
76
77
|
"jest": {
|
|
@@ -127,5 +128,5 @@
|
|
|
127
128
|
"lib-esm"
|
|
128
129
|
]
|
|
129
130
|
},
|
|
130
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "4794e2d8e9fe102c7108b6d63071bd71af07f76b"
|
|
131
132
|
}
|
package/lib/index.native.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import 'react-native-get-random-values';
|
|
2
|
-
export { DataStore, DataStoreClass, initSchema, ModelInstanceCreator, AsyncCollection, AsyncItem, } from './datastore/datastore';
|
|
3
|
-
export { Predicates, ModelPredicateCreator, ModelSortPredicateCreator, } from './predicates';
|
|
4
|
-
export { Adapter as StorageAdapter } from './storage/adapter';
|
|
5
|
-
export { NAMESPACES } from './util';
|
|
6
|
-
export declare const utils: {
|
|
7
|
-
USER: import("./util").NAMESPACES;
|
|
8
|
-
traverseModel: <T extends Readonly<Record<string, any>>>(srcModelName: string, instance: T, namespace: import("./types").SchemaNamespace, modelInstanceCreator: <T_1 extends Readonly<Record<string, any>>>(modelConstructor: import("./types").PersistentModelConstructor<T_1>, init: Partial<T_1>) => T_1, getModelConstructorByModelName: (namsespaceName: import("./util").NAMESPACES, modelName: string) => import("./types").PersistentModelConstructor<any>) => {
|
|
9
|
-
modelName: string;
|
|
10
|
-
item: T;
|
|
11
|
-
instance: T;
|
|
12
|
-
}[];
|
|
13
|
-
validatePredicate: <T_2 extends Readonly<Record<string, any>>>(model: T_2, groupType: "and" | "or" | "not", predicatesOrGroups: (import("./types").PredicateObject<T_2> | import("./types").PredicatesGroup<T_2>)[]) => any;
|
|
14
|
-
isNonModelConstructor: (obj: any) => obj is import("./types").NonModelTypeConstructor<any>;
|
|
15
|
-
isModelConstructor: <T_3 extends Readonly<Record<string, any>>>(obj: any) => obj is import("./types").PersistentModelConstructor<T_3>;
|
|
16
|
-
};
|
|
17
|
-
export * from './types';
|
package/lib/index.native.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
require("react-native-get-random-values");
|
|
5
|
-
var datastore_1 = require("./datastore/datastore");
|
|
6
|
-
exports.DataStore = datastore_1.DataStore;
|
|
7
|
-
exports.DataStoreClass = datastore_1.DataStoreClass;
|
|
8
|
-
exports.initSchema = datastore_1.initSchema;
|
|
9
|
-
exports.AsyncCollection = datastore_1.AsyncCollection;
|
|
10
|
-
exports.AsyncItem = datastore_1.AsyncItem;
|
|
11
|
-
var predicates_1 = require("./predicates");
|
|
12
|
-
exports.Predicates = predicates_1.Predicates;
|
|
13
|
-
exports.ModelPredicateCreator = predicates_1.ModelPredicateCreator;
|
|
14
|
-
exports.ModelSortPredicateCreator = predicates_1.ModelSortPredicateCreator;
|
|
15
|
-
var util_1 = require("./util");
|
|
16
|
-
var util_2 = require("./util");
|
|
17
|
-
exports.NAMESPACES = util_2.NAMESPACES;
|
|
18
|
-
exports.utils = {
|
|
19
|
-
USER: util_1.USER,
|
|
20
|
-
traverseModel: util_1.traverseModel,
|
|
21
|
-
validatePredicate: util_1.validatePredicate,
|
|
22
|
-
isNonModelConstructor: util_1.isNonModelConstructor,
|
|
23
|
-
isModelConstructor: util_1.isModelConstructor,
|
|
24
|
-
};
|
|
25
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
26
|
-
//# sourceMappingURL=index.native.js.map
|
package/lib/index.native.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AAExC,mDAO+B;AAN9B,gCAAA,SAAS,CAAA;AACT,qCAAA,cAAc,CAAA;AACd,iCAAA,UAAU,CAAA;AAEV,sCAAA,eAAe,CAAA;AACf,gCAAA,SAAS,CAAA;AAGV,2CAIsB;AAHrB,kCAAA,UAAU,CAAA;AACV,6CAAA,qBAAqB,CAAA;AACrB,iDAAA,yBAAyB,CAAA;AAI1B,+BAMgB;AAEhB,+BAAoC;AAA3B,4BAAA,UAAU,CAAA;AAEN,QAAA,KAAK,GAAG;IACpB,IAAI,aAAA;IACJ,aAAa,sBAAA;IACb,iBAAiB,0BAAA;IACjB,qBAAqB,8BAAA;IACrB,kBAAkB,2BAAA;CAClB,CAAC;AAEF,kDAAwB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import 'react-native-get-random-values';
|
|
2
|
-
export { DataStore, DataStoreClass, initSchema, ModelInstanceCreator, AsyncCollection, AsyncItem, } from './datastore/datastore';
|
|
3
|
-
export { Predicates, ModelPredicateCreator, ModelSortPredicateCreator, } from './predicates';
|
|
4
|
-
export { Adapter as StorageAdapter } from './storage/adapter';
|
|
5
|
-
export { NAMESPACES } from './util';
|
|
6
|
-
export declare const utils: {
|
|
7
|
-
USER: import("./util").NAMESPACES;
|
|
8
|
-
traverseModel: <T extends Readonly<Record<string, any>>>(srcModelName: string, instance: T, namespace: import("./types").SchemaNamespace, modelInstanceCreator: <T_1 extends Readonly<Record<string, any>>>(modelConstructor: import("./types").PersistentModelConstructor<T_1>, init: Partial<T_1>) => T_1, getModelConstructorByModelName: (namsespaceName: import("./util").NAMESPACES, modelName: string) => import("./types").PersistentModelConstructor<any>) => {
|
|
9
|
-
modelName: string;
|
|
10
|
-
item: T;
|
|
11
|
-
instance: T;
|
|
12
|
-
}[];
|
|
13
|
-
validatePredicate: <T_2 extends Readonly<Record<string, any>>>(model: T_2, groupType: "and" | "or" | "not", predicatesOrGroups: (import("./types").PredicateObject<T_2> | import("./types").PredicatesGroup<T_2>)[]) => any;
|
|
14
|
-
isNonModelConstructor: (obj: any) => obj is import("./types").NonModelTypeConstructor<any>;
|
|
15
|
-
isModelConstructor: <T_3 extends Readonly<Record<string, any>>>(obj: any) => obj is import("./types").PersistentModelConstructor<T_3>;
|
|
16
|
-
};
|
|
17
|
-
export * from './types';
|
package/lib-esm/index.native.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import 'react-native-get-random-values';
|
|
2
|
-
export { DataStore, DataStoreClass, initSchema, AsyncCollection, AsyncItem, } from './datastore/datastore';
|
|
3
|
-
export { Predicates, ModelPredicateCreator, ModelSortPredicateCreator, } from './predicates';
|
|
4
|
-
import { traverseModel, validatePredicate, USER, isNonModelConstructor, isModelConstructor, } from './util';
|
|
5
|
-
export { NAMESPACES } from './util';
|
|
6
|
-
export var utils = {
|
|
7
|
-
USER: USER,
|
|
8
|
-
traverseModel: traverseModel,
|
|
9
|
-
validatePredicate: validatePredicate,
|
|
10
|
-
isNonModelConstructor: isNonModelConstructor,
|
|
11
|
-
isModelConstructor: isModelConstructor,
|
|
12
|
-
};
|
|
13
|
-
export * from './types';
|
|
14
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AAExC,OAAO,EACN,SAAS,EACT,cAAc,EACd,UAAU,EAEV,eAAe,EACf,SAAS,GACT,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACN,UAAU,EACV,qBAAqB,EACrB,yBAAyB,GACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACN,aAAa,EACb,iBAAiB,EACjB,IAAI,EACJ,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,MAAM,CAAC,IAAM,KAAK,GAAG;IACpB,IAAI,MAAA;IACJ,aAAa,eAAA;IACb,iBAAiB,mBAAA;IACjB,qBAAqB,uBAAA;IACrB,kBAAkB,oBAAA;CAClB,CAAC;AAEF,cAAc,SAAS,CAAC"}
|
package/src/index.native.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import 'react-native-get-random-values';
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
DataStore,
|
|
5
|
-
DataStoreClass,
|
|
6
|
-
initSchema,
|
|
7
|
-
ModelInstanceCreator,
|
|
8
|
-
AsyncCollection,
|
|
9
|
-
AsyncItem,
|
|
10
|
-
} from './datastore/datastore';
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
Predicates,
|
|
14
|
-
ModelPredicateCreator,
|
|
15
|
-
ModelSortPredicateCreator,
|
|
16
|
-
} from './predicates';
|
|
17
|
-
export { Adapter as StorageAdapter } from './storage/adapter';
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
traverseModel,
|
|
21
|
-
validatePredicate,
|
|
22
|
-
USER,
|
|
23
|
-
isNonModelConstructor,
|
|
24
|
-
isModelConstructor,
|
|
25
|
-
} from './util';
|
|
26
|
-
|
|
27
|
-
export { NAMESPACES } from './util';
|
|
28
|
-
|
|
29
|
-
export const utils = {
|
|
30
|
-
USER,
|
|
31
|
-
traverseModel,
|
|
32
|
-
validatePredicate,
|
|
33
|
-
isNonModelConstructor,
|
|
34
|
-
isModelConstructor,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export * from './types';
|