isomorfeus-react 16.12.0 → 16.12.1

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: 58043bfa06f9868b4f38d21df8e8fcc24e65c976c5b1ccb73394654bdb2eee5d
4
- data.tar.gz: 9963861ee02870d4cd95400f15630584891b0f50dbd0757723ede1aeb97b577f
3
+ metadata.gz: 22fa45d257e25f237d954259c9d66fca99d450042826751040cece604e9e7aa1
4
+ data.tar.gz: 2ef09e16a227fbb1af0a40b5cbc3dd584a32c4bfe1f1057fb803451880237dfa
5
5
  SHA512:
6
- metadata.gz: 03df39b6b2ca9e8f0f8d288e8fa88caf93fd2fb01559d7d5d034939d9c3ceaf43d752db7497e30e609f8200207066bf27d9ba8534037345b0eb47d1d14f9a649
7
- data.tar.gz: e9a70c65e05158fd364137cafb64f7ed18620203a807cb47bb189a2b2f1d212a39f51aeddf85eeaf1c37b8db62550d0b338a82a97e493f6e4045042a0a3220e5
6
+ metadata.gz: 6adbdf97368ff21022a140723919722c0dd6263990c3ceae8072ca14f4411eac6014d1e6df3aedaa07aa8183e81c6b70b71e03465b1e9b2263f06907530501b3
7
+ data.tar.gz: ef33dc1ad3b0f3f10bfcde9ca9996462fcfd168acd29ea78da99de3e4b13db7d9888ca309c820bade3be9da2bff6c7aa33080fec30c7c685de9f28d5c2d2aa0f
data/README.md CHANGED
@@ -9,13 +9,13 @@ At the [Isomorfeus Framework Project](http://isomorfeus.com)
9
9
  isomorfeus-react version follows the React version which features and API it implements.
10
10
 
11
11
  ### React
12
- Isomorfeus-react 16.11.x implements features and the API of React 16.11 and should be used with React 16.11
12
+ Isomorfeus-react 16.12.x implements features and the API of React 16.12 and should be used with React 16.12
13
13
 
14
14
  ### Preact
15
- isomorfeus-react works with preact version 10.0.x.
15
+ isomorfeus-react works with preact version 10.1.x.
16
16
 
17
17
  ### Nerv
18
- isomorfeus-react works in general with nervjs 1.4.x. with some issues:
18
+ isomorfeus-react works in general with nervjs 1.5.x. with some issues:
19
19
  - Server Side Rendering does currently not work at all.
20
20
  - Some specs with respect to callbacks (component_will_unmount) and styles fail.
21
21
 
@@ -37,6 +37,7 @@ Component Types:
37
37
 
38
38
  Which component to use?
39
39
  - Usually LucidApp and LucidComponent along with some imported javascript components.
40
+ - For MaterialUI LucidMaterial::App and LucidMaterial::Component along with some imported javascript components.
40
41
 
41
42
  Specific to Class, Pure, Lucid and LucidMaterial Components:
42
43
  - [Events](https://github.com/isomorfeus/isomorfeus-react/blob/master/ruby/docs/events.md)
@@ -12,6 +12,11 @@ module Isomorfeus
12
12
  alias_method :has, :is
13
13
  alias_method :with, :is
14
14
 
15
+ def allow_nil
16
+ @validation_hash[:allow_nil] = true
17
+ self
18
+ end
19
+
15
20
  def cast
16
21
  @validation_hash[:cast] = true
17
22
  self
@@ -52,6 +52,7 @@ module Isomorfeus
52
52
  end
53
53
 
54
54
  def type!
55
+ return if @o[:allow_nil] && @v.nil?
55
56
  if @o.key?(:class)
56
57
  raise "#{@c}: #{@p} class not #{@o[:class]}" unless @v.class == @o[:class]
57
58
  elsif @o.key?(:is_a)
@@ -128,4 +129,4 @@ module Isomorfeus
128
129
  end
129
130
  end
130
131
  end
131
- end
132
+ end
data/lib/react/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = '16.12.0'
2
+ VERSION = '16.12.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.12.0
4
+ version: 16.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-27 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -282,7 +282,7 @@ licenses:
282
282
  metadata: {}
283
283
  post_install_message: |2+
284
284
 
285
- isomorfeus-react 16.12.0:
285
+ isomorfeus-react 16.12.1:
286
286
  Major improvement:
287
287
  Using Zeitwerk and Opal-Zeitwerk for autoloading, may break existing installations which use opal-autoloader.
288
288
  - existing installations may lock isomorfeus-react to 16.11.1 or upgrade to isomorfeus 1.0.0.zeta6