@modern-js/runtime 1.2.4 → 1.2.7

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/.eslintrc.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: ['@modern-js'],
4
+ parserOptions: {
5
+ tsconfigRootDir: __dirname,
6
+ project: ['./tsconfig.json'],
7
+ },
8
+ };
package/CHANGELOG.md CHANGED
@@ -1,5 +1,70 @@
1
1
  # @modern-js/runtime
2
2
 
3
+ ## 1.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c1438d2: fix: missing peer deps warnings
8
+ - 123e432d: uglify ssr bundle for treeshaking
9
+ - Updated dependencies [2d155c4c]
10
+ - Updated dependencies [a0475f1a]
11
+ - Updated dependencies [123e432d]
12
+ - Updated dependencies [6c1438d2]
13
+ - Updated dependencies [e5a9b26d]
14
+ - Updated dependencies [0b26b93b]
15
+ - Updated dependencies [123e432d]
16
+ - Updated dependencies [f9f66ef9]
17
+ - Updated dependencies [592edabc]
18
+ - Updated dependencies [895fa0ff]
19
+ - Updated dependencies [3578913e]
20
+ - Updated dependencies [0fccff68]
21
+ - Updated dependencies [1c3beab3]
22
+ - @modern-js/utils@1.6.0
23
+ - @modern-js/plugin-ssr@1.2.8
24
+ - @modern-js/plugin-state@1.2.5
25
+ - @modern-js/plugin-router@1.2.11
26
+ - @modern-js/runtime-core@1.4.3
27
+ - @modern-js/create-request@1.2.5
28
+
29
+ ## 1.2.6
30
+
31
+ ### Patch Changes
32
+
33
+ - 6cffe99d: chore:
34
+ remove react eslint rules for `modern-js` rule set.
35
+ add .eslintrc for each package to speed up linting
36
+ - 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
37
+ - 60f7d8bf: feat: add tests dir to npmignore
38
+ - Updated dependencies [b8599d09]
39
+ - Updated dependencies [6cffe99d]
40
+ - Updated dependencies [04ae5262]
41
+ - Updated dependencies [60f7d8bf]
42
+ - Updated dependencies [e4cec1ce]
43
+ - Updated dependencies [3bf4f8b0]
44
+ - @modern-js/utils@1.5.0
45
+ - @modern-js/plugin-router@1.2.10
46
+ - @modern-js/plugin-state@1.2.4
47
+ - @modern-js/runtime-core@1.4.2
48
+ - @modern-js/bff-runtime@1.2.2
49
+ - @modern-js/create-request@1.2.4
50
+ - @modern-js/plugin-ssr@1.2.7
51
+
52
+ ## 1.2.5
53
+
54
+ ### Patch Changes
55
+
56
+ - bebb39b6: chore: improve devDependencies and peerDependencies
57
+ - ff73a5cc: fix style-component bugs
58
+ - Updated dependencies [bebb39b6]
59
+ - Updated dependencies [132f7b53]
60
+ - Updated dependencies [c4a7e4a3]
61
+ - Updated dependencies [ff73a5cc]
62
+ - Updated dependencies [9d4a005b]
63
+ - @modern-js/plugin-router@1.2.8
64
+ - @modern-js/plugin-ssr@1.2.5
65
+ - @modern-js/plugin-state@1.2.3
66
+ - @modern-js/utils@1.3.7
67
+
3
68
  ## 1.2.4
4
69
 
5
70
  ### Patch Changes
package/jest.config.js CHANGED
@@ -2,7 +2,6 @@ const sharedConfig = require('@scripts/jest-config');
2
2
 
3
3
  /** @type {import('@jest/types').Config.InitialOptions} */
4
4
  module.exports = {
5
- // eslint-disable-next-line node/no-unsupported-features/es-syntax
6
5
  ...sharedConfig,
7
6
  rootDir: __dirname,
8
7
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.4",
14
+ "version": "1.2.7",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./type.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "./ssr": {
54
54
  "jsnext:source": "./src/exports/ssr.ts",
55
- "node": "./dist/js/node/exports/ssr.js",
55
+ "node": "./dist/js/treeshaking/exports/ssr.js",
56
56
  "default": "./dist/js/treeshaking/exports/ssr.js"
57
57
  },
58
58
  "./model": {
@@ -103,27 +103,28 @@
103
103
  },
104
104
  "dependencies": {
105
105
  "@babel/runtime": "^7",
106
- "@modern-js/plugin-router": "^1.2.6",
107
- "@modern-js/plugin-ssr": "^1.2.4",
108
- "@modern-js/plugin-state": "^1.2.2",
109
- "@modern-js/runtime-core": "^1.4.0",
110
- "@modern-js/utils": "^1.3.6",
111
- "@modern-js/bff-runtime": "^1.2.1",
112
- "@modern-js/create-request": "^1.2.1",
106
+ "@modern-js/plugin-router": "^1.2.11",
107
+ "@modern-js/plugin-ssr": "^1.2.8",
108
+ "@modern-js/plugin-state": "^1.2.5",
109
+ "@modern-js/runtime-core": "^1.4.3",
110
+ "@modern-js/utils": "^1.6.0",
111
+ "@modern-js/bff-runtime": "^1.2.2",
112
+ "@modern-js/create-request": "^1.2.5",
113
113
  "@loadable/component": "^5.15.0",
114
114
  "@types/loadable__component": "^5.13.4",
115
115
  "@types/react-helmet": "^6.1.2",
116
116
  "react-helmet": "^6.1.0",
117
- "styled-components": "^5.3.1"
117
+ "react-side-effect": "^2.1.1",
118
+ "react-is": "^17"
118
119
  },
119
120
  "devDependencies": {
120
- "@modern-js/core": "^1.6.0",
121
+ "@modern-js/core": "1.9.0",
121
122
  "@scripts/build": "0.0.0",
122
- "@types/styled-components": "^5.1.13",
123
123
  "@types/jest": "^26",
124
124
  "@types/node": "^14",
125
125
  "@types/react": "^17",
126
126
  "@types/react-dom": "^17",
127
+ "react": "^17",
127
128
  "typescript": "^4",
128
129
  "jest": "^27",
129
130
  "@scripts/jest-config": "0.0.0"
@@ -1,9 +0,0 @@
1
- import { createApp } from '../src';
2
- import plugin from '../src/cli';
3
-
4
- describe('plugin-runtime', () => {
5
- it('default', () => {
6
- expect(plugin).toBeDefined();
7
- expect(createApp).toBeDefined();
8
- });
9
- });
@@ -1,10 +0,0 @@
1
- import { hook } from '../src/exports/server';
2
-
3
- describe('runtime export', () => {
4
- it('should return self after hook', () => {
5
- const fn = () => {
6
- // empty
7
- };
8
- expect(hook(fn)).toBe(fn);
9
- });
10
- });
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "noEmit": true,
8
- "isolatedModules": true,
9
- "sourceMap": true,
10
- "types": ["node", "jest"]
11
- },
12
- "paths": {}
13
- }
package/types/model.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import '@modern-js/plugin-state/type';
2
-
3
- export * from '../dist/types/exports/model';