shakapacker 6.5.1 → 6.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -2
- data/README.md +34 -12
- data/docs/v6_upgrade.md +5 -2
- data/lib/install/bin/webpacker +0 -1
- data/lib/install/bin/webpacker-dev-server +0 -1
- data/lib/webpacker/runner.rb +1 -1
- data/lib/webpacker/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04b356abe12d2beb26692d9b9edc2b491a4d9e698ecab73b06e700e51d049733
|
4
|
+
data.tar.gz: 2e6c8f79c48ff1602e303d43293fc1d66413121e687538a6e7ac32fecc72518a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba8b18d95721f62d512dc330681b17fa650b3d292ce3afc51c37261a22bfbde8c9aec7db5763cc2d5b959d1c2948aaf72fcf2dcefbe6e75a90a7b1fdd4da6fa8
|
7
|
+
data.tar.gz: 5edd7194484e7c68310ac01700e2bce920f100ca2b4ad83975686da6af86cf4ac3c9c811a1eedf17c121d4c7285954a0ba3ca4e32a9da6b6ac253d85de9007d3
|
data/CHANGELOG.md
CHANGED
@@ -8,7 +8,19 @@ Changes since last non-beta release.
|
|
8
8
|
|
9
9
|
_Please add entries here for your pull requests that are not yet released._
|
10
10
|
|
11
|
-
## [v6.5.
|
11
|
+
## [v6.5.2] - September 8, 2022
|
12
|
+
|
13
|
+
### Upgrade
|
14
|
+
Remove the setting of the NODE_ENV in your `bin/webpacker` and `bin/webpacker-dev-server` files per [PR 185](https://github.com/shakacode/shakapacker/pull/185).
|
15
|
+
|
16
|
+
### Fixed
|
17
|
+
- Changed NODE_ENV defaults to the following and moved from binstubs to the runner. [PR 185](https://github.com/shakacode/shakapacker/pull/185) by [mage1711](https://github.com/mage1711).
|
18
|
+
|
19
|
+
```
|
20
|
+
ENV["NODE_ENV"] ||= (ENV["RAILS_ENV"] == "production") ? "production" : "development"
|
21
|
+
```
|
22
|
+
|
23
|
+
## [v6.5.1] - August 15, 2022
|
12
24
|
|
13
25
|
### Improved
|
14
26
|
- Resolve exact npm package version from lockfiles for constraint checking. [PR 170](https://github.com/shakacode/shakapacker/pull/170) by [G-Rath](https://github.com/G-Rath).
|
@@ -163,7 +175,8 @@ Note: [Rubygem is 6.3.0.pre.rc.1](https://rubygems.org/gems/shakapacker/versions
|
|
163
175
|
## v5.4.3 and prior changes from rails/webpacker
|
164
176
|
See [CHANGELOG.md in rails/webpacker (up to v5.4.3)](https://github.com/rails/webpacker/blob/master/CHANGELOG.md)
|
165
177
|
|
166
|
-
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v6.5.
|
178
|
+
[Unreleased]: https://github.com/shakacode/shakapacker/compare/v6.5.2...master
|
179
|
+
[v6.5.2]: https://github.com/shakacode/shakapacker/compare/v6.5.1...v6.5.2
|
167
180
|
[v6.5.1]: https://github.com/shakacode/shakapacker/compare/v6.5.0...v6.5.1
|
168
181
|
[v6.5.0]: https://github.com/shakacode/shakapacker/compare/v6.4.1...v6.5.0
|
169
182
|
[v6.4.1]: https://github.com/shakacode/shakapacker/compare/v6.4.0...v6.4.1
|
data/README.md
CHANGED
@@ -351,6 +351,8 @@ Note, if you are using server-side rendering of JavaScript with dynamic code-spl
|
|
351
351
|
|
352
352
|
Webpacker ships with two binstubs: `./bin/webpacker` and `./bin/webpacker-dev-server`. Both are thin wrappers around the standard `webpack.js` and `webpack-dev-server.js` executables to ensure that the right configuration files and environmental variables are loaded based on your environment.
|
353
353
|
|
354
|
+
_Note: older Shakapacker installations had set a missing NODE_ENV in the binstubs. Please remove this for versions 6.5.2 and newer._
|
355
|
+
|
354
356
|
#### Automatic Webpack Code Building
|
355
357
|
|
356
358
|
Shakapacker can be configured to automatically compile on demand when needed using the `webpacker.yml` `compile` option. This happens when you refer to any of the pack assets using the Shakapacker helper methods. This means that you don't have to run any separate processes. Compilation errors are logged to the standard Rails log. However, this auto-compilation happens when a web request is made that requires an updated webpack build, not when files change. Thus, that can be **painfully slow** for front-end development in this default way. Instead, you should either run the `bin/webpacker --watch` or run `./bin/webpacker-dev-server` during development.
|
@@ -434,7 +436,7 @@ const options = {
|
|
434
436
|
|
435
437
|
// Copy the object using merge b/c the baseClientWebpackConfig is a mutable global
|
436
438
|
// If you want to use this object for client and server rendering configurations,
|
437
|
-
//
|
439
|
+
// having a new object is essential.
|
438
440
|
module.exports = merge({}, baseWebpackConfig, options)
|
439
441
|
```
|
440
442
|
|
@@ -815,14 +817,34 @@ We encourage you to contribute to Shakapacker/Webpacker! See [CONTRIBUTING](CONT
|
|
815
817
|
|
816
818
|
Webpacker is released under the [MIT License](https://opensource.org/licenses/MIT).
|
817
819
|
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
820
|
+
## Supporters
|
821
|
+
|
822
|
+
<a href="https://www.jetbrains.com">
|
823
|
+
<img src="https://user-images.githubusercontent.com/4244251/184881139-42e4076b-024b-4b30-8c60-c3cd0e758c0a.png" alt="JetBrains" height="120px">
|
824
|
+
</a>
|
825
|
+
<a href="https://scoutapp.com">
|
826
|
+
<picture>
|
827
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/4244251/184881147-0d077438-3978-40da-ace9-4f650d2efe2e.png">
|
828
|
+
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/4244251/184881152-9f2d8fba-88ac-4ba6-873b-22387f8711c5.png">
|
829
|
+
<img alt="ScoutAPM" src="https://user-images.githubusercontent.com/4244251/184881152-9f2d8fba-88ac-4ba6-873b-22387f8711c5.png" height="120px">
|
830
|
+
</picture>
|
831
|
+
</a>
|
832
|
+
<br />
|
833
|
+
<a href="https://www.browserstack.com">
|
834
|
+
<picture>
|
835
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/4244251/184881122-407dcc29-df78-4b20-a9ad-f597b56f6cdb.png">
|
836
|
+
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/4244251/184881129-e1edf4b7-3ae1-4ea8-9e6d-3595cf01609e.png">
|
837
|
+
<img alt="BrowserStack" src="https://user-images.githubusercontent.com/4244251/184881129-e1edf4b7-3ae1-4ea8-9e6d-3595cf01609e.png" height="55px">
|
838
|
+
</picture>
|
839
|
+
</a>
|
840
|
+
<a href="https://railsautoscale.com">
|
841
|
+
<img src="https://user-images.githubusercontent.com/4244251/184881144-95c2c25c-9879-4069-864d-4e67d6ed39d2.png" alt="Rails Autoscale" height="55px">
|
842
|
+
</a>
|
843
|
+
<a href="https://www.honeybadger.io">
|
844
|
+
<img src="https://user-images.githubusercontent.com/4244251/184881133-79ee9c3c-8165-4852-958e-31687b9536f4.png" alt="Honeybadger" height="55px">
|
845
|
+
</a>
|
846
|
+
|
847
|
+
<br />
|
848
|
+
<br />
|
849
|
+
|
850
|
+
The following companies support our open source projects, and ShakaCode uses their products!
|
data/docs/v6_upgrade.md
CHANGED
@@ -15,6 +15,9 @@ While you have to configure integration with frameworks yourself, [`webpack-merg
|
|
15
15
|
## webpacker v6.0.0.rc.6 to shakapacker v6.0.0
|
16
16
|
See an example migration here: [PR 27](https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh/pull/27).
|
17
17
|
|
18
|
+
### Update to v6.5.2
|
19
|
+
1. Remove setting the NODE_ENV in your `bin/webpacker` and `bin/webpacker-dev-server` bin stubs as these are not set in the webpack runner file.
|
20
|
+
|
18
21
|
### Update Steps to v6.0.0 from v6.0.0.rc.6
|
19
22
|
_If you're on webpacker v5, follow below steps to get to v6.0.0.rc.6 first._
|
20
23
|
|
@@ -53,7 +56,7 @@ _If you're on webpacker v5, follow below steps to get to v6.0.0.rc.6 first._
|
|
53
56
|
|
54
57
|
1. Upgrade the Webpacker Ruby gem and the NPM package
|
55
58
|
|
56
|
-
Note: [Check the gem page to verify the latest version](https://rubygems.org/gems/shakapacker), and make sure to install identical version numbers of `shakapacker` gem and package
|
59
|
+
Note: [Check the gem page to verify the latest version](https://rubygems.org/gems/shakapacker), and make sure to install identical version numbers of `shakapacker` gem and package, and remove the old `webpacker` gem from the Gemfile (Gems use a hyphen and packages use a dot between the main version number and the beta version.)
|
57
60
|
|
58
61
|
Example going to a specific version:
|
59
62
|
|
@@ -92,7 +95,7 @@ _If you're on webpacker v5, follow below steps to get to v6.0.0.rc.6 first._
|
|
92
95
|
source_path: app/javascript
|
93
96
|
source_entry_path: /
|
94
97
|
```
|
95
|
-
If you prefer this
|
98
|
+
If you prefer this configuration, then you will move your `app/javascript/packs/*` (including `application.js`) to `app/javascript/` and update the configuration file.
|
96
99
|
|
97
100
|
Note, moving your files is optional, as you can stil keep your entries in a separate directory, called something like `packs`, or `entries`. This directory is defined with the `source_path`.
|
98
101
|
|
data/lib/install/bin/webpacker
CHANGED
@@ -6,7 +6,6 @@ require "webpacker"
|
|
6
6
|
require "webpacker/webpack_runner"
|
7
7
|
|
8
8
|
ENV["RAILS_ENV"] ||= "development"
|
9
|
-
ENV["NODE_ENV"] ||= ENV["RAILS_ENV"]
|
10
9
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", Pathname.new(__FILE__).realpath)
|
11
10
|
|
12
11
|
APP_ROOT = File.expand_path("..", __dir__)
|
data/lib/webpacker/runner.rb
CHANGED
data/lib/webpacker/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shakapacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.5.
|
4
|
+
version: 6.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-08
|
13
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -336,7 +336,7 @@ homepage: https://github.com/shakacode/shakapacker
|
|
336
336
|
licenses:
|
337
337
|
- MIT
|
338
338
|
metadata:
|
339
|
-
source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.5.
|
339
|
+
source_code_uri: https://github.com/shakacode/shakapacker/tree/v6.5.2
|
340
340
|
post_install_message:
|
341
341
|
rdoc_options: []
|
342
342
|
require_paths:
|