@mapl/web 0.2.0-alpha.6 → 0.2.0-alpha.8

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.
Files changed (2) hide show
  1. package/README.md +0 -14
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -107,17 +107,3 @@ import { isHydrating } from 'runtime-compiler/config';
107
107
  // Use this to for minifiedrs to eliminate unused code path in final output
108
108
  isHydrating;
109
109
  ```
110
-
111
- ### Compiling external dependencies
112
- ```ts
113
- import { injectDependency, markDependency, getDependency } from 'runtime-compiler';
114
- import { isHydrating } from 'runtime-compiler/config';
115
-
116
- // Better tree shaking
117
- const hello = isHydrating
118
- ? markDependency<() => void>()
119
- : injectDependency<() => void>(`() => console.log('hello')`);
120
-
121
- // After compiler is executed
122
- getDependency(hello)();
123
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapl/web",
3
- "version": "0.2.0-alpha.6",
3
+ "version": "0.2.0-alpha.8",
4
4
  "description": "A compiled web framework for all runtimes",
5
5
  "keywords": ["fast", "lightweight", "cross-runtime", "framework", "web", "backend"],
6
6
  "repository": {
@@ -12,7 +12,7 @@
12
12
  "main": "./index.js",
13
13
  "types": "./index.d.ts",
14
14
  "dependencies": {
15
- "@mapl/framework": "^0.4.3",
15
+ "@mapl/framework": "^0.4.4",
16
16
  "@mapl/router": "^0.6.2",
17
17
  "@safe-std/error": "^1.0.1",
18
18
  "runtime-compiler": "^1.0.8"
@@ -22,16 +22,16 @@
22
22
  },
23
23
  "exports": {
24
24
  "./constants": "./constants.js",
25
- "./core": "./core/index.js",
26
25
  "./core/middleware": "./core/middleware.js",
26
+ "./core": "./core/index.js",
27
+ "./utils/static-headers": "./utils/static-headers.js",
28
+ "./utils/cors": "./utils/cors.js",
27
29
  "./core/handler": "./core/handler.js",
28
- "./core/context": "./core/context.js",
29
30
  "./utils/secure-headers": "./utils/secure-headers.js",
30
- "./utils/cors": "./utils/cors.js",
31
+ "./compiler/aot": "./compiler/aot.js",
31
32
  "./core/utils": "./core/utils.js",
32
- "./compiler/jit": "./compiler/jit.js",
33
- "./utils/static-headers": "./utils/static-headers.js",
33
+ "./core/context": "./core/context.js",
34
34
  ".": "./index.js",
35
- "./compiler/aot": "./compiler/aot.js"
35
+ "./compiler/jit": "./compiler/jit.js"
36
36
  }
37
37
  }