isomorfeus-preact 10.6.6 → 10.6.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: 4633f9c0418b61fb8ab950a7f46b1c5d0ab65d0bd826e9129b426b1f537b3d82
4
- data.tar.gz: d30c7e432eeb81dc0f5f7aa7f65a6d537ced0753d85a360eec74fbad4f8582fd
3
+ metadata.gz: 678bb5948b2fb7b0174bf957048f66f7c16662841e9fa51b0d69e90f8c6425b4
4
+ data.tar.gz: 7b68f3dfd52944f74dd8f2d2e19f5fad77743d0db6f142ad433ab3f050777876
5
5
  SHA512:
6
- metadata.gz: 7fb923fed0c0d376a1963402dc349a602511499ef6879d943adbc1a73d8704adb90bc9b2d9435e4404094db706113a1149ff02b86750c4e1d2b29f8331caf5b4
7
- data.tar.gz: a1f2e1bc21c2ee699723639be60b77c7d99c197d87a29e3c99dd989a35a284490e16512e90092494a19779d0b7b85a5bcc4358a16eadd02fd929ca6c2f48faa5
6
+ metadata.gz: 9b8060b615a763e967125dc5b90b9659ebcda3d84858b3d51c2c3e233c0fd2eb2490260a766169b6ec1b38bb4e889609410f4a7cae6011fbf0813064e7e502b2
7
+ data.tar.gz: 8700117f152176dda74bdb970d84ca946baafd53d68b3c4d2f7610e30f06aa32196754e5de0624da4f08be03415053e156421f033f6ffd6142ca957f03b1884b
data/README.md CHANGED
@@ -22,36 +22,36 @@ apply, but in the Ruby way, see:
22
22
  - [https://preactjs.com/guide/v10/getting-started](https://preactjs.com/guide/v10/getting-started)
23
23
 
24
24
  Component Types:
25
- - [Class Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/class_component.md)
26
- - [Function and Memo Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/function_component.md)
27
- - [Lucid App, Lucid Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/lucid_component.md)
28
- - [Lucid Func (for use with Hooks)](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/lucid_func_component.md)
29
- - [Preact Javascript Components and Preact Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/javascript_component.md)
25
+ - [Class Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/class_component.md)
26
+ - [Function and Memo Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/function_component.md)
27
+ - [Lucid App, Lucid Component](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/lucid_component.md)
28
+ - [Lucid Func (for use with Hooks)](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/lucid_func_component.md)
29
+ - [Preact Javascript Components and Preact Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/javascript_component.md)
30
30
 
31
31
  Which component to use?
32
32
  - Usually LucidApp and LucidComponent.
33
33
 
34
34
  Specific to Class, Lucid and LucidMaterial Components:
35
- - [Events](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/events.md)
36
- - [Lifecycle Callbacks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/lifecycle_callbacks.md)
37
- - [Props](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/props.md)
38
- - [State](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/state.md)
35
+ - [Events](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/events.md)
36
+ - [Lifecycle Callbacks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/lifecycle_callbacks.md)
37
+ - [Props](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/props.md)
38
+ - [State](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/state.md)
39
39
 
40
40
  For all Components:
41
- - [Accessibility](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/accessibility.md)
42
- - [Render Blocks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/render_blocks.md)
43
- - [Rendering HTML or SVG Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/rendering_elements.md)
41
+ - [Accessibility](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/accessibility.md)
42
+ - [Render Blocks](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/render_blocks.md)
43
+ - [Rendering HTML or SVG Elements](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/rendering_elements.md)
44
44
 
45
45
  Special Preact Features:
46
- - [Context](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/context.md)
47
- - [Fragments](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/fragments.md)
48
- - [Refs](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/refs.md)
46
+ - [Context](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/context.md)
47
+ - [Fragments](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/fragments.md)
48
+ - [Refs](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/refs.md)
49
49
 
50
50
  Other Features:
51
- - [Hot Module Reloading](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/hot_module_reloading.md)
52
- - [Server Side Rendering](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/server_side_rendering.md)
53
- - [Using Wouter as Router](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/wouter.md)
54
- - [Isomorfeus Helpers](https://github.com/isomorfeus/isomorfeus-preact/blob/master/ruby/docs/isomorfeus_helpers.md)
51
+ - [Hot Module Reloading](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/hot_module_reloading.md)
52
+ - [Server Side Rendering](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/server_side_rendering.md)
53
+ - [Using Wouter as Router](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/wouter.md)
54
+ - [Isomorfeus Helpers](https://github.com/isomorfeus/isomorfeus-preact/blob/master/docs/isomorfeus_helpers.md)
55
55
 
56
56
  ### Development Tools
57
57
  The Preact Devtools allow for analyzing, debugging and profiling components. A very helpful toolset and working very nice with isomorfeus-preact:
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.6'
2
+ VERSION = '10.6.7'
3
3
  end
data/lib/preact.rb CHANGED
@@ -63,7 +63,7 @@ module Preact
63
63
  };
64
64
 
65
65
  self.native_to_ruby_event = function(event) {
66
- if (event.hasOwnProperty('target')) { return #{::Browser::Event.new(`event`)}; }
66
+ if ('target' in event) { return #{::Browser::Event.new(`event`)}; }
67
67
  else if (Array.isArray(event)) { return event; }
68
68
  else { return Opal.Hash.$new(event); }
69
69
  };
@@ -219,7 +219,7 @@ module Preact
219
219
  if (component.__c) { self.deep_force_update(component.__c); }
220
220
  else if (component.base) { self.update_components_from_dom(component.base); }
221
221
  };
222
-
222
+
223
223
  self.update_components_from_dom = function(node, fn) {
224
224
  let children = node.childNodes;
225
225
  for (let i=children && children.length; i--;) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-preact
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.6.6
4
+ version: 10.6.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: 2022-01-15 00:00:00.000000000 Z
11
+ date: 2022-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.14.4
89
+ version: 0.14.5
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.14.4
96
+ version: 0.14.5
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: isomorfeus-redux
99
99
  requirement: !ruby/object:Gem::Requirement