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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/react_manifest/version.rb +1 -1
- data/lib/react_manifest/watcher.rb +1 -0
- data/lib/react_manifest.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03532c58c1ba02316a423460c591adf2b8caa7d6366ff89abfc5c344d1e3a8fc
|
|
4
|
+
data.tar.gz: 3ab9a668ad0196bec652c804535307f788a7b6a9abea8418bb3c206d6f6ddba6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/react_manifest.rb
CHANGED
|
@@ -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)
|