Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/late-toes-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@rocket.chat/meteor': patch
'@rocket.chat/apps-engine': patch
---

Fixes an issue where app installation would fail if the app package contained JS syntax newer than 2017
3 changes: 2 additions & 1 deletion packages/apps-engine/deno-runtime/lib/ast/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function fixAst(ast: Program): boolean {

export function fixBrokenSynchronousAPICalls(appSource: string): string {
const astRootNode = parse(appSource, {
ecmaVersion: 2017,
// Latest ecma version supported by this version of acorn.
ecmaVersion: "latest",
// Allow everything, we don't want to complain if code is badly written
// Also, since the code itself has been transpiled, the chance of getting
// shenanigans is lower
Expand Down
Loading