-
Notifications
You must be signed in to change notification settings - Fork 13.9k
chore: update Meteor and package versions to latest stable releases 3.4 #38614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
578a6cc
d87c0a1
aebadd4
258b057
3fa60aa
1adb488
5643ef5
e26cdae
259a107
ad3db2b
87e1f08
862daaf
1e6098a
3739214
185b68f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| METEOR@3.3.2 | ||
| METEOR@3.4 |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,8 @@ | ||||||||||||||||||||||||||||||||||||
| import { transformSync } from '@babel/core'; | ||||||||||||||||||||||||||||||||||||
| import presetEnv from '@babel/preset-env'; | ||||||||||||||||||||||||||||||||||||
|
KevLehman marked this conversation as resolved.
|
||||||||||||||||||||||||||||||||||||
| import type { IUser, INewOutgoingIntegration, IOutgoingIntegration, IUpdateOutgoingIntegration } from '@rocket.chat/core-typings'; | ||||||||||||||||||||||||||||||||||||
| import { Subscriptions, Users, Rooms } from '@rocket.chat/models'; | ||||||||||||||||||||||||||||||||||||
| import { pick } from '@rocket.chat/tools'; | ||||||||||||||||||||||||||||||||||||
| import { Babel } from 'meteor/babel-compiler'; | ||||||||||||||||||||||||||||||||||||
| import { Match } from 'meteor/check'; | ||||||||||||||||||||||||||||||||||||
| import { Meteor } from 'meteor/meteor'; | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
|
|
@@ -179,13 +180,15 @@ export const validateOutgoingIntegration = async function ( | |||||||||||||||||||||||||||||||||||
| integration.script.trim() !== '' | ||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||
| const babelOptions = Object.assign(Babel.getDefaultOptions({ runtime: false }), { | ||||||||||||||||||||||||||||||||||||
| const result = transformSync(integration.script, { | ||||||||||||||||||||||||||||||||||||
| presets: [presetEnv], | ||||||||||||||||||||||||||||||||||||
| compact: true, | ||||||||||||||||||||||||||||||||||||
| minified: true, | ||||||||||||||||||||||||||||||||||||
| comments: false, | ||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| integrationData.scriptCompiled = Babel.compile(integration.script, babelOptions).code; | ||||||||||||||||||||||||||||||||||||
| // TODO: Webhook Integration Editor should inform the user if the script is compiled successfully | ||||||||||||||||||||||||||||||||||||
| integrationData.scriptCompiled = result?.code ?? undefined; | ||||||||||||||||||||||||||||||||||||
|
Comment on lines
+183
to
+191
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same This file has the same 🛠️ Proposed fix const result = transformSync(integration.script, {
- presets: [presetEnv],
+ presets: [[presetEnv, { modules: false }]],
compact: true,
minified: true,
comments: false,
});📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
ggazzo marked this conversation as resolved.
|
||||||||||||||||||||||||||||||||||||
| integrationData.scriptError = undefined; | ||||||||||||||||||||||||||||||||||||
| } catch (e) { | ||||||||||||||||||||||||||||||||||||
| integrationData.scriptCompiled = undefined; | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,10 @@ | ||||||||||||||||||||||||||||||||||||
| import { transformSync } from '@babel/core'; | ||||||||||||||||||||||||||||||||||||
| import presetEnv from '@babel/preset-env'; | ||||||||||||||||||||||||||||||||||||
| import type { INewIncomingIntegration, IIncomingIntegration } from '@rocket.chat/core-typings'; | ||||||||||||||||||||||||||||||||||||
| import type { ServerMethods } from '@rocket.chat/ddp-client'; | ||||||||||||||||||||||||||||||||||||
| import { Integrations, Subscriptions, Users, Rooms } from '@rocket.chat/models'; | ||||||||||||||||||||||||||||||||||||
| import { Random } from '@rocket.chat/random'; | ||||||||||||||||||||||||||||||||||||
| import { removeEmpty } from '@rocket.chat/tools'; | ||||||||||||||||||||||||||||||||||||
| import { Babel } from 'meteor/babel-compiler'; | ||||||||||||||||||||||||||||||||||||
| import { Match, check } from 'meteor/check'; | ||||||||||||||||||||||||||||||||||||
| import { Meteor } from 'meteor/meteor'; | ||||||||||||||||||||||||||||||||||||
| import _ from 'underscore'; | ||||||||||||||||||||||||||||||||||||
|
|
@@ -111,10 +112,15 @@ export const addIncomingIntegration = async (userId: string, integration: INewIn | |||||||||||||||||||||||||||||||||||
| integration.script.trim() !== '' | ||||||||||||||||||||||||||||||||||||
| ) { | ||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||
| let babelOptions = Babel.getDefaultOptions({ runtime: false }); | ||||||||||||||||||||||||||||||||||||
| babelOptions = _.extend(babelOptions, { compact: true, minified: true, comments: false }); | ||||||||||||||||||||||||||||||||||||
| const result = transformSync(integration.script, { | ||||||||||||||||||||||||||||||||||||
| presets: [presetEnv], | ||||||||||||||||||||||||||||||||||||
| compact: true, | ||||||||||||||||||||||||||||||||||||
| minified: true, | ||||||||||||||||||||||||||||||||||||
| comments: false, | ||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| integrationData.scriptCompiled = Babel.compile(integration.script, babelOptions).code; | ||||||||||||||||||||||||||||||||||||
| // TODO: Webhook Integration Editor should inform the user if the script is compiled successfully | ||||||||||||||||||||||||||||||||||||
| integrationData.scriptCompiled = result?.code ?? undefined; | ||||||||||||||||||||||||||||||||||||
|
Comment on lines
+115
to
+123
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same This file shares the same 🛠️ Proposed fix const result = transformSync(integration.script, {
- presets: [presetEnv],
+ presets: [[presetEnv, { modules: false }]],
compact: true,
minified: true,
comments: false,
});📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
ggazzo marked this conversation as resolved.
|
||||||||||||||||||||||||||||||||||||
| delete integrationData.scriptError; | ||||||||||||||||||||||||||||||||||||
| } catch (e) { | ||||||||||||||||||||||||||||||||||||
| integrationData.scriptCompiled = undefined; | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Guard these
findcleanup commands against missing directories; otherwise optional package layout differences can break Docker builds.Prompt for AI agents