-
Notifications
You must be signed in to change notification settings - Fork 13.6k
feat(apps): apps-engine split, flip the switch #40186
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
Closed
d-gubert
wants to merge
25
commits into
feat/apps-engine-split--pr2b-dynamic-import-map
from
feat/apps-engine-split--pr2c-flip-the-switch
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
a32575c
refactor(apps): point AppsEngine facade and IAppServerOrchestrator to…
d-gubert 6e9c471
refactor(meteor): migrate apps-engine/server/ imports to @rocket.chat…
d-gubert 8f3e4f5
refactor(meteor): migrate apps-engine/client/ imports to @rocket.chat…
d-gubert 00c8b0b
refactor(core-services): migrate apps-engine/server/ imports to @rock…
d-gubert 1e8c2ce
refactor(apps-engine): promote cross-boundary types to definition layer
d-gubert fbcaeaf
refactor(apps): source room options and OAuth2Client from apps-engine…
d-gubert 3a521fb
fix outdated import
d-gubert c84f992
fix(apps): export GetMessagesSortableFields as value, not type
Copilot 9e03355
fix lint
d-gubert 102bc2f
auto fix lint
d-gubert f7d2992
fix apps package.json
d-gubert 6accfcb
fix messages converter
d-gubert 3a733bf
fix apps package.json
d-gubert 27ad74f
stop importing from deep index files
d-gubert 6ba5857
fix type error in listeners bridge
d-gubert ad33f71
update yarn.lock
d-gubert 77f8a12
fix: meteor bundled doesn't support "exports" mapping in package.json
d-gubert 7c0c738
deno: add @types/node for lsp integration
d-gubert db5af43
refactor: adapt imports to use dist
d-gubert 526575d
fix: deno-runtime import problems
d-gubert a7d44ea
enables test on apps
d-gubert e5c7324
refactor(apps): package json
d-gubert 316730e
chore(ci): remove esbuild from apps packages' node_modules along with…
d-gubert e05c9cd
fix: remove apps-engine copying from Dockerfiles
d-gubert a7dcbfc
docs: apps-engine-migration.md
d-gubert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| import { RealAppBridges } from './bridges'; | ||
|
|
||
| export { RealAppBridges }; | ||
| export * from './bridges'; |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 48
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 82
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 1213
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 121
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 48
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 1112
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 734
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 1806
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 1140
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 6932
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 94
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 349
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 7572
🏁 Script executed:
Repository: RocketChat/Rocket.Chat
Length of output: 69
Add formal
exportsmap topackages/apps/package.jsonto document and stabilize deep-import paths.The deep imports from
@rocket.chat/apps/dist/server/bridges/and similar paths are valid—the source files exist atpackages/apps/src/server/bridges/and TypeScript will compile them to the expected dist structure. However, this pattern is used extensively across 40+ files (bridges, storage, managers, client) and currently bypasses the package's exports configuration. While the paths will work with the current build setup, adding explicitexportsentries would formalize these APIs and protect against accidental breaking changes to the build output structure.🤖 Prompt for AI Agents
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.
Meteor's bundler does not respect the
exportskeyword on package.json files. For now we'll need to keep the deep importsThere 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.
@d-gubert, thanks for the clarification! That makes total sense — since Meteor's bundler ignores theexportsfield inpackage.json, the deepdist/imports are the correct approach here and no changes are needed.✏️ Learnings added
🧠 Learnings used