-
Notifications
You must be signed in to change notification settings - Fork 13.8k
chore: migrate @rocket.chat/emitter from the Fuselage repository
#41768
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e9361be
chore: absorb `@rocket.chat/emitter` from the fuselage repo
tassoevan 34661cd
chore(emitter): adopt shared configs and simplify the rollup setup
tassoevan d4cd570
chore: consume `@rocket.chat/emitter` from the workspace
tassoevan ea43176
chore(emitter): pin the toolchain to the repo root via volta
tassoevan 77b2d8e
chore: resolve the transitive emitter range to the workspace
tassoevan 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
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 |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| # Change Log | ||
|
|
||
| ## 0.33.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - [#2072](https://github.com/RocketChat/fuselage/pull/2072) [`46e9cc3`](https://github.com/RocketChat/fuselage/commit/46e9cc36b03bcdd8668f6146dd6e326857416a39) Thanks [@tassoevan](https://github.com/tassoevan)! - feat: Remove unused UMD builds from all packages | ||
|
|
||
| ### Patch Changes | ||
|
|
||
| - [#2060](https://github.com/RocketChat/fuselage/pull/2060) [`ee381bb`](https://github.com/RocketChat/fuselage/commit/ee381bb32982d0f4ed9ef26385b5016e0a2e4023) Thanks [@tassoevan](https://github.com/tassoevan)! - feat: Remove deprecations and keep documentation comments | ||
|
|
||
| ## 0.32.0 | ||
|
|
||
| ### Minor Changes | ||
|
|
||
| - [#1717](https://github.com/RocketChat/fuselage/pull/1717) [`1179d3f`](https://github.com/RocketChat/fuselage/commit/1179d3f3fb954f00741fd99ddd979b00f39c937e) Thanks [@tassoevan](https://github.com/tassoevan)! - feat: ES2024 standard requirement | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
| See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
|
||
| # [0.31.0](https://github.com/RocketChat/fuselage/compare/v0.30.1...v0.31.0) (2021-12-28) | ||
|
|
||
| ### Features | ||
|
tassoevan marked this conversation as resolved.
|
||
|
|
||
| - New hooks for element size tracking ([#413](https://github.com/RocketChat/fuselage/issues/413)) ([8ca682c](https://github.com/RocketChat/fuselage/commit/8ca682c636d2e4813f7d346cb881513382be63cf)) | ||
|
|
||
| # [0.30.0](https://github.com/RocketChat/fuselage/compare/v0.29.0...v0.30.0) (2021-10-06) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - **jest:** Adjust jest and ts-jest dependencies ([#547](https://github.com/RocketChat/fuselage/issues/547)) ([91a4fa1](https://github.com/RocketChat/fuselage/commit/91a4fa1365394001afe1bd46480bda3bafed5505)) | ||
|
|
||
| # [0.29.0](https://github.com/RocketChat/fuselage/compare/v0.28.0...v0.29.0) (2021-08-31) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| # [0.28.0](https://github.com/RocketChat/fuselage/compare/v0.27.0...v0.28.0) (2021-07-30) | ||
|
|
||
| ### Features | ||
|
|
||
| - **onboarding-ui:** Administrator information form and Organization information form ([#489](https://github.com/RocketChat/fuselage/issues/489)) ([b289f68](https://github.com/RocketChat/fuselage/commit/b289f68676954b91c792d8d97680314178bf2c60)) | ||
| - styled API; monorepo grooming ([#482](https://github.com/RocketChat/fuselage/issues/482)) ([1b6b70c](https://github.com/RocketChat/fuselage/commit/1b6b70cf67ec16927b1566adc2350295a8927223)) | ||
|
|
||
| # [0.27.0](https://github.com/RocketChat/fuselage/compare/v0.26.0...v0.27.0) (2021-06-28) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| # [0.26.0](https://github.com/RocketChat/fuselage/compare/v0.25.0...v0.26.0) (2021-05-28) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| # [0.25.0](https://github.com/RocketChat/fuselage/compare/v0.24.0...v0.25.0) (2021-05-19) | ||
|
|
||
| ### Features | ||
|
|
||
| - [@rocket](https://github.com/rocket).chat/message-parser ([#443](https://github.com/RocketChat/fuselage/issues/443)) ([4722cdf](https://github.com/RocketChat/fuselage/commit/4722cdff46f5987f335d989be59649c7652bb12a)) | ||
|
|
||
| # [0.24.0](https://github.com/RocketChat/fuselage/compare/v0.23.0...v0.24.0) (2021-04-28) | ||
|
|
||
| ### Features | ||
|
|
||
| - [@rocket](https://github.com/rocket).chat/string-helpers ([#431](https://github.com/RocketChat/fuselage/issues/431)) ([2509d6a](https://github.com/RocketChat/fuselage/commit/2509d6acdbe5ec8b216e8d4430373797c5f5dfe2)) | ||
|
|
||
| # [0.23.0](https://github.com/RocketChat/fuselage/compare/v0.22.0...v0.23.0) (2021-04-01) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - **npm:** Wrong paths in "files" field of package.json ([6d3c811](https://github.com/RocketChat/fuselage/commit/6d3c811f6fd747de7f47aff145902d88476272ee)) | ||
|
|
||
| # [0.22.0](https://github.com/RocketChat/fuselage/compare/v0.21.0...v0.22.0) (2021-02-26) | ||
|
|
||
| ### Features | ||
|
|
||
| - Type Emitter Implementation ([#399](https://github.com/RocketChat/fuselage/issues/399)) ([cd0d3fc](https://github.com/RocketChat/fuselage/commit/cd0d3fc7b50d911dbacbc122d09745fa9fb4d921)) | ||
|
|
||
| # [0.21.0](https://github.com/RocketChat/fuselage/compare/v0.20.3...v0.21.0) (2021-01-31) | ||
|
|
||
| ### Features | ||
|
|
||
| - Built modules for design tokens ([#356](https://github.com/RocketChat/fuselage/issues/356)) ([f9c3449](https://github.com/RocketChat/fuselage/commit/f9c344953b8161a4385cab3a3dcc8b6a7210446f)) | ||
|
|
||
| ## [0.20.1](https://github.com/RocketChat/fuselage/compare/v0.20.0...v0.20.1) (2020-12-22) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| # [0.20.0](https://github.com/RocketChat/fuselage/compare/v0.19.0...v0.20.0) (2020-12-21) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| # [0.19.0](https://github.com/RocketChat/fuselage/compare/v0.18.0...v0.19.0) (2020-11-28) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| # [0.18.0](https://github.com/RocketChat/fuselage/compare/v0.17.3...v0.18.0) (2020-11-16) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| ## [0.17.2](https://github.com/RocketChat/fuselage/compare/v0.17.1...v0.17.2) (2020-10-28) | ||
|
|
||
| **Note:** Version bump only for package @rocket.chat/emitter | ||
|
|
||
| ## [0.17.1](https://github.com/RocketChat/fuselage/compare/v0.17.0...v0.17.1) (2020-10-26) | ||
|
|
||
| ### Bug Fixes | ||
|
|
||
| - Emitter: Created events method ([#311](https://github.com/RocketChat/fuselage/issues/311)) ([e36240f](https://github.com/RocketChat/fuselage/commit/e36240f396a33bd68a2d71c6b00e845e6e22604d)) | ||
|
|
||
| # [0.17.0](https://github.com/RocketChat/fuselage/compare/v0.16.0...v0.17.0) (2020-10-25) | ||
|
|
||
| ### Features | ||
|
|
||
| - Event Emitter ([#300](https://github.com/RocketChat/fuselage/issues/300)) ([4ec074c](https://github.com/RocketChat/fuselage/commit/4ec074c17b311b2ac3caaa4fa01360cb2b65cefe)) | ||
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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import server from '@rocket.chat/jest-presets/server'; | ||
| import type { Config } from 'jest'; | ||
|
|
||
| export default { | ||
| preset: server.preset, | ||
| } satisfies Config; |
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 |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| { | ||
| "name": "@rocket.chat/emitter", | ||
| "version": "0.33.0", | ||
| "description": "Event Emitter by Rocket.Chat", | ||
| "keywords": [ | ||
| "rocket.chat" | ||
| ], | ||
| "bugs": { | ||
| "url": "https://github.com/RocketChat/Rocket.Chat/issues" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/RocketChat/Rocket.Chat.git" | ||
| }, | ||
| "license": "MIT", | ||
| "author": { | ||
| "name": "Rocket.Chat", | ||
| "url": "https://rocket.chat/" | ||
| }, | ||
| "main": "dist/index.js", | ||
| "module": "dist/index.module.js", | ||
| "source": "src/index.ts", | ||
| "types": "dist/index.d.ts", | ||
| "files": [ | ||
| "/dist" | ||
| ], | ||
| "scripts": { | ||
| "build": "rollup -c", | ||
| "lint": "eslint .", | ||
| "lint:fix": "eslint --fix .", | ||
| "test": "jest", | ||
| "testunit": "jest", | ||
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "devDependencies": { | ||
| "@rocket.chat/jest-presets": "workspace:~", | ||
| "@rocket.chat/tsconfig": "workspace:~", | ||
| "@rollup/plugin-terser": "~1.0.0", | ||
| "@rollup/plugin-typescript": "~12.3.0", | ||
| "eslint": "~9.39.5", | ||
| "jest": "~30.2.0", | ||
| "prettier": "~3.3.3", | ||
| "rollup": "~4.62.3", | ||
| "ts-jest": "~29.4.11", | ||
| "typescript": "~5.9.3" | ||
| }, | ||
| "publishConfig": { | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
|
||
| "access": "public" | ||
| }, | ||
| "volta": { | ||
| "extends": "../../package.json" | ||
| } | ||
| } | ||
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 |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import terser from '@rollup/plugin-terser'; | ||
| import typescript from '@rollup/plugin-typescript'; | ||
| import { defineConfig } from 'rollup'; | ||
|
|
||
| import pkg from './package.json' with { type: 'json' }; | ||
|
|
||
| export default defineConfig({ | ||
| input: 'src/index.ts', | ||
| output: [ | ||
| { | ||
| file: pkg.main, | ||
| format: 'cjs', | ||
| sourcemap: true, | ||
| }, | ||
| { | ||
| file: pkg.module, | ||
| format: 'es', | ||
| sourcemap: true, | ||
| }, | ||
| ], | ||
| plugins: [ | ||
| typescript({ | ||
| tsconfig: './tsconfig.build.json', | ||
| }), | ||
| terser({ | ||
| module: true, | ||
| output: { | ||
| comments: false, | ||
| }, | ||
| }), | ||
| ], | ||
| }); |
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.