All notable changes to importmap-laravel
will be documented in this file.
- Skip adding the
<x-importmap::tags />
component to layouts if they already exist in https://github.com/tonysm/importmap-laravel/commit/ff2019eb14b48223c985e6cdee0601455bc41d88
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/2.3.0...2.3.1
- Skip axios installation with a warning by @tonysm in https://github.com/tonysm/importmap-laravel/commit/c77bb163d9a4b2f81d0d399b7c03323e9562b91a
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/2.2.0...2.3.0
- Laravel 11 Support by @tonysm in #54
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/2.1.4...2.2.0
- Read typo fixes by @emaia in #52
- Update the install command to either replace the vite directive or append the importmap tags before the closing head tag by @tonysm in https://github.com/tonysm/importmap-laravel/commit/ce304706a698b35aa46ef3168d6bf2db8ee2a97d
- @emaia made their first contribution in #52
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/2.0.3...2.1.2
- Fix outdated command breaks on previous comment format by @tonysm in #50
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/2.1.0...2.1.1
- New
importmap:update
command and store CDN URL with package name and version in vendor comment by @tonysm in #49
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/2.0.1...2.1.0
- Fix: Prevent Type Error: Unsupported operand types: null + array by @JunaidQadirB in #48
- Fix: Optimize command wasn't working when specifying public vendor lib starting with a forward slash (
/vendor/my-lib.js
, for instance) https://github.com/tonysm/importmap-laravel/commit/4e17a78ba5c0b802e9825806fbafc7086461a670 - Fix: Digest wasn't being applied on public vendor libs when starting with a forward slash either https://github.com/tonysm/importmap-laravel/commit/139b788c9837d7313c96e62b8cada68082ea160a
- @JunaidQadirB made their first contribution in #48
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/2.0.0...2.0.1
- Drops the shim by @tonysm in #43
- Preload default by @tonysm in #44
- Always download dependencies by @tonysm in #45
- Dont optimize with URL by @tonysm in #46
- Install with default jsconfig.json by @tonysm in #47
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/1.8.3...2.0.0
The pinned imports to CDN URLs will still work, but I recommend you re-pin them now and host them yourself (we're now always downloading vendor libs to resources/js/vendor/
).
The <x-importmap-tags />
component has changed to <x-importmap::tags />
so you can run the following command to replace all occurrences of the previous component name in your layout files:
sed -i 's/x-importmap-tags/x-importmap::tags/g' resources/**/*.php
Also, ensure you have php artisan view:cache
in your deployment script.
- FIX: Fixes the failed to fix import statement event name (https://github.com/tonysm/importmap-laravel/commit/d32c41d3d38ed27767ce8868af0a8861727196ea)
- Fix installation script not properly fixing paths resolution by @tonysm in #34
- Bump shims version to 1.8.2 by @tonysm in #35
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/1.7.0...1.8.0
- Adds a
bin/importmap
script by @tonysm in #33
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/1.6.0...1.7.0
- CHANGED: Push symlinks config to package instead of patching the application's
config/filesystems.php
file by @tonysm in #29
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/1.5.0...1.6.0
- NEW: New
importmap:packages
command that lists out the external packages being imported - FIXED: Fixes single quotes support in the
routes/importmap.php
file
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/1.4.1...1.5.0
- Bump the shim version to 1.7.2
Full Changelog: https://github.com/tonysm/importmap-laravel/compare/1.4.0...1.4.1
- CHANGED: Bumps the default
es-module-shims
version to1.3.1
- CHANGED: Support Laravel 10
- CHANGED: Bumps the default
es-module-shims
version to1.3.1
- CHANGED: Support Laravel 10
- CHANGED: Bumped
es-module-shims
version to1.6.2
(latest) and make it configurable so applications may bump it without having to upgrade the package
- FIXED: Fixes the optimize command when pinning dependencies from
public/vendor
(https://github.com/tonysm/importmap-laravel/commit/a3a685583bfaaf82e737f0ec2fb368f63f3d3c1f)
- CHANGED: stop escapeing the slashes in the
importmap:json
output (https://github.com/tonysm/importmap-laravel/commit/496cb8bc77c51fd1dae28f12e37a881b4cc41997) - NEW: handle imported files from
public/vendor
folder (https://github.com/tonysm/importmap-laravel/commit/b6c22d1f047715b1f47393dc55a59730397aa55a)
- CHANGED: we don't delete the
public/js
folder anymore, but instead ask the developer to do so (https://github.com/tonysm/importmap-laravel/commit/f0b3ad562bb748fe20f34768d8b9fb49936099c7)
- CHANGED: The
importmap:install
command was changed to work with the new Vite setup in Laravel. It should also still work on installs in the Laravel 8 frontends setups using Mix.
- FIXED: The
importmap:pin
command was breaking depending on the package name because we needed to wrap the package name using thepreg_quote
to escape it. Otherwise, some characters might become part of the regex itself. #16
- Bumps
es-module-shims
to version 1.5.8
- FIXED: Pinned directories were not working on Windows because we're using
/
instead of\
. Anyways, that should be fixed now. Define the directories with/
as you would on any Unix/Linux OS and the package will make sure that gets converted to the correct directory separator when dealing with file paths and to the/
separator when dealing with URIs #5
- CHANGED: Changes the manifest filename to be
.importmap-manifest.json
(with a dot prefix) so it can be included in the Vapor artifact (which doesn't remove dotfiles by default).
- CHANGED: Laravel 9 support (nothing really changed in the app, just the version constraints)
- FIXED: The manifest already had the final asset URL on it, which is handled by the optimize command, so we don't need to call the asset resolver when the manifest exists
- NEW: Added an
AssetResolver
invokable class which should add a?digest=$HASH
to the asset URL, which is useful for cache busting while in local development. This won't be used in production as the optimize command already generates the full URLs there, which means theAssetResolver
won't be called - CHANGED: The
entrypoint
was made optional and it defaults to theapp
module, which matches the "entrypoint" file in the default Laravel install (resources/js/app.js
)
- initial release