react-manifest-rails 0.2.32 → 0.2.33

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: cfebc711293e26ed0feb2d97ba630782e2d2de8592d4e0d4b3392c54ecda6f5a
4
- data.tar.gz: 4501274e0565b053dbdf110f87a747e631811e8a5b4d9b248e76e28a6b4a54ea
3
+ metadata.gz: 03532c58c1ba02316a423460c591adf2b8caa7d6366ff89abfc5c344d1e3a8fc
4
+ data.tar.gz: 3ab9a668ad0196bec652c804535307f788a7b6a9abea8418bb3c206d6f6ddba6
5
5
  SHA512:
6
- metadata.gz: 358aa7190d5e0f146b1a9fce2065b41890a23bd8b9b6c42855c895905bf8af6567bb6fec372f8b2bd2363cfd7c68b5a5cd7a535fe8632474be60e5bd8d91b5fa
7
- data.tar.gz: bb655465c8ce7a9eb63ad3dde98cbb6f354a1d1eaef8efd948a4b11dc0657ef673c943fb2ca8549e0fb672f7c7abec8f9b4c3e312a77c26bdb870ea4807622b5
6
+ metadata.gz: 6ff77f4444719e08a35032a2b07bc2d6e0621d49a5db73e2b77880bbddd0172f8c3f2aea1b38b3ce40ff7feaad8d59a141fa7edabe0ce8430091f89656904a42
7
+ data.tar.gz: d683a77dbcb098e2f5b08c74b1b36dac9d53e56587bf6ec7e958b5f0af25701d98fb9f70a305ceeff2ee0e2656bb81112fddf60cb61f33f21029bf6b445b8291
data/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.33] - 2026-07-01
11
+
12
+ ### Fixed
13
+ - `resolve_bundle_for_component`/`resolve_bundles_for_component(_direct)` (used by the `react_component` view helper) now pick up new controllers and components added while a development server is still running. Their `component_maps` cache is keyed only on config values, not on what's on disk, so once anything primed the cache (any earlier `react_component` call in the process), a controller dir or component added afterward was invisible until the process restarted — `react_component` would silently render with no bundle injected. The file watcher now invalidates this cache on every file change, the same way it already invalidates the scanner's per-file symbol cache.
14
+
10
15
  ## [0.2.32] - 2026-07-01
11
16
 
12
17
  ### Added
@@ -1,3 +1,3 @@
1
1
  module ReactManifest
2
- VERSION = "0.2.32".freeze
2
+ VERSION = "0.2.33".freeze
3
3
  end
@@ -91,6 +91,7 @@ module ReactManifest
91
91
  end
92
92
 
93
93
  (modified + added + removed).each { |f| Scanner.invalidate(f) }
94
+ ReactManifest.invalidate_component_maps!
94
95
  schedule_regeneration(config)
95
96
  end
96
97
 
@@ -35,6 +35,15 @@ module ReactManifest
35
35
  Scanner.clear_cache!
36
36
  end
37
37
 
38
+ # Drop the cached component-symbol -> bundle map used by
39
+ # resolve_bundle_for_component / resolve_bundles_for_component(_direct).
40
+ # Unlike reset!, this does NOT touch the current Configuration — safe to
41
+ # call whenever ux/ files change (e.g. from the file watcher) so newly
42
+ # added controllers/components are picked up without losing app config.
43
+ def invalidate_component_maps!
44
+ @component_maps_cache = nil
45
+ end
46
+
38
47
  # Returns the ordered list of bundle logical names for a given controller.
39
48
  # Used by the react_bundle_tag view helper.
40
49
  def resolve_bundles(ctrl_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react-manifest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.32
4
+ version: 0.2.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Noonan