Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shakapacker

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shakapacker - npm Package Versions

1345

7.2.1

Diff

Changelog

Source

[v7.2.1] - December 30, 2023

Fixed

  • Show deprecation message for relative_url_root only if it is set. PR 400 by ahangarha.
shakacode-justin
published 7.2.0 •

Changelog

Source

[v7.2.0] - December 28, 2023

Added

  • Experimental support for other JS package managers using package_json gem PR 349 by G-Rath.
  • Support hmr: only configuration PR 378 by SimenB.
  • Use config/shakapacker.yml as the secondary source for asset_host and relative_url_root configurations PR 376 by ahangarha.

Fixed

  • Recommend server option instead of the deprecated https option when --https is provided PR 380 by G-Rath
  • Recompile assets on asset host change PR 364 by ahangarha.
  • Add deprecation warning for https option in shakapacker.yml (use server: 'https' instead) PR 382 by G-Rath.
  • Disable Hot Module Replacement in webpack-dev-server when hmr: false PR 392 by thedanbob.

Deprecated

  • The usage of relative_url_root is deprecated in Shakapacker and will be removed in v8. PR 376 by ahangarha.
shakacode-justin
published 7.2.0-rc.0 •

shakacode
published 7.1.0 •

Changelog

Source

[v7.1.0] - September 30, 2023

Added

  • Support passing custom webpack config directly to generateWebpackConfig for merging PR 343 by G-Rath.

Fixed

  • Use NODE_OPTIONS to enable Node-specific debugging flags PR 350.
  • Add the boilerplate application.js into packs/ PR 363.
shakacode
published 7.0.3 •

Changelog

Source

[v7.0.3] - July 7, 2023

Fixed

  • Fixed commands execution for projects with space in the absolute path PR 322 by kukicola.
shakacode
published 7.0.2 •

Changelog

Source

[v7.0.2] - July 3, 2023

Fixed

shakacode
published 7.0.1 •

Changelog

Source

[v7.0.1] - June 27, 2023

Fixed

  • Fixed the condition for showing warning for setting useContentHash to false in the production environment. PR 320 by ahangarha.
shakacode
published 7.0.0 •

Changelog

Source

[v7.0.0] - June 23, 2023

Breaking changes

  • Removes defaults passed to @babel/preset-typescript. PR 273 by tomdracz.

    @babel/preset-typescript has been initialised in default configuration with { allExtensions: true, isTSX: true } - meaning every file in the codebase was treated as TSX leading to potential issues. This has been removed and returns to sensible default of the preset which is to figure out the file type from the extensions. This change might affect generated output however so it is marked as breaking.

  • Export immutable webpackConfig function. PR 293 by tomdracz.

    The webpackConfig property in the shakapacker module has been updated to be a function instead of a global mutable webpack configuration. This function now returns an immutable webpack configuration object, which ensures that any modifications made to it will not affect any other usage of the webpack configuration. If a project still requires the old mutable object, it can be accessed by replacing webpackConfig with globalMutableWebpackConfig. Check v7-upgrade documentation for more detail.

Added

  • Set CSS modules mode depending on file type. PR 261 by talyuk.
  • All standard webpack entries with the camelCase format are now supported in shakapacker.yml in snake_case format. PR276 by ahangarha.
  • The shakapacker:install rake task now has an option to force overriding files using FORCE=true environment variable PR311 by ahangarha.
  • Allow configuration of use of contentHash for specific environment PR 234 by justin808.

Changed

  • Rename Webpacker to Shakapacker in the entire project including config files, binstubs, environment variables, etc. with a high degree of backward compatibility.

    This change might be breaking for certain setups and edge cases. More information: v7 Upgrade Guide PR157 by ahangarha

  • Set source_entry_path to packs and nested_entries to true inshakapacker.yml PR 284 by ahangarha.

  • Dev server configuration is modified to follow webpack recommended configurations for dev server. PR276 by ahangarha:

    • Deprecated https entry is removed from the default configuration file, allowing to set server or https as per the project requirements. For more detail, check webpack documentation. The https entry can be effective only if there is no server entry in the config file.
    • allowed_hosts is now set to auto instead of all by default.
  • Remove the arbitrary stripping of the top-level directory when generating static file paths. PR 283 by tomdracz.

    Prior to this change, top level directory of static assets like images and fonts was stripped. This meant that file in app/javascript/images/image.png would be output to static/image.png directory and could be referenced through helpers as image_pack_tag("image.jpg") or image_pack_tag("static/image.jpg").

    Going forward, the top level directory of static files will be retained so this will necessitate the update of file name references in asset helpers. In the example above, the file sourced from app/javascript/images/image.png will be now output to static/images/image.png and needs to be referenced as image_pack_tag("images/image.jpg") or image_pack_tag("static/images/image.jpg").

Fixed

  • Move compilation lock file into the working directory. PR 272 by tomdracz.

  • Process source_entry_path with values starting with / as a relative path to source_path PR 284 by ahangarha.

  • Removes defaults passed to @babel/preset-typescript to make it possible to have projects with mix of JS and TS code PR 273 by tomdracz.

    @babel/preset-typescript has been initialised in default configuration with { allExtensions: true, isTSX: true } - meaning every file in the codebase was treated as TSX leading to potential issues. This has been removed and returns to sensible default of the preset which is to figure out the file type from the extensions. This change might affect generated output however so it is marked as breaking.

  • Fixed RC version detection during installation. PR312 by ahangarha

  • Fix addition of webpack-dev-server to devDependencies during installation. PR310 by ahangarha

Removed

  • Remove redundant enhancement for precompile task to run yarn install PR 270 by ahangarha.
  • Remove deprecated check_yarn_integrity from Shakapacker::Configuration PR SP288 by ahangarha.
shakacode
published 7.0.0-rc.2 •

shakacode
published 7.0.0-rc.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc