Skip to content

ATLAS-5277: Atlas UI: Upgrade handlebars to 4.7.9#606

Merged
pawarprasad123 merged 1 commit intomasterfrom
ATLAS-5277
Apr 29, 2026
Merged

ATLAS-5277: Atlas UI: Upgrade handlebars to 4.7.9#606
pawarprasad123 merged 1 commit intomasterfrom
ATLAS-5277

Conversation

@pawarprasad123
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Upgrade Handlebars from 1.0.0-rc.3 → 4.7.9

This change updates the vendored Handlebars bundle used by the RequireJS build and keeps the require-handlebars-plugin (hbs, i18nprecompile) in sync with Handlebars 4.x parser/compiler behavior, so precompilation and dev builds work without template/runtime version mismatches.

Handlebars runtime: Replaced/updated the bundled UMD build under public/js/external_lib/require-handlebars-plugin/js/handlebars.js to Handlebars 4.7.9 (version comment at top of file).

AMD loader / precompile: hbs.js – Adjusted for Handlebars 4.x AST (e.g. Program body shape, CommentStatement, path/helper scanning) so the plugin can parse templates and list dependencies correctly.

App helpers: modules/Helpers.js – No behavioral change required for the version bump in most cases; custom helpers stay registered the same.

RequireJS paths: main.js, migration.js – Still map handlebars / hbs / i18nprecompile to external_lib/require-handlebars-plugin/js/... (verify paths unchanged ).

How was this patch tested?

Manual tested.
Screenshot from 2026-04-24 19-44-38

Copy link
Copy Markdown
Contributor

@farhank31 farhank31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pawarprasad123 pawarprasad123 merged commit 7bd61d8 into master Apr 29, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants