@modern-js/runtime 1.3.0 → 1.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @modern-js/runtime
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 37250cb8f: feat: supply `AppConfig` types
8
+ - Updated dependencies [6c8ab42dd]
9
+ - Updated dependencies [808baede3]
10
+ - Updated dependencies [37250cb8f]
11
+ - Updated dependencies [fc43fef39]
12
+ - Updated dependencies [a204922e8]
13
+ - @modern-js/plugin-ssr@1.4.4
14
+ - @modern-js/runtime-core@1.4.8
15
+ - @modern-js/plugin-state@1.2.9
16
+ - @modern-js/plugin-router@1.2.14
17
+
3
18
  ## 1.3.0
4
19
 
5
20
  ### Minor Changes
@@ -1,2 +1,10 @@
1
+ import type { RouterConfig } from '@modern-js/plugin-router';
2
+ import type { StateConfig } from '@modern-js/plugin-state';
1
3
  export type { RuntimeContext, TRuntimeContext } from '@modern-js/runtime-core';
2
- export { createApp, createPlugin, useLoader, bootstrap, RuntimeReactContext, registerPrefetch, defineConfig, registerInit, useRuntimeContext } from '@modern-js/runtime-core';
4
+ export { createApp, createPlugin, useLoader, bootstrap, RuntimeReactContext, registerPrefetch, defineConfig, registerInit, useRuntimeContext } from '@modern-js/runtime-core';
5
+ declare module '@modern-js/runtime-core' {
6
+ interface AppConfig {
7
+ router?: RouterConfig | boolean;
8
+ state?: StateConfig | boolean;
9
+ }
10
+ }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.3.0",
14
+ "version": "1.3.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./type.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -104,12 +104,12 @@
104
104
  "dependencies": {
105
105
  "@babel/runtime": "^7",
106
106
  "@modern-js/plugin-router": "^1.2.14",
107
- "@modern-js/plugin-ssr": "^1.3.2",
108
- "@modern-js/plugin-state": "^1.2.7",
109
- "@modern-js/runtime-core": "^1.4.6",
110
- "@modern-js/utils": "^1.7.3",
107
+ "@modern-js/plugin-ssr": "^1.4.4",
108
+ "@modern-js/plugin-state": "^1.2.9",
109
+ "@modern-js/runtime-core": "^1.4.8",
110
+ "@modern-js/utils": "^1.7.6",
111
111
  "@modern-js/bff-runtime": "^1.2.3",
112
- "@modern-js/create-request": "^1.2.8",
112
+ "@modern-js/create-request": "^1.2.10",
113
113
  "@loadable/component": "^5.15.0",
114
114
  "@types/loadable__component": "^5.13.4",
115
115
  "@types/react-helmet": "^6.1.2",
@@ -118,7 +118,7 @@
118
118
  "react-is": "^17"
119
119
  },
120
120
  "devDependencies": {
121
- "@modern-js/core": "1.10.2",
121
+ "@modern-js/core": "1.11.1",
122
122
  "@scripts/build": "0.0.0",
123
123
  "@types/jest": "^27",
124
124
  "@types/node": "^14",
@@ -152,7 +152,8 @@
152
152
  "files": [
153
153
  "src/**/*",
154
154
  "tsconfig.json",
155
- "package.json"
155
+ "package.json",
156
+ "tests/**/*"
156
157
  ],
157
158
  "output": []
158
159
  }