@modern-js/plugin-state 1.2.2 → 1.2.5

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,28 @@
1
1
  # @modern-js/plugin-state
2
2
 
3
+ ## 1.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c1438d2: fix: missing peer deps warnings
8
+ - 895fa0ff: chore: using "workspace:\*" in devDependencies
9
+
10
+ ## 1.2.4
11
+
12
+ ### Patch Changes
13
+
14
+ - 6cffe99d: chore:
15
+ remove react eslint rules for `modern-js` rule set.
16
+ add .eslintrc for each package to speed up linting
17
+ - 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
18
+ - 60f7d8bf: feat: add tests dir to npmignore
19
+
20
+ ## 1.2.3
21
+
22
+ ### Patch Changes
23
+
24
+ - bebb39b6: chore: improve devDependencies and peerDependencies
25
+
3
26
  ## 1.2.2
4
27
 
5
28
  ### Patch Changes
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- // eslint-disable-next-line filenames/match-exported
8
7
  import { useContext } from 'react';
9
8
  import { RuntimeReactContext } from '@modern-js/runtime-core';
10
9
  import { createStore } from '@modern-js-reduck/store';
@@ -4,7 +4,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- // eslint-disable-next-line filenames/match-exported
8
7
  import { useContext } from 'react';
9
8
  import { RuntimeReactContext } from '@modern-js/runtime-core';
10
9
  import { createStore } from '@modern-js-reduck/store';
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.2",
14
+ "version": "1.2.5",
15
15
  "jsnext:source": "./src/runtime/index.tsx",
16
16
  "types": "./dist/types/runtime/index.d.ts",
17
17
  "main": "./dist/js/node/runtime/index.js",
@@ -57,31 +57,31 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@babel/runtime": "^7",
60
- "@modern-js-reduck/plugin-auto-actions": "^1.0.0",
61
- "@modern-js-reduck/plugin-devtools": "^1.0.0",
62
- "@modern-js-reduck/plugin-effects": "^1.0.0",
63
- "@modern-js-reduck/plugin-immutable": "^1.0.0",
64
- "@modern-js-reduck/react": "^1.0.0",
65
- "@modern-js-reduck/store": "^1.0.0",
60
+ "@modern-js-reduck/plugin-auto-actions": "^1.0.2",
61
+ "@modern-js-reduck/plugin-devtools": "^1.0.2",
62
+ "@modern-js-reduck/plugin-effects": "^1.0.2",
63
+ "@modern-js-reduck/plugin-immutable": "^1.0.1",
64
+ "@modern-js-reduck/react": "^1.0.1",
65
+ "@modern-js-reduck/store": "^1.0.3",
66
66
  "@types/redux-logger": "^3.0.9",
67
- "redux-logger": "^3.0.6",
68
- "hoist-non-react-statics": "^3.3.2"
67
+ "hoist-non-react-statics": "^3.3.2",
68
+ "redux-logger": "^3.0.6"
69
69
  },
70
70
  "devDependencies": {
71
- "@modern-js/core": "^1.6.0",
72
- "@modern-js/plugin": "^1.3.2",
73
- "@modern-js/runtime-core": "^1.4.0",
74
- "@modern-js/utils": "^1.3.6",
71
+ "@modern-js/core": "1.9.0",
72
+ "@modern-js/plugin": "1.3.3",
73
+ "@modern-js/runtime-core": "1.4.3",
74
+ "@modern-js/utils": "1.6.0",
75
+ "@scripts/build": "0.0.0",
76
+ "@scripts/jest-config": "0.0.0",
75
77
  "@types/hoist-non-react-statics": "^3.3.1",
76
78
  "@types/jest": "^26",
77
79
  "@types/node": "^14",
78
80
  "@types/react": "^17",
79
81
  "@types/react-dom": "^17",
80
- "react": "^17.0.2",
81
- "typescript": "^4",
82
- "@scripts/build": "0.0.0",
83
82
  "jest": "^27",
84
- "@scripts/jest-config": "0.0.0"
83
+ "react": "^17.0.2",
84
+ "typescript": "^4"
85
85
  },
86
86
  "sideEffects": false,
87
87
  "peerDependencies": {
@@ -1,9 +0,0 @@
1
- import plugin from '../src/runtime';
2
- import cliPlugin from '../src/cli';
3
-
4
- describe('plugin-state', () => {
5
- it('default', () => {
6
- expect(plugin).toBeDefined();
7
- expect(cliPlugin).toBeDefined();
8
- });
9
- });
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "outDir": "./out",
8
- "emitDeclarationOnly": true,
9
- "isolatedModules": true,
10
- "paths": {},
11
- "types": ["node", "jest"]
12
- }
13
- }