isomorfeus-redux 4.1.3 → 4.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76cffff40db99de1866133f99310eb5e779cd421ae5918dade3f2e8bfa186c8a
4
- data.tar.gz: 1031b01cafb18b78006b5f4151ee9332b5cc31c542eda358770f0b12d89a0cb4
3
+ metadata.gz: 816f551f4620c027ab31e78e4dc7f5117ff08f3c501006c0a82a36b227d0e870
4
+ data.tar.gz: 56c810661d218f138e74cee015b34dfcd952530eacba2bfd699f0cadc6bd1418
5
5
  SHA512:
6
- metadata.gz: c889fd193fa26a0c449e211d9a886f5b2e5659201dcee703bfc4578a5a61982c08e86fda0a6f15de51108246502ca1732f1b15e01007064ad5e86b089064cd52
7
- data.tar.gz: 10fcdd8f78bdb51865ae4b9ab0b6ad0968209b21cb6945fb7cf39853fb4f58679115aa873f249bfbd969aefda096688d3cdaed7a090a92774c204f6fa99a823f
6
+ metadata.gz: d7415141fa571bc3e5f919de63c9186fe9300698b32691ef4f6bd8ee54053165ecf881309089b82c3cf2ec7e4633c8f0c7e11cf6af915a919d5487a068e351e3
7
+ data.tar.gz: 7ed192799225fb396d8aa43f2172cec6f778ba2a1be5ff5cdb97029115786d2cd35715072c8c70cf94f9dfd4057bab48d3007c75751a23c3639e70ab235ca877
@@ -10,7 +10,7 @@ module Isomorfeus
10
10
  Isomorfeus.add_web_js_import(styles_file) if File.exist(styles_file)
11
11
  end
12
12
  end
13
- Isomorfeus.add_common_js_import('redux', 'Redux')
13
+ Isomorfeus.add_common_js_import('redux', 'Redux', '*')
14
14
  end
15
15
  end
16
16
  end
@@ -29,6 +29,7 @@ else
29
29
  require 'isomorfeus-speednode'
30
30
  Isomorfeus.node_paths << File.expand_path(File.join(File.dirname(__FILE__), '..', 'node_modules'))
31
31
 
32
+ require 'isomorfeus-asset-manager'
32
33
  require 'isomorfeus/redux/imports'
33
34
  Isomorfeus::Redux::Imports.add
34
35
  end
data/lib/redux/store.rb CHANGED
@@ -19,7 +19,7 @@ module Redux
19
19
  Isomorfeus.store.add_reducer(reducer)
20
20
  else
21
21
  # otherwise just add it to the reducers, so that they will be used when initializing the store
22
- preloaded_state[reducer.keys.first] = {} unless preloaded_state.has_key?(reducer.keys.first)
22
+ preloaded_state[reducer.keys.first] = {} unless preloaded_state.key?(reducer.keys.first)
23
23
  reducers.merge!(reducer)
24
24
  end
25
25
  end
@@ -174,7 +174,7 @@ module Redux
174
174
  t = `Date.now()`
175
175
  time_since_first = `t - first`
176
176
  # `console.log('delta', time_since_first)`
177
- return true if `typeof Opal.React !== 'undefined' && typeof Opal.React.render_buffer !== 'undefined' && Opal.React.render_buffer.length > 0 && time_since_first < 1000`
177
+ return true if `typeof Opal.Preact !== 'undefined' && typeof Opal.Preact.render_buffer !== 'undefined' && Opal.Preact.render_buffer.length > 0 && time_since_first < 1000`
178
178
  return false if time_since_first > 100 # ms
179
179
  return false if (`t - #@last_dispatch_time`) > 9 # ms
180
180
  return true
data/lib/redux/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Redux
2
- VERSION = '4.1.3'
2
+ VERSION = '4.1.7'
3
3
  end
data/lib/redux.rb CHANGED
@@ -58,7 +58,7 @@ module Redux
58
58
  def self.fetch_by_path(*path)
59
59
  # get active redux component
60
60
  %x{
61
- var active_component = Opal.React.active_redux_component();
61
+ var active_component = Opal.Preact.active_redux_component();
62
62
  var current_state;
63
63
  var final_data;
64
64
  var path_last = path.length - 1;
@@ -86,7 +86,7 @@ module Redux
86
86
 
87
87
  def self.get_state_path(state, *path)
88
88
  path.inject(state) do |state_el, path_el|
89
- if state_el.has_key?(path_el)
89
+ if state_el.key?(path_el)
90
90
  state_el[path_el]
91
91
  else
92
92
  return nil
@@ -100,7 +100,7 @@ module Redux
100
100
  if path_el == last_el
101
101
  state_el[path_el] = value
102
102
  state_el[path_el]
103
- elsif !state_el.has_key?(path_el)
103
+ elsif !state_el.key?(path_el)
104
104
  state_el[path_el] = {}
105
105
  state_el[path_el]
106
106
  else
@@ -15,9 +15,9 @@
15
15
  }
16
16
  },
17
17
  "node_modules/redux": {
18
- "version": "4.1.1",
19
- "resolved": "https://registry.npmjs.org/redux/-/redux-4.1.1.tgz",
20
- "integrity": "sha512-hZQZdDEM25UY2P493kPYuKqviVwZ58lEmGQNeQ+gXa+U0gYPUBf7NKYazbe3m+bs/DzM/ahN12DbF+NG8i0CWw==",
18
+ "version": "4.1.2",
19
+ "resolved": "https://registry.npmjs.org/redux/-/redux-4.1.2.tgz",
20
+ "integrity": "sha512-SH8PglcebESbd/shgf6mii6EIoRM0zrQyjcuQ+ojmfxjTtE0z9Y8pa62iA/OJ58qjP6j27uyW4kUF4jl/jd6sw==",
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.9.2"
23
23
  }
@@ -0,0 +1,4 @@
1
+ # Change Log
2
+
3
+ This project adheres to [Semantic Versioning](http://semver.org/).
4
+ Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/reduxjs/redux/releases) page.
@@ -66,7 +66,7 @@ export type PreloadedState<S> = Required<S> extends EmptyObject
66
66
  ? {
67
67
  [K in keyof S1]?: S1[K] extends object ? PreloadedState<S1[K]> : S1[K]
68
68
  }
69
- : never
69
+ : S
70
70
  : {
71
71
  [K in keyof S]: S[K] extends string | number | boolean | symbol
72
72
  ? S[K]
@@ -1,108 +1,108 @@
1
- {
2
- "name": "redux",
3
- "version": "4.1.1",
4
- "description": "Predictable state container for JavaScript apps",
5
- "license": "MIT",
6
- "homepage": "http://redux.js.org",
7
- "repository": "github:reduxjs/redux",
8
- "bugs": "https://github.com/reduxjs/redux/issues",
9
- "keywords": [
10
- "redux",
11
- "reducer",
12
- "state",
13
- "predictable",
14
- "functional",
15
- "immutable",
16
- "hot",
17
- "live",
18
- "replay",
19
- "flux",
20
- "elm"
21
- ],
22
- "authors": [
23
- "Dan Abramov <dan.abramov@me.com> (https://github.com/gaearon)",
24
- "Andrew Clark <acdlite@me.com> (https://github.com/acdlite)"
25
- ],
26
- "main": "lib/redux.js",
27
- "unpkg": "dist/redux.js",
28
- "module": "es/redux.js",
29
- "typings": "./index.d.ts",
30
- "files": [
31
- "dist",
32
- "lib",
33
- "es",
34
- "src",
35
- "index.d.ts"
36
- ],
37
- "scripts": {
38
- "clean": "rimraf lib dist es coverage",
39
- "format": "prettier --write \"{src,test}/**/*.{js,ts}\" index.d.ts \"**/*.md\"",
40
- "format:check": "prettier --list-different \"{src,test}/**/*.{js,ts}\" index.d.ts \"**/*.md\"",
41
- "lint": "eslint src test",
42
- "test": "jest",
43
- "test:watch": "npm test -- --watch",
44
- "test:cov": "npm test -- --coverage",
45
- "build": "rollup -c",
46
- "pretest": "npm run build",
47
- "prepublishOnly": "npm run clean && npm run format:check && npm run lint && npm test",
48
- "examples:lint": "eslint examples",
49
- "examples:test": "cross-env CI=true babel-node examples/testAll.js"
50
- },
51
- "dependencies": {
52
- "@babel/runtime": "^7.9.2"
53
- },
54
- "devDependencies": {
55
- "@babel/cli": "^7.8.4",
56
- "@babel/core": "^7.9.0",
57
- "@babel/node": "^7.8.7",
58
- "@babel/plugin-external-helpers": "^7.8.3",
59
- "@babel/plugin-proposal-object-rest-spread": "^7.9.5",
60
- "@babel/plugin-transform-runtime": "^7.9.0",
61
- "@babel/preset-env": "^7.9.5",
62
- "@babel/preset-flow": "^7.9.0",
63
- "@babel/preset-typescript": "^7.9.0",
64
- "@babel/register": "^7.9.0",
65
- "@rollup/plugin-babel": "^5.3.0",
66
- "@rollup/plugin-node-resolve": "^7.1.3",
67
- "@rollup/plugin-replace": "^2.3.2",
68
- "@types/jest": "^25.2.1",
69
- "@types/node": "^13.13.4",
70
- "@typescript-eslint/eslint-plugin": "^2.29.0",
71
- "@typescript-eslint/parser": "^2.29.0",
72
- "babel-eslint": "^10.1.0",
73
- "babel-jest": "^25.4.0",
74
- "cross-env": "^7.0.2",
75
- "eslint": "^6.8.0",
76
- "eslint-config-react-app": "^5.2.1",
77
- "eslint-import-resolver-typescript": "^2.0.0",
78
- "eslint-plugin-flowtype": "^4.7.0",
79
- "eslint-plugin-import": "^2.20.2",
80
- "eslint-plugin-jsx-a11y": "^6.2.3",
81
- "eslint-plugin-react": "^7.19.0",
82
- "eslint-plugin-react-hooks": "^3.0.0",
83
- "glob": "^7.1.6",
84
- "jest": "^25.4.0",
85
- "prettier": "^2.0.5",
86
- "rimraf": "^3.0.2",
87
- "rollup": "^2.7.2",
88
- "rollup-plugin-terser": "^5.3.0",
89
- "rollup-plugin-typescript2": "^0.27.0",
90
- "rxjs": "^6.5.5",
91
- "typescript": "^3.8.3",
92
- "typings-tester": "^0.3.2"
93
- },
94
- "npmName": "redux",
95
- "npmFileMap": [
96
- {
97
- "basePath": "/dist/",
98
- "files": [
99
- "*.js"
100
- ]
101
- }
102
- ],
103
- "jest": {
104
- "testRegex": "(/test/.*\\.spec\\.[tj]s)$",
105
- "coverageProvider": "v8"
106
- },
107
- "sideEffects": false
108
- }
1
+ {
2
+ "name": "redux",
3
+ "version": "4.1.2",
4
+ "description": "Predictable state container for JavaScript apps",
5
+ "license": "MIT",
6
+ "homepage": "http://redux.js.org",
7
+ "repository": "github:reduxjs/redux",
8
+ "bugs": "https://github.com/reduxjs/redux/issues",
9
+ "keywords": [
10
+ "redux",
11
+ "reducer",
12
+ "state",
13
+ "predictable",
14
+ "functional",
15
+ "immutable",
16
+ "hot",
17
+ "live",
18
+ "replay",
19
+ "flux",
20
+ "elm"
21
+ ],
22
+ "authors": [
23
+ "Dan Abramov <dan.abramov@me.com> (https://github.com/gaearon)",
24
+ "Andrew Clark <acdlite@me.com> (https://github.com/acdlite)"
25
+ ],
26
+ "main": "lib/redux.js",
27
+ "unpkg": "dist/redux.js",
28
+ "module": "es/redux.js",
29
+ "typings": "./index.d.ts",
30
+ "files": [
31
+ "dist",
32
+ "lib",
33
+ "es",
34
+ "src",
35
+ "index.d.ts"
36
+ ],
37
+ "scripts": {
38
+ "clean": "rimraf lib dist es coverage",
39
+ "format": "prettier --write \"{src,test}/**/*.{js,ts}\" index.d.ts \"**/*.md\"",
40
+ "format:check": "prettier --list-different \"{src,test}/**/*.{js,ts}\" index.d.ts \"**/*.md\"",
41
+ "lint": "eslint src test",
42
+ "test": "jest",
43
+ "test:watch": "npm test -- --watch",
44
+ "test:cov": "npm test -- --coverage",
45
+ "build": "rollup -c",
46
+ "pretest": "npm run build",
47
+ "prepublishOnly": "npm run clean && npm run format:check && npm run lint && npm test",
48
+ "examples:lint": "eslint examples",
49
+ "examples:test": "cross-env CI=true babel-node examples/testAll.js"
50
+ },
51
+ "dependencies": {
52
+ "@babel/runtime": "^7.9.2"
53
+ },
54
+ "devDependencies": {
55
+ "@babel/cli": "^7.8.4",
56
+ "@babel/core": "^7.9.0",
57
+ "@babel/node": "^7.8.7",
58
+ "@babel/plugin-external-helpers": "^7.8.3",
59
+ "@babel/plugin-proposal-object-rest-spread": "^7.9.5",
60
+ "@babel/plugin-transform-runtime": "^7.9.0",
61
+ "@babel/preset-env": "^7.9.5",
62
+ "@babel/preset-flow": "^7.9.0",
63
+ "@babel/preset-typescript": "^7.9.0",
64
+ "@babel/register": "^7.9.0",
65
+ "@rollup/plugin-babel": "^5.3.0",
66
+ "@rollup/plugin-node-resolve": "^7.1.3",
67
+ "@rollup/plugin-replace": "^2.3.2",
68
+ "@types/jest": "^25.2.1",
69
+ "@types/node": "^13.13.4",
70
+ "@typescript-eslint/eslint-plugin": "^2.29.0",
71
+ "@typescript-eslint/parser": "^2.29.0",
72
+ "babel-eslint": "^10.1.0",
73
+ "babel-jest": "^25.4.0",
74
+ "cross-env": "^7.0.2",
75
+ "eslint": "^6.8.0",
76
+ "eslint-config-react-app": "^5.2.1",
77
+ "eslint-import-resolver-typescript": "^2.0.0",
78
+ "eslint-plugin-flowtype": "^4.7.0",
79
+ "eslint-plugin-import": "^2.20.2",
80
+ "eslint-plugin-jsx-a11y": "^6.2.3",
81
+ "eslint-plugin-react": "^7.19.0",
82
+ "eslint-plugin-react-hooks": "^3.0.0",
83
+ "glob": "^7.1.6",
84
+ "jest": "^25.4.0",
85
+ "prettier": "^2.0.5",
86
+ "rimraf": "^3.0.2",
87
+ "rollup": "^2.7.2",
88
+ "rollup-plugin-terser": "^5.3.0",
89
+ "rollup-plugin-typescript2": "^0.27.0",
90
+ "rxjs": "^6.5.5",
91
+ "typescript": "^3.8.3",
92
+ "typings-tester": "^0.3.2"
93
+ },
94
+ "npmName": "redux",
95
+ "npmFileMap": [
96
+ {
97
+ "basePath": "/dist/",
98
+ "files": [
99
+ "*.js"
100
+ ]
101
+ }
102
+ ],
103
+ "jest": {
104
+ "testRegex": "(/test/.*\\.spec\\.[tj]s)$",
105
+ "coverageProvider": "v8"
106
+ },
107
+ "sideEffects": false
108
+ }
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorfeus-redux",
3
3
  "dependencies": {
4
- "redux": "^4.1.1"
4
+ "redux": "4.1.2"
5
5
  }
6
6
  }
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2021-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.0
19
+ version: 1.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.0
26
+ version: 1.3.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: isomorfeus-asset-manager
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.13.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.13.1
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: isomorfeus-speednode
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ">="
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 0.4.0
47
+ version: 0.4.2
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ">="
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 0.4.0
54
+ version: 0.4.2
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -262,6 +276,7 @@ files:
262
276
  - node_modules/@babel/runtime/helpers/writeOnlyError.js
263
277
  - node_modules/@babel/runtime/package.json
264
278
  - node_modules/@babel/runtime/regenerator/index.js
279
+ - node_modules/redux/CHANGELOG.md
265
280
  - node_modules/redux/LICENSE.md
266
281
  - node_modules/redux/README.md
267
282
  - node_modules/redux/dist/redux.js