view_component 2.72.0 → 2.73.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of view_component might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a53f531caa4766f1b698806911dd9f9868f5b7ccfc254e866eef1ee9d49b3a3
4
- data.tar.gz: e8e80af4b878346ac1d94a4bea73244777a48f9e649d0428c9fbb0ace1554efa
3
+ metadata.gz: e93199b5338cffab62abb54fd5f76275c2b3ddd3c1b12ef60e14ea599732f247
4
+ data.tar.gz: 432ae80f950b2248d10e3ee9743ddb786f8bfc037c84e802b5fdcab019d615ff
5
5
  SHA512:
6
- metadata.gz: b1f8c68742f0cd43a5420d9610832ea547728442cad0e2eda6f20d362d8031b23c7aabaafd3d16ea68f374b1fa72ffb27daffb789d2706d615a0d84efef8b732
7
- data.tar.gz: 0f1f4da777b8ede894577b552356366a10c0668f121e09e251873441deb69ea92f9edf8692eeb5a9f7f98f2d49bb6e4e0dd4d35327af8ff409ed4aa56929a8fd
6
+ metadata.gz: eeec5590ac13fdc2153669d34590d132e81e98083940f41fcc371379efdccb50cca11c103cf274e61f00fd1dbf98501bda36e0d9ecda08ac6462256e644cc18b
7
+ data.tar.gz: 7c222a29ebbff9e85adb164302f0083499de254a09b0af507ee37d201324bcc5bd46d5a9054eb73809a5b81b8d2edb1ab198399f78c749f5bee59257a19a1e6a
data/docs/CHANGELOG.md CHANGED
@@ -10,6 +10,32 @@ nav_order: 5
10
10
 
11
11
  ## main
12
12
 
13
+ ## 2.73.0
14
+
15
+ * Remove experimental `_after_compile` lifecycle method.
16
+
17
+ *Joel Hawksley*
18
+
19
+ * Fix capitalization of JavaScript in docs.
20
+
21
+ *Erinna Chen*
22
+
23
+ * Add PrintReleaf to list of companies using ViewComponent.
24
+
25
+ *Ry Kulp*
26
+
27
+ * Simplify CI configuration to a single build per Ruby/Rails version.
28
+
29
+ *Joel Hawksley*
30
+
31
+ * Correctly document `generate.sidecar` config option.
32
+
33
+ *Ruben Smit*
34
+
35
+ * Add Yobbers to list of companies using ViewComponent.
36
+
37
+ *Anton Prins*
38
+
13
39
  ## 2.72.0
14
40
 
15
41
  * Deprecate support for Ruby < 2.7 for removal in v3.0.0.
@@ -59,15 +59,6 @@ module ViewComponent
59
59
  self.__vc_original_view_context = view_context
60
60
  end
61
61
 
62
- # EXPERIMENTAL: This API is experimental and may be removed at any time.
63
- # Hook for allowing components to do work as part of the compilation process.
64
- #
65
- # For example, one might compile component-specific assets at this point.
66
- # @private TODO: add documentation
67
- def self._after_compile
68
- # noop
69
- end
70
-
71
62
  # @!macro [attach] deprecated_generate_mattr_accessor
72
63
  # @method generate_$1
73
64
  # @deprecated Use `#generate.$1` instead. Will be removed in v3.0.0.
@@ -90,7 +90,6 @@ module ViewComponent
90
90
  define_render_template_for
91
91
 
92
92
  component_class.build_i18n_backend
93
- component_class._after_compile
94
93
 
95
94
  CompileCache.register(component_class)
96
95
  end
@@ -19,8 +19,7 @@ module ViewComponent
19
19
  end
20
20
  options.instrumentation_enabled = false if options.instrumentation_enabled.nil?
21
21
  options.render_monkey_patch_enabled = true if options.render_monkey_patch_enabled.nil?
22
- options.show_previews = Rails.env.development? || Rails.env.test? if options.show_previews.nil?
23
- options.instrumentation_enabled = false if options.instrumentation_enabled.nil?
22
+ options.show_previews = Rails.env.development? || Rails.env.test?
24
23
 
25
24
  if options.show_previews
26
25
  # This is still necessary because when `config.view_component` is declared, `Rails.root` is unspecified.
@@ -3,7 +3,7 @@
3
3
  module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 2
6
- MINOR = 72
6
+ MINOR = 73
7
7
  PATCH = 0
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH].join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.72.0
4
+ version: 2.73.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ViewComponent Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2022-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport