From 18cc7299278aba7ce180f7bf8145b7a746cb2c59 Mon Sep 17 00:00:00 2001 From: OKURA Masafumi Date: Thu, 30 Jun 2022 01:59:55 +0900 Subject: [PATCH 1/6] chore: add missing backquote in comment (#223) --- vite_ruby/lib/vite_ruby/manifest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite_ruby/lib/vite_ruby/manifest.rb b/vite_ruby/lib/vite_ruby/manifest.rb index 5c5877af..daad7c21 100644 --- a/vite_ruby/lib/vite_ruby/manifest.rb +++ b/vite_ruby/lib/vite_ruby/manifest.rb @@ -7,7 +7,7 @@ # lookup_entrypoint('calendar', type: :javascript) # => { "file" => "/vite/assets/calendar-1016838bab065ae1e314.js", "imports" => [] } # -# NOTE: Using "autoBuild": true` in `config/vite.json` file will trigger a build +# NOTE: Using `"autoBuild": true` in `config/vite.json` file will trigger a build # on demand as needed, before performing any lookup. class ViteRuby::Manifest def initialize(vite_ruby) From e4f4b7540ef34296f1a8a4d8f1d2838549ee8460 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Sat, 9 Jul 2022 15:09:58 -0700 Subject: [PATCH 2/6] fix: npm deprecation warning on assets:precompile (#226) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #220 The vite_ruby rake file was setting `NPM_CONFIG_PRODUCTION=false`, which is deprecated. In recent versions of npm this causes a warning to be printed to the console. ``` npm WARN config production Use `--omit=dev` instead. ``` Fix by detecting the npm version and using `NPM_CONFIG_INCLUDE=dev` instead of `NPM_CONFIG_PRODUCTION=false` for npm 7+. Ref: https://docs.npmjs.com/cli/v7/using-npm/config#include Before: ``` $ bundle exec rake assets:precompile npm WARN config production Use `--omit=dev` instead. npm WARN config production Use `--omit=dev` instead. yarn install v1.22.18 [1/4] 🔍 Resolving packages... success Already up-to-date. ✨ Done in 0.08s. Skipping vite build. Watched files have not changed since the last build at 2022-07-09 13:09:30 ``` After: ``` $ bundle exec rake assets:precompile yarn install v1.22.18 [1/4] 🔍 Resolving packages... success Already up-to-date. ✨ Done in 0.09s. Skipping vite build. Watched files have not changed since the last build at 2022-07-09 13:09:30 ``` --- vite_ruby/lib/tasks/vite.rake | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vite_ruby/lib/tasks/vite.rake b/vite_ruby/lib/tasks/vite.rake index 2394ad37..9cc5ac84 100644 --- a/vite_ruby/lib/tasks/vite.rake +++ b/vite_ruby/lib/tasks/vite.rake @@ -4,6 +4,8 @@ $stdout.sync = true require 'rake' +legacy_npm_version = `npm --version`.to_i < 7 rescue false + namespace :vite do task :binstubs do ViteRuby.commands.install_binstubs @@ -42,8 +44,7 @@ namespace :vite do desc 'Ensure build dependencies like Vite are installed before bundling' task :install_dependencies do - legacy_flag = `npm --version`.to_i < 7 rescue false - cmd = legacy_flag ? 'npx ci --yes' : 'npx --yes ci' + cmd = legacy_npm_version ? 'npx ci --yes' : 'npx --yes ci' system({ 'NODE_ENV' => 'development' }, cmd) end @@ -82,6 +83,10 @@ end # Any prerequisite task that installs packages should also install build dependencies. if ARGV.include?('assets:precompile') - ENV['NPM_CONFIG_PRODUCTION'] = 'false' + if legacy_npm_version + ENV['NPM_CONFIG_PRODUCTION'] = 'false' + else + ENV['NPM_CONFIG_INCLUDE'] = 'dev' + end ENV['YARN_PRODUCTION'] = 'false' end From 72f77776ec266113ba6c9e330fdd31875ed542ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Mussini?= Date: Wed, 13 Jul 2022 13:21:44 -0300 Subject: [PATCH 3/6] chore: update CI and stop testing in 5.2 (#230) * chore: cache npm deps --- .github/workflows/js.yml | 19 ++++++------- .github/workflows/rubocop.yml | 22 +++------------ .github/workflows/ruby.yml | 50 ++++++--------------------------- .rubocop.yml | 4 +++ gemfiles/Gemfile-rails.7.0.x | 7 +++++ vite-plugin-ruby/pnpm-lock.yaml | 44 ++++++++++++++++++++--------- 6 files changed, 64 insertions(+), 82 deletions(-) create mode 100644 gemfiles/Gemfile-rails.7.0.x diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index 3636eeaf..e60bf211 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -9,24 +9,23 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node: [12.x] + node: [14] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 + - uses: pnpm/action-setup@v2.2.2 with: - node-version: ${{ matrix.node }} + version: 7.4.1 - - uses: pnpm/action-setup@v1.2.1 + - uses: actions/setup-node@v3 with: - version: 5.13.6 - run_install: | - - cwd: vite-plugin-ruby - - recursive: false + cache: 'pnpm' + node-version: ${{ matrix.node }} + + - run: pnpm -C vite-plugin-ruby install --frozen-lockfile - name: Build run: pnpm -C vite-plugin-ruby build diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index e17ff5b6..41458b83 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -6,9 +6,6 @@ jobs: build: name: Rubocop runs-on: ${{ matrix.os }} - env: - BUNDLE_JOBS: 4 - BUNDLE_RETRY: 3 strategy: matrix: os: [ubuntu-latest] @@ -17,23 +14,12 @@ jobs: ] steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: /home/runner/bundle - key: bundle-use-ruby-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - bundle-use-ruby-gems- + - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + bundler-cache: true - - name: Bundle install - run: | - gem install bundler -v 2.1.4 - bundle config path /home/runner/bundle - bundle install - - - name: Ruby linter - run: bundle exec rubocop + - name: Rubocop + run: bin/rubocop diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 95ed1c7f..596fec1b 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -7,70 +7,38 @@ jobs: name: build runs-on: ${{ matrix.os }} continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }} - env: - BUNDLE_JOBS: 4 - BUNDLE_RETRY: 3 strategy: fail-fast: false matrix: os: [ubuntu-latest] - bundler: ["2.1.4"] ruby: [ - "2.5", "2.7", "3.0", + "3.1", ] gemfile: [ - "gemfiles/Gemfile-rails.5.2.x", "gemfiles/Gemfile-rails.6.0.x", - "gemfiles/Gemfile-rails.6.1.x" + "gemfiles/Gemfile-rails.6.1.x", + "gemfiles/Gemfile-rails.7.0.x" ] experimental: [false] - exclude: - - ruby: "2.5" - gemfile: gemfiles/Gemfile-rails-edge - - ruby: "3.0" - gemfile: gemfiles/Gemfile-rails.5.2.x include: - - ruby: "2.4" - bundler: "1.17.3" - os: ubuntu-latest - gemfile: gemfiles/Gemfile-rails.4.2.x - experimental: true - - ruby: "2.7" - bundler: "2.1.4" - os: ubuntu-latest - gemfile: gemfiles/Gemfile-rails-edge - experimental: true - ruby: "3.1" - bundler: "2.1.4" os: ubuntu-latest gemfile: gemfiles/Gemfile-rails-edge experimental: true steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: /home/runner/bundle - key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }} - restore-keys: | - bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems- + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: '15' + node-version: '16' - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - - name: Bundle install - run: | - gem install bundler -v ${{ matrix.bundler }} - bundle _${{ matrix.bundler }}_ config path /home/runner/bundle - bundle _${{ matrix.bundler }}_ config --global gemfile ${{ matrix.gemfile }} - bundle _${{ matrix.bundler }}_ install # --jobs 4 --retry 3 + bundler-cache: true - name: Setup Code Climate test-reporter run: | @@ -78,8 +46,8 @@ jobs: chmod +x ./cc-test-reporter ./cc-test-reporter before-build - - name: Ruby specs - run: bundle _${{ matrix.bundler }}_ exec rake test + - name: Ruby Tests + run: bin/rake test - name: Upload code coverage to Code Climate if: ${{ contains(github.ref, 'main') }} diff --git a/.rubocop.yml b/.rubocop.yml index 5511d671..ae1a8aeb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,6 +4,10 @@ require: - rubocop-performance - rubocop-minitest +inherit_mode: + merge: + - Exclude + AllCops: Exclude: - "node_modules/**/*" diff --git a/gemfiles/Gemfile-rails.7.0.x b/gemfiles/Gemfile-rails.7.0.x new file mode 100644 index 00000000..2e2c2fc1 --- /dev/null +++ b/gemfiles/Gemfile-rails.7.0.x @@ -0,0 +1,7 @@ +source 'https://rubygems.org' + +gem 'rails', '~> 7.0.3' + +gemspec path: '../vite_ruby' +gemspec path: '../vite_rails' +gemspec path: '../vite_plugin_legacy' diff --git a/vite-plugin-ruby/pnpm-lock.yaml b/vite-plugin-ruby/pnpm-lock.yaml index 40b932f3..97da6c67 100644 --- a/vite-plugin-ruby/pnpm-lock.yaml +++ b/vite-plugin-ruby/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: 5.3 +lockfileVersion: 5.4 importers: @@ -42,8 +42,8 @@ importers: vite-plugin-ruby: workspace:* vue: ^3.2.29 devDependencies: - '@inertiajs/inertia': 0.11.0_debug@4.3.3 - '@inertiajs/inertia-vue3': 0.6.0_e3ffed2aa416bc887d70ced6f00a75a8 + '@inertiajs/inertia': 0.11.0 + '@inertiajs/inertia-vue3': 0.6.0_4p762kvec26iq7lqz3lpactvva '@inertiajs/server': 0.1.0_@inertiajs+inertia@0.11.0 '@vitejs/plugin-legacy': 1.6.4_vite@2.8.6 '@vitejs/plugin-vue': 2.1.0_vite@2.8.6+vue@3.2.29 @@ -75,6 +75,11 @@ packages: engines: {node: '>=6.9.0'} dev: true + /@babel/helper-validator-identifier/7.18.6: + resolution: {integrity: sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==} + engines: {node: '>=6.9.0'} + dev: true + /@babel/highlight/7.16.10: resolution: {integrity: sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==} engines: {node: '>=6.9.0'} @@ -88,6 +93,8 @@ packages: resolution: {integrity: sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw==} engines: {node: '>=6.0.0'} hasBin: true + dependencies: + '@babel/types': 7.18.8 dev: true /@babel/standalone/7.17.0: @@ -95,27 +102,35 @@ packages: engines: {node: '>=6.9.0'} dev: true + /@babel/types/7.18.8: + resolution: {integrity: sha512-qwpdsmraq0aJ3osLJRApsc2ouSJCdnMeZwB0DhbtHAtRpZNZCdlbRnHIgcRKzdE1g0iOGg644fzjOBcdOz9cPw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.18.6 + to-fast-properties: 2.0.0 + dev: true + /@hutson/parse-repository-url/3.0.2: resolution: {integrity: sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==} engines: {node: '>=6.9.0'} dev: true - /@inertiajs/inertia-vue3/0.6.0_e3ffed2aa416bc887d70ced6f00a75a8: + /@inertiajs/inertia-vue3/0.6.0_4p762kvec26iq7lqz3lpactvva: resolution: {integrity: sha512-qhPBtd/G0VS7vVVbYw1rrqKB6JqRusxqt+5ec2GLmK6t7fTlBBnZ3KsakmGZLSM1m1OGkNcfn4ifmCk3zfA8RQ==} peerDependencies: '@inertiajs/inertia': ^0.11.0 vue: ^3.0.0 dependencies: - '@inertiajs/inertia': 0.11.0_debug@4.3.3 + '@inertiajs/inertia': 0.11.0 lodash.clonedeep: 4.5.0 lodash.isequal: 4.5.0 vue: 3.2.29 dev: true - /@inertiajs/inertia/0.11.0_debug@4.3.3: + /@inertiajs/inertia/0.11.0: resolution: {integrity: sha512-QF4hctgFC+B/t/WClCwfOla+WoDE9iTltQJ0u+DCfjl0KdGoCvIxYiNtuH8h8oM+RQMb8orjbpW3pHapjYI5Vw==} dependencies: - axios: 0.21.4_debug@4.3.3 + axios: 0.21.4 deepmerge: 4.2.2 qs: 6.10.3 transitivePeerDependencies: @@ -127,7 +142,7 @@ packages: peerDependencies: '@inertiajs/inertia': ^0.11.0 dependencies: - '@inertiajs/inertia': 0.11.0_debug@4.3.3 + '@inertiajs/inertia': 0.11.0 dev: true /@nodelib/fs.scandir/2.1.5: @@ -386,10 +401,10 @@ packages: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true - /axios/0.21.4_debug@4.3.3: + /axios/0.21.4: resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==} dependencies: - follow-redirects: 1.15.0_debug@4.3.3 + follow-redirects: 1.15.0 transitivePeerDependencies: - debug dev: true @@ -1317,7 +1332,7 @@ packages: path-exists: 4.0.0 dev: true - /follow-redirects/1.15.0_debug@4.3.3: + /follow-redirects/1.15.0: resolution: {integrity: sha512-aExlJShTV4qOUOL7yF1U5tvLCB0xQuudbf6toyYA0E/acBNw71mvjFTnLaRp50aQaYocMR0a/RMMBIHeZnGyjQ==} engines: {node: '>=4.0'} peerDependencies: @@ -1325,8 +1340,6 @@ packages: peerDependenciesMeta: debug: optional: true - dependencies: - debug: 4.3.3 dev: true /fs-access/1.0.1: @@ -2440,6 +2453,11 @@ packages: engines: {node: '>=14.0.0'} dev: true + /to-fast-properties/2.0.0: + resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} + engines: {node: '>=4'} + dev: true + /to-regex-range/5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} From c0438b4bcf8236744c9d4a3de98b5fb9505e7ba9 Mon Sep 17 00:00:00 2001 From: Stefan Wienert Date: Wed, 13 Jul 2022 18:26:49 +0200 Subject: [PATCH 4/6] docs: updated migration guide with aliases, stimulus-helpers (#229) --- docs/src/guide/migration.md | 44 +++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/docs/src/guide/migration.md b/docs/src/guide/migration.md index 59ded5c2..82ba202a 100644 --- a/docs/src/guide/migration.md +++ b/docs/src/guide/migration.md @@ -25,6 +25,7 @@ [resolve.alias]: https://vitejs.dev/config/#resolve-alias [sprockets]: https://github.com/rails/sprockets-rails [sprockets example]: https://github.com/ElMassimo/vite_ruby/pull/165 +[stimulus-vite-helpers]: https://github.com/ElMassimo/stimulus-vite-helpers # Migrating to Vite @@ -71,6 +72,8 @@ Proceed to fix any errors that occur (i.e. differences between Webpack and Vite. + import TextInput from '@/components/TextInput.vue' ``` + The same is true, when importing .svelte or .scss files from Javascript. + - Replace usages of [tag helpers] as you move the [entrypoints]. ```diff @@ -94,15 +97,52 @@ Proceed to fix any errors that occur (i.e. differences between Webpack and Vite. + const controllers = import.meta.globEager('./**/*_controller.js') ``` -- If importing code that is located outside of the [sourceCodeDir], make sure to add a [glob expression] in [watchAdditionalPaths], so that changes to these files are detected, and trigger a recompilation. + If you want to automatically register the Stimulus Controllers, have a look at [stimulus-vite-helpers] as a replacement for @hotwired/stimulus-webpack-helpers + +- If importing code that is located outside of the [sourceCodeDir], make sure to add a [glob expression] in [watchAdditionalPaths], so that changes to these files are detected, and trigger a recompilation. - If you were using [rails-erb-loader], you might want to check [vite-plugin-erb] to ease the transition, but it's better to avoid mixing ERB in frontend assets. - Make sure [npx] is available (comes by default in most node.js installations), or [clear][clear rake] the [vite:install_dependencies] rake task and provide your own implementation. +- If you are importing your own source code without absolute path prefix (such as ``@/`` or ``~/``) you can either prefix all imports with ``@/``: + + ```diff + + - import MyModule from "admin/components/MyModule.vue" + + import MyModule from "@/admin/components/MyModule.vue" + ``` + + Or you can define an alias for every folder under [sourceCodeDir] (``app/javascript``): + + ```javascript + // vite.config.js + import path from 'path'; + import fs from 'fs' + + const sourceCodeDir = "app/javascript" + const items = fs.readdirSync(sourceCodeDir) + const directories = items.filter(item => fs.lstatSync(path.join(sourceCodeDir, item)).isDirectory()) + const aliasesFromJavascriptRoot = {} + directories.forEach(directory => { + aliasesFromJavascriptRoot[directory] = path.resolve(__dirname, sourceCodeDir, directory) + }) + export default defineConfig({ + resolve: { + alias: { + ...aliasesFromJavascriptRoot, + // can add more aliases, as "old" images or "@assets", see below + images: path.resolve(__dirname, './app/assets/images'), + }, + }, + ``` + + ::: tip Loaders to Plugins Vite provides many features [out of the box], which reduce the -need for configuration. +need for configuration. You may just need to install the required +package, for example sass, typescript, pug +just need to be available, so Vite can pick them up. In complex setups, the app might depend on specific webpack loaders, which can't be used in Vite, which uses [Rollup] under the hood. From bf64008b07d97622a77222848a39cfb9e88f1bbb Mon Sep 17 00:00:00 2001 From: Maximo Mussini Date: Wed, 13 Jul 2022 13:39:46 -0300 Subject: [PATCH 5/6] chore: address concerns after #226 https://github.com/ElMassimo/vite_ruby/pull/226#discussion_r917317298 --- vite_ruby/lib/tasks/vite.rake | 6 ++---- vite_ruby/lib/vite_ruby/commands.rb | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/vite_ruby/lib/tasks/vite.rake b/vite_ruby/lib/tasks/vite.rake index 9cc5ac84..aedc3e9c 100644 --- a/vite_ruby/lib/tasks/vite.rake +++ b/vite_ruby/lib/tasks/vite.rake @@ -4,8 +4,6 @@ $stdout.sync = true require 'rake' -legacy_npm_version = `npm --version`.to_i < 7 rescue false - namespace :vite do task :binstubs do ViteRuby.commands.install_binstubs @@ -44,7 +42,7 @@ namespace :vite do desc 'Ensure build dependencies like Vite are installed before bundling' task :install_dependencies do - cmd = legacy_npm_version ? 'npx ci --yes' : 'npx --yes ci' + cmd = ViteRuby.commands.legacy_npm_version? ? 'npx ci --yes' : 'npx --yes ci' system({ 'NODE_ENV' => 'development' }, cmd) end @@ -83,7 +81,7 @@ end # Any prerequisite task that installs packages should also install build dependencies. if ARGV.include?('assets:precompile') - if legacy_npm_version + if ViteRuby.commands.legacy_npm_version? ENV['NPM_CONFIG_PRODUCTION'] = 'false' else ENV['NPM_CONFIG_INCLUDE'] = 'dev' diff --git a/vite_ruby/lib/vite_ruby/commands.rb b/vite_ruby/lib/vite_ruby/commands.rb index 771cfa6d..0674cd52 100644 --- a/vite_ruby/lib/vite_ruby/commands.rb +++ b/vite_ruby/lib/vite_ruby/commands.rb @@ -66,6 +66,11 @@ def install_binstubs `bundle config --delete bin` end + # Internal: Checks if the npm version is 6 or lower. + def legacy_npm_version? + `npm --version`.to_i < 7 rescue false + end + # Internal: Verifies if ViteRuby is properly installed. def verify_install unless File.exist?(config.root.join('bin/vite')) From 0d49a133b0f612481d5007ea014ef6b039c45192 Mon Sep 17 00:00:00 2001 From: Maximo Mussini Date: Wed, 13 Jul 2022 13:40:21 -0300 Subject: [PATCH 6/6] release: vite_ruby@3.1.7 --- Gemfile.lock | 2 +- vite_ruby/CHANGELOG.md | 9 +++++++++ vite_ruby/lib/vite_ruby/version.rb | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 94be97f9..78f1b1e3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,7 +14,7 @@ PATH PATH remote: vite_ruby specs: - vite_ruby (3.1.6) + vite_ruby (3.1.7) dry-cli (~> 0.7.0) rack-proxy (~> 0.6, >= 0.6.1) zeitwerk (~> 2.2) diff --git a/vite_ruby/CHANGELOG.md b/vite_ruby/CHANGELOG.md index 08ef745e..bef17798 100644 --- a/vite_ruby/CHANGELOG.md +++ b/vite_ruby/CHANGELOG.md @@ -1,3 +1,12 @@ +## [3.1.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.6...vite_ruby@3.1.7) (2022-07-13) + + +### Bug Fixes + +* npm deprecation warning on assets:precompile ([#226](https://github.com/ElMassimo/vite_ruby/issues/226)) ([e4f4b75](https://github.com/ElMassimo/vite_ruby/commit/e4f4b7540ef34296f1a8a4d8f1d2838549ee8460)), closes [#220](https://github.com/ElMassimo/vite_ruby/issues/220) + + + ## [3.1.6](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.1.5...vite_ruby@3.1.6) (2022-06-02) ### Bug Fixes diff --git a/vite_ruby/lib/vite_ruby/version.rb b/vite_ruby/lib/vite_ruby/version.rb index 9cc64c37..06b5677b 100644 --- a/vite_ruby/lib/vite_ruby/version.rb +++ b/vite_ruby/lib/vite_ruby/version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class ViteRuby - VERSION = '3.1.6' + VERSION = '3.1.7' # Internal: Versions used by default when running `vite install`. DEFAULT_VITE_VERSION = '^2.9.1'