isomorfeus-preact 10.6.31 → 10.6.32
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 +4 -4
- data/README.md +1 -1
- data/lib/isomorfeus/preact_view_helper.rb +9 -7
- data/lib/preact/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75663e1db3afaf4d60c6a1cb2e85544bc96b09fb9a9cee116aa0b055463cf611
|
|
4
|
+
data.tar.gz: 8b08d796a5bee25b087932f6a06f1a54dc4a7afefd883b5c7d561b04a07c1115
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0e0a80f63b218960ba579a780bd8a1d2993f168611cd4a949899109b1ab7c32ec187d2b56682b109d6830119d23c9944698d781e1d6ae8c20b1e44b4ff57916
|
|
7
|
+
data.tar.gz: 895e40dc74ad772a9b3a32b43d7a707b7a2698f47aa66ae012c71eb245be970e94671c7ea9ff892791b29533587bc329f58df68738d987e68e9a1a9ab054611d
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Isomorfeus Preact<br/>
|
|
|
7
7
|
Develop Preact components for Opal Ruby along with very easy to use and advanced Preact-Redux Components.
|
|
8
8
|
|
|
9
9
|
## Community and Support
|
|
10
|
-
At the [Isomorfeus Framework Project](
|
|
10
|
+
At the [Isomorfeus Framework Project](https://isomorfeus.com)
|
|
11
11
|
|
|
12
12
|
## Versioning and Compatibility
|
|
13
13
|
isomorfeus-preact version follows the Preact version which features and API it implements.
|
|
@@ -60,7 +60,9 @@ module Isomorfeus
|
|
|
60
60
|
global.Exception = false;
|
|
61
61
|
global.IsomorfeusSessionId = '#{Thread.current[:isomorfeus_session_id]}';
|
|
62
62
|
global.Opal.Isomorfeus['$env=']('#{Isomorfeus.env}');
|
|
63
|
-
if (typeof global.Opal.Isomorfeus
|
|
63
|
+
if (typeof global.Opal.Isomorfeus["$current_locale="] === 'function') {
|
|
64
|
+
global.Opal.Isomorfeus["$current_locale="]('#{props[:locale]}');
|
|
65
|
+
} else if (typeof global.Opal.Isomorfeus["$negotiated_locale="] === 'function') { // remove later on
|
|
64
66
|
global.Opal.Isomorfeus["$negotiated_locale="]('#{props[:locale]}');
|
|
65
67
|
}
|
|
66
68
|
global.Opal.Isomorfeus['$force_init!']();
|
|
@@ -124,11 +126,11 @@ module Isomorfeus
|
|
|
124
126
|
let rendered_tree;
|
|
125
127
|
let ssr_styles;
|
|
126
128
|
let component;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
try {
|
|
130
|
+
rendered_tree = global.Opal.Isomorfeus.TopLevel.$render_component_to_string('#{component_name}', #{Oj.dump(props, mode: :strict)});
|
|
131
|
+
} catch (e) {
|
|
132
|
+
global.Exception = e;
|
|
133
|
+
}
|
|
132
134
|
let application_state = global.Opal.Isomorfeus.store.native.getState();
|
|
133
135
|
let transport_busy = false;
|
|
134
136
|
if (typeof global.Opal.Isomorfeus.Transport !== 'undefined' && global.Opal.Isomorfeus.Transport["$busy?"]()) { transport_busy = true; }
|
|
@@ -171,7 +173,7 @@ module Isomorfeus
|
|
|
171
173
|
if Isomorfeus.server_side_rendering
|
|
172
174
|
render_result = "<script type='application/javascript'>\nServerSideRenderingStateJSON = #{Oj.dump(application_state, mode: :strict)}\n</script>\n" << render_result
|
|
173
175
|
end
|
|
174
|
-
STDERR.puts "PreactViewHelper Server Side Rendering rendered #{pass} passes and took ~#{Time.now - start_time}
|
|
176
|
+
STDERR.puts "PreactViewHelper Server Side Rendering rendered #{pass} passes and took ~#{((Time.now - start_time)*1000).to_i}ms" if Isomorfeus.development? && !skip_ssr
|
|
175
177
|
render_result
|
|
176
178
|
end
|
|
177
179
|
|
data/lib/preact/version.rb
CHANGED
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.
|
|
4
|
+
version: 10.6.32
|
|
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-02-
|
|
11
|
+
date: 2022-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -86,42 +86,42 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.14.
|
|
89
|
+
version: 0.14.9
|
|
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.
|
|
96
|
+
version: 0.14.9
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: isomorfeus-redux
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 4.1.
|
|
103
|
+
version: 4.1.15
|
|
104
104
|
type: :runtime
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 4.1.
|
|
110
|
+
version: 4.1.15
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: isomorfeus-speednode
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 0.4.
|
|
117
|
+
version: 0.4.9
|
|
118
118
|
type: :runtime
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 0.4.
|
|
124
|
+
version: 0.4.9
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: dalli
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -170,14 +170,14 @@ dependencies:
|
|
|
170
170
|
requirements:
|
|
171
171
|
- - "~>"
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
|
-
version: 0.6.
|
|
173
|
+
version: 0.6.5
|
|
174
174
|
type: :development
|
|
175
175
|
prerelease: false
|
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
177
|
requirements:
|
|
178
178
|
- - "~>"
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
|
-
version: 0.6.
|
|
180
|
+
version: 0.6.5
|
|
181
181
|
- !ruby/object:Gem::Dependency
|
|
182
182
|
name: rake
|
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -449,7 +449,7 @@ files:
|
|
|
449
449
|
- node_modules/wouter-preact/use-location.d.ts
|
|
450
450
|
- node_modules/wouter-preact/use-location.js
|
|
451
451
|
- package.json
|
|
452
|
-
homepage:
|
|
452
|
+
homepage: https://isomorfeus.com
|
|
453
453
|
licenses:
|
|
454
454
|
- MIT
|
|
455
455
|
metadata:
|