@common-stack/mobile-stack-react 8.4.1-alpha.0 → 8.6.1-alpha.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import'reflect-metadata';import {ClientTypes}from'@common-stack/client-core';import {
|
|
1
|
+
import'reflect-metadata';import {ScopedContainer,ClientTypes,attachDeprecatedLogger}from'@common-stack/client-core';import {merge}from'lodash-es';import features from'../modules.js';import {logger,UtilityClass}from'../utils/index.js';import {createApolloClient}from'./base-apollo-client.js';import {config}from'./mobile-env-config.js';const utility = new UtilityClass(features);
|
|
2
2
|
ScopedContainer.registerGlobalDependencies((container) => {
|
|
3
3
|
container.bind(ClientTypes.Logger).toConstantValue(logger);
|
|
4
4
|
container.bind(ClientTypes.UtilityClass).toConstantValue(utility);
|
|
@@ -55,8 +55,11 @@ const createClientContainer = (req, res) => {
|
|
|
55
55
|
container,
|
|
56
56
|
apolloClient,
|
|
57
57
|
serviceFunc,
|
|
58
|
-
logger
|
|
58
|
+
// logger is attached as a non-enumerable deprecated getter — see below
|
|
59
59
|
};
|
|
60
|
+
// Backward compat: old code using clientService.logger still works but
|
|
61
|
+
// prints a deprecation warning. Non-enumerable so it won't serialize/hydrate.
|
|
62
|
+
attachDeprecatedLogger(clientService, container);
|
|
60
63
|
if (module.hot) {
|
|
61
64
|
module.hot.dispose(() => {
|
|
62
65
|
// Force Apollo to fetch the latest data from the server
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/mobile-stack-react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.1-alpha.0",
|
|
4
4
|
"description": "Client Module for mobile app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@apollo/client": "^3.9.0",
|
|
50
50
|
"@cdm-logger/client": "^9.0.8",
|
|
51
|
-
"@common-stack/client-core": "8.
|
|
52
|
-
"@common-stack/client-react": "8.
|
|
53
|
-
"@common-stack/components-pro": "8.
|
|
54
|
-
"@common-stack/core": "8.
|
|
51
|
+
"@common-stack/client-core": "8.5.1-alpha.4",
|
|
52
|
+
"@common-stack/client-react": "8.5.1-alpha.4",
|
|
53
|
+
"@common-stack/components-pro": "8.5.1-alpha.4",
|
|
54
|
+
"@common-stack/core": "8.4.1-alpha.0",
|
|
55
55
|
"@expo/vector-icons": "^14.1.0",
|
|
56
56
|
"@react-native-async-storage/async-storage": "2.1.2",
|
|
57
57
|
"@react-native-community/datetimepicker": "8.4.1",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"typescript": {
|
|
144
144
|
"definition": "lib/index.d.ts"
|
|
145
145
|
},
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "1e6e8a053e94e4f5c54d7364d73395127f8b843a"
|
|
147
147
|
}
|