fix(deps): replace @bigcommerce/handlebars-v4 with npm alias - #407
Merged
Conversation
Drop the @bigcommerce/handlebars-v4 wrapper dependency in favor of an npm alias (handlebars-v4 -> handlebars@4.7.9). Modern npm tooling supports aliases, so a separately published package is no longer needed to load handlebars v3 and v4 side by side. Publishing this as a release removes the wrapper from consumers' transitive dependency tree. Runtime is imported via the handlebars-v4/runtime.js subpath since the bare handlebars export has no .runtime property. Refs TRAC-961
jairo-bc
marked this pull request as ready for review
July 28, 2026 16:13
parthshahp
approved these changes
Jul 28, 2026
Contributor
|
🎉 This PR is included in version 6.6.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: TRAC-961 (LTRAC-993)
What? Why?
@bigcommerce/handlebars-v4wrapper dependency with an npm alias:handlebars-v4→handlebars@4.7.9(same version the wrapper pinned).npm:handlebars@4) does this with no separately published package — same pattern already used for v3 instencil-renderer-worker.handlebars-v4/runtime.jssubpath. The barehandlebarsexport has no.runtimeproperty; only the old wrapper added it.@bigcommerce/handlebars-v4(this is a published dep of the worker / bundle-service, so it must release first).How was it tested?
npm test— 888 tests pass (parity with pre-change baseline).npm run lint— clean.require('handlebars-v4').VERSION === '4.7.9'andhandlebars-v4/runtime.jstemplate fn present;@bigcommerce/handlebars-v4absent fromnode_modules.