@warp-drive-mirror/build-config 5.6.0-beta.0 → 5.6.0-beta.1
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/declarations/-private/utils/deprecations.d.ts +5 -0
- package/declarations/-private/utils/features.d.ts +4 -0
- package/declarations/-private/utils/get-env.d.ts +8 -0
- package/declarations/-private/utils/logging.d.ts +9 -0
- package/declarations/babel-macros.d.ts +13 -0
- package/declarations/canary-features.d.ts +136 -0
- package/declarations/debugging.d.ts +172 -0
- package/declarations/deprecation-versions.d.ts +30 -0
- package/declarations/deprecations.d.ts +516 -0
- package/declarations/env.d.ts +129 -0
- package/declarations/index.d.ts +101 -0
- package/declarations/macros.d.ts +18 -0
- package/dist/addon-shim.cjs +0 -1
- package/dist/babel-macros.js +45 -13
- package/dist/babel-plugin-transform-asserts.cjs +5 -7
- package/dist/babel-plugin-transform-deprecations.cjs +2 -3
- package/dist/babel-plugin-transform-features.cjs +2 -3
- package/dist/babel-plugin-transform-logging.cjs +2 -3
- package/dist/canary-features-CuKgaVtX.js +146 -0
- package/dist/canary-features.js +1 -2
- package/dist/cjs-set-config.cjs +160 -609
- package/dist/{debugging-BtpYr1v0.js → debugging-VdsvkNjX.js} +79 -62
- package/dist/debugging.js +1 -2
- package/dist/deprecations-BNNGFAiG.js +548 -0
- package/dist/deprecations.js +1 -2
- package/dist/env.js +124 -1
- package/dist/index.js +20 -521
- package/dist/macros.js +18 -1
- package/package.json +7 -19
- package/dist/addon-shim.cjs.map +0 -1
- package/dist/babel-macros.js.map +0 -1
- package/dist/babel-plugin-transform-asserts.cjs.map +0 -1
- package/dist/babel-plugin-transform-deprecations.cjs.map +0 -1
- package/dist/babel-plugin-transform-features.cjs.map +0 -1
- package/dist/babel-plugin-transform-logging.cjs.map +0 -1
- package/dist/canary-features-D1wplYmb.js +0 -113
- package/dist/canary-features-D1wplYmb.js.map +0 -1
- package/dist/canary-features.js.map +0 -1
- package/dist/cjs-set-config.cjs.map +0 -1
- package/dist/debugging-BtpYr1v0.js.map +0 -1
- package/dist/debugging.js.map +0 -1
- package/dist/deprecations-D_dBAPC9.js +0 -34
- package/dist/deprecations-D_dBAPC9.js.map +0 -1
- package/dist/deprecations.js.map +0 -1
- package/dist/env.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/macros.js.map +0 -1
- package/unstable-preview-types/-private/utils/deprecations.d.ts +0 -12
- package/unstable-preview-types/-private/utils/deprecations.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/features.d.ts +0 -9
- package/unstable-preview-types/-private/utils/features.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/get-env.d.ts +0 -11
- package/unstable-preview-types/-private/utils/get-env.d.ts.map +0 -1
- package/unstable-preview-types/-private/utils/logging.d.ts +0 -14
- package/unstable-preview-types/-private/utils/logging.d.ts.map +0 -1
- package/unstable-preview-types/babel-macros.d.ts +0 -6
- package/unstable-preview-types/babel-macros.d.ts.map +0 -1
- package/unstable-preview-types/canary-features.d.ts +0 -105
- package/unstable-preview-types/canary-features.d.ts.map +0 -1
- package/unstable-preview-types/cjs-set-config.d.ts +0 -4
- package/unstable-preview-types/cjs-set-config.d.ts.map +0 -1
- package/unstable-preview-types/debugging.d.ts +0 -164
- package/unstable-preview-types/debugging.d.ts.map +0 -1
- package/unstable-preview-types/deprecation-versions.d.ts +0 -485
- package/unstable-preview-types/deprecation-versions.d.ts.map +0 -1
- package/unstable-preview-types/deprecations.d.ts +0 -16
- package/unstable-preview-types/deprecations.d.ts.map +0 -1
- package/unstable-preview-types/env.d.ts +0 -9
- package/unstable-preview-types/env.d.ts.map +0 -1
- package/unstable-preview-types/index.d.ts +0 -49
- package/unstable-preview-types/index.d.ts.map +0 -1
- package/unstable-preview-types/macros.d.ts +0 -5
- package/unstable-preview-types/macros.d.ts.map +0 -1
- package/unstable-preview-types/validate-exports.type-test.d.ts +0 -4
- package/unstable-preview-types/validate-exports.type-test.d.ts.map +0 -1
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* ## Debug Logging
|
|
2
|
+
* # Log Instrumentation <Badge type="tip" text="debug only" />
|
|
6
3
|
*
|
|
7
4
|
* Many portions of the internals are helpfully instrumented with logging.
|
|
8
5
|
* This instrumentation is always removed from production builds.
|
|
@@ -14,19 +11,11 @@
|
|
|
14
11
|
* either in your build config or via the runtime helper.
|
|
15
12
|
*
|
|
16
13
|
*
|
|
17
|
-
*
|
|
14
|
+
* ## Runtime Activation
|
|
18
15
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* The runtime helper overrides any build config settings for the given flag
|
|
23
|
-
* for the current browser tab. It stores the configuration you give it in
|
|
24
|
-
* `sessionStorage` so that it persists across page reloads of the current tab,
|
|
25
|
-
* but not across browser tabs or windows. Thus if you need to deactivate the
|
|
26
|
-
* logging, you can call the helper again with the same flag set to `false` or
|
|
27
|
-
* just open a new tab/window.
|
|
28
|
-
*
|
|
29
|
-
* Example Usage:
|
|
16
|
+
* ::: tip 💡 Just Works in browser Dev Tools!
|
|
17
|
+
* No import is needed, and the logging config is preserved when the page is refreshed
|
|
18
|
+
* :::
|
|
30
19
|
*
|
|
31
20
|
* ```ts
|
|
32
21
|
* setWarpDriveLogging({
|
|
@@ -35,26 +24,34 @@
|
|
|
35
24
|
* })
|
|
36
25
|
* ```
|
|
37
26
|
*
|
|
38
|
-
*
|
|
27
|
+
* A runtime helper is attached to `globalThis` to enable activation of the logs
|
|
28
|
+
* from anywhere in your application including from the devtools panel.
|
|
29
|
+
*
|
|
30
|
+
* The runtime helper overrides any build config settings for the given flag
|
|
31
|
+
* for the current browser tab. It stores the configuration you give it in
|
|
32
|
+
* `sessionStorage` so that it persists across page reloads of the current tab,
|
|
33
|
+
* but not across browser tabs or windows.
|
|
34
|
+
*
|
|
35
|
+
* If you need to deactivate the logging, you can call the helper again with the
|
|
36
|
+
* same flag set to `false` or just open a new tab/window.
|
|
37
|
+
*
|
|
38
|
+
* ## Buildtime Activation
|
|
39
39
|
*
|
|
40
40
|
* ```ts
|
|
41
41
|
* setConfig(__dirname, app, {
|
|
42
42
|
* debug: {
|
|
43
|
-
* LOG_CACHE:
|
|
44
|
-
* LOG_NOTIFICATIONS: false,
|
|
43
|
+
* LOG_CACHE: true,
|
|
45
44
|
* LOG_REQUESTS: false,
|
|
46
|
-
*
|
|
47
|
-
* LOG_IDENTIFIERS: false,
|
|
48
|
-
* LOG_GRAPH: false,
|
|
49
|
-
* LOG_INSTANCE_CACHE: false,
|
|
50
|
-
* LOG_METRIC_COUNTS: false,
|
|
51
|
-
* DEBUG_RELATIONSHIP_NOTIFICATIONS: false,
|
|
45
|
+
* LOG_NOTIFICATIONS: true,
|
|
52
46
|
* }
|
|
53
47
|
* });
|
|
54
48
|
* ```
|
|
55
49
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
50
|
+
* The build config settings are used to set the default values for the
|
|
51
|
+
* logging flags. Any logging flag that is not set in the build config
|
|
52
|
+
* will default to `false`.
|
|
53
|
+
*
|
|
54
|
+
* @module
|
|
58
55
|
*/
|
|
59
56
|
/**
|
|
60
57
|
* log cache updates for both local
|
|
@@ -65,16 +62,50 @@
|
|
|
65
62
|
*
|
|
66
63
|
* The others were `LOG_OPERATIONS` and `LOG_MUTATIONS`.
|
|
67
64
|
*
|
|
68
|
-
* @property LOG_CACHE
|
|
69
|
-
* @type {Boolean}
|
|
70
65
|
* @public
|
|
66
|
+
* @since 5.5
|
|
71
67
|
*/
|
|
72
68
|
const LOG_CACHE = false;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* <Badge type="danger" text="removed" />
|
|
72
|
+
*
|
|
73
|
+
* This flag no longer has any effect.
|
|
74
|
+
*
|
|
75
|
+
* Use {@link LOG_CACHE} instead.
|
|
76
|
+
*
|
|
77
|
+
* @deprecated removed in version 5.5
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
const LOG_PAYLOADS = false;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* <Badge type="danger" text="removed" />
|
|
84
|
+
*
|
|
85
|
+
* This flag no longer has any effect.
|
|
86
|
+
*
|
|
87
|
+
* Use {@link LOG_CACHE} instead.
|
|
88
|
+
*
|
|
89
|
+
* @deprecated removed in version 5.5
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
const LOG_OPERATIONS = false;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* <Badge type="danger" text="removed" />
|
|
96
|
+
*
|
|
97
|
+
* This flag no longer has any effect.
|
|
98
|
+
*
|
|
99
|
+
* Use {@link LOG_CACHE} instead.
|
|
100
|
+
*
|
|
101
|
+
* @deprecated removed in version 5.5
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
const LOG_MUTATIONS = false;
|
|
105
|
+
|
|
73
106
|
/**
|
|
74
107
|
* Log decisions made by the Basic CachePolicy
|
|
75
108
|
*
|
|
76
|
-
* @property LOG_CACHE_POLICY
|
|
77
|
-
* @type {Boolean}
|
|
78
109
|
* @public
|
|
79
110
|
*/
|
|
80
111
|
const LOG_CACHE_POLICY = false;
|
|
@@ -82,16 +113,12 @@ const LOG_CACHE_POLICY = false;
|
|
|
82
113
|
/**
|
|
83
114
|
* log notifications received by the NotificationManager
|
|
84
115
|
*
|
|
85
|
-
* @property LOG_NOTIFICATIONS
|
|
86
|
-
* @type {Boolean}
|
|
87
116
|
* @public
|
|
88
117
|
*/
|
|
89
118
|
const LOG_NOTIFICATIONS = false;
|
|
90
119
|
/**
|
|
91
120
|
* log requests issued by the RequestManager
|
|
92
121
|
*
|
|
93
|
-
* @property LOG_REQUESTS
|
|
94
|
-
* @type {Boolean}
|
|
95
122
|
* @public
|
|
96
123
|
*/
|
|
97
124
|
const LOG_REQUESTS = false;
|
|
@@ -99,8 +126,6 @@ const LOG_REQUESTS = false;
|
|
|
99
126
|
* log updates to requests the store has issued to
|
|
100
127
|
* the network (adapter) to fulfill.
|
|
101
128
|
*
|
|
102
|
-
* @property LOG_REQUEST_STATUS
|
|
103
|
-
* @type {Boolean}
|
|
104
129
|
* @public
|
|
105
130
|
*/
|
|
106
131
|
const LOG_REQUEST_STATUS = false;
|
|
@@ -108,8 +133,6 @@ const LOG_REQUEST_STATUS = false;
|
|
|
108
133
|
* log peek, generation and updates to
|
|
109
134
|
* Record Identifiers.
|
|
110
135
|
*
|
|
111
|
-
* @property LOG_IDENTIFIERS
|
|
112
|
-
* @type {Boolean}
|
|
113
136
|
|
|
114
137
|
* @public
|
|
115
138
|
*/
|
|
@@ -117,8 +140,6 @@ const LOG_IDENTIFIERS = false;
|
|
|
117
140
|
/**
|
|
118
141
|
* log updates received by the graph (relationship pointer storage)
|
|
119
142
|
*
|
|
120
|
-
* @property LOG_GRAPH
|
|
121
|
-
* @type {Boolean}
|
|
122
143
|
* @public
|
|
123
144
|
*/
|
|
124
145
|
const LOG_GRAPH = false;
|
|
@@ -126,8 +147,6 @@ const LOG_GRAPH = false;
|
|
|
126
147
|
* log creation/removal of RecordData and Record
|
|
127
148
|
* instances.
|
|
128
149
|
*
|
|
129
|
-
* @property LOG_INSTANCE_CACHE
|
|
130
|
-
* @type {Boolean}
|
|
131
150
|
* @public
|
|
132
151
|
*/
|
|
133
152
|
const LOG_INSTANCE_CACHE = false;
|
|
@@ -135,8 +154,6 @@ const LOG_INSTANCE_CACHE = false;
|
|
|
135
154
|
* Log key count metrics, useful for performance
|
|
136
155
|
* debugging.
|
|
137
156
|
*
|
|
138
|
-
* @property LOG_METRIC_COUNTS
|
|
139
|
-
* @type {Boolean}
|
|
140
157
|
* @public
|
|
141
158
|
*/
|
|
142
159
|
const LOG_METRIC_COUNTS = false;
|
|
@@ -144,8 +161,6 @@ const LOG_METRIC_COUNTS = false;
|
|
|
144
161
|
* Helps when debugging causes of a change notification
|
|
145
162
|
* when processing an update to a hasMany relationship.
|
|
146
163
|
*
|
|
147
|
-
* @property DEBUG_RELATIONSHIP_NOTIFICATIONS
|
|
148
|
-
* @type {Boolean}
|
|
149
164
|
* @public
|
|
150
165
|
*/
|
|
151
166
|
const DEBUG_RELATIONSHIP_NOTIFICATIONS = false;
|
|
@@ -158,24 +173,26 @@ const DEBUG_RELATIONSHIP_NOTIFICATIONS = false;
|
|
|
158
173
|
*
|
|
159
174
|
* LOG_METRIC_COUNTS must also be enabled.
|
|
160
175
|
*
|
|
161
|
-
* @
|
|
176
|
+
* @internal
|
|
162
177
|
*/
|
|
163
178
|
const __INTERNAL_LOG_NATIVE_MAP_SET_COUNTS = false;
|
|
164
179
|
|
|
165
180
|
const LOGGING = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
181
|
+
__proto__: null,
|
|
182
|
+
DEBUG_RELATIONSHIP_NOTIFICATIONS,
|
|
183
|
+
LOG_CACHE,
|
|
184
|
+
LOG_CACHE_POLICY,
|
|
185
|
+
LOG_GRAPH,
|
|
186
|
+
LOG_IDENTIFIERS,
|
|
187
|
+
LOG_INSTANCE_CACHE,
|
|
188
|
+
LOG_METRIC_COUNTS,
|
|
189
|
+
LOG_MUTATIONS,
|
|
190
|
+
LOG_NOTIFICATIONS,
|
|
191
|
+
LOG_OPERATIONS,
|
|
192
|
+
LOG_PAYLOADS,
|
|
193
|
+
LOG_REQUESTS,
|
|
194
|
+
LOG_REQUEST_STATUS,
|
|
195
|
+
__INTERNAL_LOG_NATIVE_MAP_SET_COUNTS
|
|
178
196
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
179
197
|
|
|
180
|
-
export { DEBUG_RELATIONSHIP_NOTIFICATIONS as D, LOGGING as L, __INTERNAL_LOG_NATIVE_MAP_SET_COUNTS as _, LOG_CACHE as a,
|
|
181
|
-
//# sourceMappingURL=debugging-BtpYr1v0.js.map
|
|
198
|
+
export { DEBUG_RELATIONSHIP_NOTIFICATIONS as D, LOGGING as L, __INTERNAL_LOG_NATIVE_MAP_SET_COUNTS as _, LOG_CACHE as a, LOG_PAYLOADS as b, LOG_OPERATIONS as c, LOG_MUTATIONS as d, LOG_CACHE_POLICY as e, LOG_NOTIFICATIONS as f, LOG_REQUESTS as g, LOG_REQUEST_STATUS as h, LOG_IDENTIFIERS as i, LOG_GRAPH as j, LOG_INSTANCE_CACHE as k, LOG_METRIC_COUNTS as l };
|
package/dist/debugging.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { D as DEBUG_RELATIONSHIP_NOTIFICATIONS, a as LOG_CACHE,
|
|
2
|
-
//# sourceMappingURL=debugging.js.map
|
|
1
|
+
export { D as DEBUG_RELATIONSHIP_NOTIFICATIONS, a as LOG_CACHE, e as LOG_CACHE_POLICY, j as LOG_GRAPH, i as LOG_IDENTIFIERS, k as LOG_INSTANCE_CACHE, l as LOG_METRIC_COUNTS, d as LOG_MUTATIONS, f as LOG_NOTIFICATIONS, c as LOG_OPERATIONS, b as LOG_PAYLOADS, g as LOG_REQUESTS, h as LOG_REQUEST_STATUS, _ as __INTERNAL_LOG_NATIVE_MAP_SET_COUNTS } from './debugging-VdsvkNjX.js';
|