vite_plugin_legacy 0.5.3 → 1.0.0.beta.1

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: 34fbf9c8a3fcd184f907d6becb7dbc419286e1d608fe84b99006c238fd09fa8c
4
- data.tar.gz: 7b2180ce163267a02aad2900081fdb9beab19fd139d09a52780bf447b11a0f4e
3
+ metadata.gz: 92557668a956812cb7c3f58009c06aeb2b410c8538344a3c4afa0d0f014f82d8
4
+ data.tar.gz: 6bcd40d3b87621877a99776c8fcbe678d39c4649ac1baee13ad84faffa26f7ac
5
5
  SHA512:
6
- metadata.gz: 7c820841adc009ef1a4cb66aff02d6d0cc5d23ff127415b29f1c3ae908f738321b50144d0a722f1e2c47f20967646af8baec2802251cc4eeb40c90f3acb015ab
7
- data.tar.gz: ac194a4e572330849da4b27385b1ae455f621ff448c260307e2f6ad428ee4a30f53c96bbff717bd6410385c90e3870a0bd2b5426904df2c9e184d0fe05e33b1a
6
+ metadata.gz: 1b834ca1e3a9306799763d8dbfe556307f7007a49071cbba969eec08054a61ae34d0de3e6df269609fd9a97b917e37df7d019ee03a2348afab7d37d2ebeca998
7
+ data.tar.gz: 36bae941570b1a6f92832288f68490a9a4c25ccb8ca7bbaa847a7d6b60308feffa40ca9816f8c0258a321506cbf784715aaa022fd9894002b8623356c5e85324
data/CHANGELOG.md CHANGED
@@ -1,6 +1,31 @@
1
- ## [0.5.3](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.2...vite_plugin_legacy@0.5.3) (2021-03-07)
1
+ ## [0.5.6](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.5...vite_plugin_legacy@0.5.6) (2021-07-19)
2
+
3
+ ### Improvements
4
+ * Simplify implementation of legacy tag helper ([70bfac1](https://github.com/ElMassimo/vite_ruby/commit/70bfac1))
5
+
6
+
7
+
8
+ ## [0.5.5](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.4...vite_plugin_legacy@0.5.5) (2021-03-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Passing a file with extension to vite_legacy_javascript_tag ([c54f3b3](https://github.com/ElMassimo/vite_ruby/commit/c54f3b3372e8e5c0f800c5f68bffbb6d0b7990c4))
14
+
2
15
 
3
16
 
17
+ ## [0.5.4](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.3...vite_plugin_legacy@0.5.4) (2021-03-08)
18
+
19
+
20
+ ### Features
21
+
22
+ * Add `vite_legacy_typescript_tag` tag helper. ([3fb6a8b](https://github.com/ElMassimo/vite_ruby/commit/3fb6a8bcccc14c6596ecd2b30134d7001fd3bf50))
23
+
24
+
25
+
26
+ ## [0.5.3](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.2...vite_plugin_legacy@0.5.3) (2021-03-07)
27
+
28
+ - Add a bounded requirement to `vite_ruby` dependency.
4
29
 
5
30
  ## [0.5.2](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.1...vite_plugin_legacy@0.5.2) (2021-03-05)
6
31
 
@@ -7,15 +7,19 @@ module VitePluginLegacy::TagHelpers
7
7
  def vite_legacy_javascript_tag(name, asset_type: :javascript)
8
8
  return if ViteRuby.instance.dev_server_running?
9
9
 
10
- legacy_name = name.sub(/\.|$/, '-legacy\1')
11
- id = "vite-#{ legacy_name.tr(' .\'', '-') }-entry"
12
- import_tag = content_tag(:script, nomodule: true, id: id, 'data-src': vite_asset_path(legacy_name, type: asset_type)) {
13
- "System.import(document.getElementById('#{ id }').getAttribute('data-src'))".html_safe
10
+ legacy_name = name.sub(/(\..+)|$/, '-legacy\1')
11
+ import_tag = content_tag(:script, nomodule: true) {
12
+ "System.import('#{ vite_asset_path(legacy_name, type: asset_type) }')".html_safe
14
13
  }
15
14
 
16
15
  safe_join [vite_legacy_polyfill_tag, import_tag]
17
16
  end
18
17
 
18
+ # Public: Same as `vite_legacy_javascript_tag`, but for TypeScript entries.
19
+ def vite_legacy_typescript_tag(name)
20
+ vite_legacy_javascript_tag(name, asset_type: :typescript)
21
+ end
22
+
19
23
  # Internal: Renders the vite-legacy-polyfill to enable code splitting in
20
24
  # browsers that do not support modules.
21
25
  def vite_legacy_polyfill_tag
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VitePluginLegacy
4
- VERSION = '0.5.3'
4
+ VERSION = '1.0.0.beta.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_plugin_legacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 1.0.0.beta.1
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: 2021-03-07 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vite_ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: 2.0.0.beta.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: 2.0.0.beta.1
27
27
  description:
28
28
  email:
29
29
  - maximomussini@gmail.com
@@ -42,8 +42,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
42
42
  licenses:
43
43
  - MIT
44
44
  metadata:
45
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_plugin_legacy@0.5.3/vite_plugin_legacy
46
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_plugin_legacy@0.5.3/vite_plugin_legacy/CHANGELOG.md
45
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_plugin_legacy@1.0.0.beta.1/vite_plugin_legacy
46
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_plugin_legacy@1.0.0.beta.1/vite_plugin_legacy/CHANGELOG.md
47
47
  post_install_message:
48
48
  rdoc_options: []
49
49
  require_paths:
@@ -55,9 +55,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
55
  version: '2.5'
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - ">"
59
59
  - !ruby/object:Gem::Version
60
- version: '0'
60
+ version: 1.3.1
61
61
  requirements: []
62
62
  rubygems_version: 3.1.4
63
63
  signing_key: