@warp-drive/core 5.9.0-alpha.14 → 5.9.0-alpha.15
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/build-config/debugging.d.ts +55 -0
- package/dist/types/-private.js +1 -1
- package/dist/unpkg/dev/types/-private.js +1 -1
- package/dist/unpkg/dev-deprecated/types/-private.js +1 -1
- package/dist/unpkg/prod/types/-private.js +1 -1
- package/dist/unpkg/prod-deprecated/types/-private.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # Log Instrumentation <Badge type="tip" text="debug only" />
|
|
3
|
+
*
|
|
4
|
+
* Many portions of the internals are helpfully instrumented with logging.
|
|
5
|
+
* This instrumentation is always removed from production builds.
|
|
6
|
+
*
|
|
7
|
+
* Log instrumentation is "regionalized" to specific concepts and concerns
|
|
8
|
+
* to enable you to enable/disable just the areas you are interested in.
|
|
9
|
+
*
|
|
10
|
+
* To activate a particular group of logs set the appropriate flag to `true`
|
|
11
|
+
* either in your build config or via the runtime helper.
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* ## Runtime Activation
|
|
15
|
+
*
|
|
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
|
+
* :::
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* setWarpDriveLogging({
|
|
22
|
+
* LOG_CACHE: true,
|
|
23
|
+
* LOG_REQUESTS: true,
|
|
24
|
+
* })
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
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
|
+
*
|
|
40
|
+
* ```ts
|
|
41
|
+
* setConfig(__dirname, app, {
|
|
42
|
+
* debug: {
|
|
43
|
+
* LOG_CACHE: true,
|
|
44
|
+
* LOG_REQUESTS: false,
|
|
45
|
+
* LOG_NOTIFICATIONS: true,
|
|
46
|
+
* }
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
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
|
|
55
|
+
*/
|
|
1
56
|
export * from "@warp-drive/build-config/debugging";
|
package/dist/types/-private.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
2
2
|
const name = "@warp-drive/core";
|
|
3
|
-
const version = "5.9.0-alpha.
|
|
3
|
+
const version = "5.9.0-alpha.15";
|
|
4
4
|
|
|
5
5
|
// in testing mode, we utilize globals to ensure only one copy exists of
|
|
6
6
|
// these maps, due to bugs in ember-auto-import
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive/core",
|
|
3
|
-
"version": "5.9.0-alpha.
|
|
3
|
+
"version": "5.9.0-alpha.15",
|
|
4
4
|
"description": "Core package for WarpDrive | All the Universal Basics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@embroider/macros": "^1.19.6",
|
|
48
|
-
"@warp-drive/build-config": "5.9.0-alpha.
|
|
48
|
+
"@warp-drive/build-config": "5.9.0-alpha.15"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@babel/core": "^7.28.3",
|
|
52
52
|
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
53
53
|
"@babel/preset-typescript": "^7.27.1",
|
|
54
|
-
"@warp-drive/internal-config": "5.9.0-alpha.
|
|
54
|
+
"@warp-drive/internal-config": "5.9.0-alpha.15",
|
|
55
55
|
"decorator-transforms": "^2.3.0",
|
|
56
56
|
"ember-source": "~6.12.0",
|
|
57
57
|
"expect-type": "^1.2.2",
|