vite_rails 3.0.15 → 3.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0826edafe9697708d9878f604b86a8abccabfcc3dfa0081cd2b0cc63c78bc83
4
- data.tar.gz: 74678206866f8d760ee7e3f3058f32ffa084b3bbfb090c0109ffa0420c225340
3
+ metadata.gz: bb3f141b086aee8a0b40651b824fc6760d47af516037bca0ae91ef8aa3481c47
4
+ data.tar.gz: c19d6cbb3a4062421691501853f26b4b6c344b0ab9a6502be6ed4504a2b0c33d
5
5
  SHA512:
6
- metadata.gz: 5c15982cec0cf83a71f481fe4a7c3d3d5b461216c2daa32409f9e3e2b09c20df6ee9f7952b9912aa251c65741c1593d1d98184059bccc3b87a8d42424ca482b7
7
- data.tar.gz: d30bf47565e7fa8d7fd035072fc7315b3f1d668e3cbe3ff072b1de00a47b22885a931b0ad33ef15bf8a2b4c225c290d1cdd8a65e0484a42ccd2d012fe53bda07
6
+ metadata.gz: d26931a1bbe46f2c11ab59d098a1f59efdacbb0b74999812d2e13858f557d04621d5bb2903f8894ecfea601d281d35e90559254bb10e834f3edfed2c3f41dbcc
7
+ data.tar.gz: a6335c2c8d1aab0b9e5eb06eb19c47c7c5f332321319ac8310177a1e0ccbfd319286d89ba02d92568d5ad083ada51ac28711f048b53f113fa870a9c2e207b2d3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.0.16](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.15...vite_rails@3.0.16) (2023-09-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * emit a single early hint per entrypoint in `vite_preload_tag` ([#402](https://github.com/ElMassimo/vite_ruby/issues/402)) ([3f9a60b](https://github.com/ElMassimo/vite_ruby/commit/3f9a60b4bb28858b8460b5fc302ad352a03ba002))
7
+
8
+
9
+
1
10
  ## [3.0.15](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.14...vite_rails@3.0.15) (2023-06-19)
2
11
 
3
12
 
@@ -88,9 +88,14 @@ private
88
88
 
89
89
  # Internal: Renders a modulepreload link tag.
90
90
  def vite_preload_tag(*sources, crossorigin:, **options)
91
- sources.map { |source|
92
- href = path_to_asset(source)
93
- try(:request).try(:send_early_hints, 'Link' => %(<#{ href }>; rel=modulepreload; as=script; crossorigin=#{ crossorigin }))
91
+ asset_paths = sources.map { |source| path_to_asset(source) }
92
+ try(:request).try(
93
+ :send_early_hints,
94
+ 'Link' => asset_paths.map { |href|
95
+ %(<#{ href }>; rel=modulepreload; as=script; crossorigin=#{ crossorigin })
96
+ }.join("\n"),
97
+ )
98
+ asset_paths.map { |href|
94
99
  tag.link(rel: 'modulepreload', href: href, as: 'script', crossorigin: crossorigin, **options)
95
100
  }.join("\n").html_safe
96
101
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '3.0.15'
4
+ VERSION = '3.0.16'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.15
4
+ version: 3.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -88,8 +88,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
88
88
  licenses:
89
89
  - MIT
90
90
  metadata:
91
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.15/vite_rails
92
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.15/vite_rails/CHANGELOG.md
91
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.16/vite_rails
92
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.16/vite_rails/CHANGELOG.md
93
93
  post_install_message:
94
94
  rdoc_options: []
95
95
  require_paths: