@modern-js/runtime 1.2.9 → 1.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @modern-js/runtime
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a9f5d170c: fix: @modern-js/runtime/model effects type error
8
+
9
+ ### Patch Changes
10
+
11
+ - d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
12
+ - Updated dependencies [d32f35134]
13
+ - Updated dependencies [6ae4a34ae]
14
+ - Updated dependencies [97086dde8]
15
+ - Updated dependencies [97086dde8]
16
+ - Updated dependencies [b80229c79]
17
+ - Updated dependencies [5bfb57321]
18
+ - Updated dependencies [948cc4436]
19
+ - @modern-js/plugin-router@1.2.14
20
+ - @modern-js/plugin-state@1.2.7
21
+ - @modern-js/runtime-core@1.4.6
22
+ - @modern-js/bff-runtime@1.2.3
23
+ - @modern-js/create-request@1.2.8
24
+ - @modern-js/utils@1.7.3
25
+ - @modern-js/plugin-ssr@1.3.2
26
+
3
27
  ## 1.2.9
4
28
 
5
29
  ### Patch Changes
@@ -1,9 +1,5 @@
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
1
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
2
-
3
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
-
5
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
6
-
7
3
  import path from 'path';
8
4
  import { PLUGIN_SCHEMAS, createRuntimeExportsUtils, cleanRequireCache } from '@modern-js/utils';
9
5
  import PluginState from '@modern-js/plugin-state/cli';
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.9",
14
+ "version": "1.3.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./type.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -97,19 +97,19 @@
97
97
  "./dist/types/exports/request.d.ts"
98
98
  ],
99
99
  "model": [
100
- "./dist/types/exports/model.d.ts"
100
+ "./types/model.d.ts"
101
101
  ]
102
102
  }
103
103
  },
104
104
  "dependencies": {
105
105
  "@babel/runtime": "^7",
106
- "@modern-js/plugin-router": "^1.2.13",
107
- "@modern-js/plugin-ssr": "^1.3.1",
108
- "@modern-js/plugin-state": "^1.2.6",
109
- "@modern-js/runtime-core": "^1.4.5",
110
- "@modern-js/utils": "^1.7.2",
111
- "@modern-js/bff-runtime": "^1.2.2",
112
- "@modern-js/create-request": "^1.2.7",
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",
111
+ "@modern-js/bff-runtime": "^1.2.3",
112
+ "@modern-js/create-request": "^1.2.8",
113
113
  "@loadable/component": "^5.15.0",
114
114
  "@types/loadable__component": "^5.13.4",
115
115
  "@types/react-helmet": "^6.1.2",
@@ -118,9 +118,9 @@
118
118
  "react-is": "^17"
119
119
  },
120
120
  "devDependencies": {
121
- "@modern-js/core": "1.10.1",
121
+ "@modern-js/core": "1.10.2",
122
122
  "@scripts/build": "0.0.0",
123
- "@types/jest": "^26",
123
+ "@types/jest": "^27",
124
124
  "@types/node": "^14",
125
125
  "@types/react": "^17",
126
126
  "@types/react-dom": "^17",
@@ -135,10 +135,32 @@
135
135
  "registry": "https://registry.npmjs.org/",
136
136
  "access": "public"
137
137
  },
138
+ "wireit": {
139
+ "build": {
140
+ "command": "modern build",
141
+ "files": [
142
+ "src/**/*",
143
+ "tsconfig.json",
144
+ "package.json"
145
+ ],
146
+ "output": [
147
+ "dist/**/*"
148
+ ]
149
+ },
150
+ "test": {
151
+ "command": "jest --passWithNoTests",
152
+ "files": [
153
+ "src/**/*",
154
+ "tsconfig.json",
155
+ "package.json"
156
+ ],
157
+ "output": []
158
+ }
159
+ },
138
160
  "scripts": {
139
161
  "new": "modern new",
140
- "build": "modern build",
141
- "test": "jest --passWithNoTests"
162
+ "build": "wireit",
163
+ "test": "wireit"
142
164
  },
143
165
  "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
144
166
  }
@@ -0,0 +1,3 @@
1
+ import '@modern-js/plugin-state/type';
2
+
3
+ export * from '../dist/types/exports/model';
package/.eslintrc.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ['@modern-js'],
4
- parserOptions: {
5
- tsconfigRootDir: __dirname,
6
- project: ['./tsconfig.json'],
7
- },
8
- };
package/jest.config.js DELETED
@@ -1,7 +0,0 @@
1
- const sharedConfig = require('@scripts/jest-config');
2
-
3
- /** @type {import('@jest/types').Config.InitialOptions} */
4
- module.exports = {
5
- ...sharedConfig,
6
- rootDir: __dirname,
7
- };
package/modern.config.js DELETED
@@ -1,2 +0,0 @@
1
- /** @type {import('@modern-js/module-tools').UserConfig} */
2
- module.exports = {};
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "isolatedModules": true,
8
- "paths": {}
9
- },
10
- "include": ["src"]
11
- }