Skip to content

refactor: consolidate rxjs imports to single entry point - #141

Merged
QuentinRoy merged 4 commits into
mainfrom
simplify-rxjs-imports
Jul 27, 2026
Merged

refactor: consolidate rxjs imports to single entry point#141
QuentinRoy merged 4 commits into
mainfrom
simplify-rxjs-imports

Conversation

@QuentinRoy

Copy link
Copy Markdown
Owner

Drop rxjs/operators import map entries and consolidate all source imports to from 'rxjs'.

  • RxJS v7+ re-exports all pipeable operators from the main rxjs entry point
  • Removes unnecessary separate import map entries for rxjs/operators
  • Updates RxJS version in docs/demo from 7.5.5 to 7.8.2 to match installed version

@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6a765a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
marking-menu Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the project’s RxJS usage to import pipeable operators from the single rxjs entry point, and updates the demo/docs import maps accordingly to remove rxjs/operators.

Changes:

  • Replace rxjs/operators imports across source + tests with from 'rxjs' named imports.
  • Remove rxjs/operators from Vite external/import-map dependency handling.
  • Update README + demo import maps to RxJS 7.8.2 and drop the rxjs/operators mapping.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
vite.demo.config.ts Removes rxjs/operators from the import-map externalization set for the demo build.
vite.config.ts Drops rxjs/operators from library build externals/globals.
src/navigation/novice-navigation.ts Consolidates RxJS operator imports into rxjs.
src/navigation/navigation.ts Consolidates RxJS operator imports into rxjs.
src/navigation/navigation.test.ts Consolidates RxJS operator imports (incl. deprecated multicasting operator) into rxjs.
src/navigation/expert-navigation.ts Consolidates RxJS operator imports into rxjs.
src/move/long-move.ts Consolidates RxJS operator imports into rxjs.
src/move/linear-drag.ts Moves pipeable operators into the existing rxjs import block.
src/move/linear-drag.test.ts Consolidates RxJS operator imports into rxjs.
src/move/dwelling.ts Consolidates RxJS operator imports into rxjs.
src/move/draw.ts Consolidates RxJS operator imports into rxjs.
src/marking-menu.ts Consolidates RxJS operator imports into rxjs.
src/marking-menu.test.ts Consolidates RxJS operator imports into rxjs.
src/layout/connect.ts Consolidates RxJS operator imports into rxjs.
README.md Updates the import-map example to RxJS 7.8.2 and removes rxjs/operators.
demo/index.html Updates the demo import map to RxJS 7.8.2 and removes rxjs/operators.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/navigation/novice-navigation.ts Outdated
Comment thread src/navigation/navigation.ts Outdated
Comment thread src/navigation/navigation.test.ts Outdated
Comment thread src/move/dwelling.ts Outdated
Comment thread src/move/linear-drag.test.ts Outdated
Comment thread vite.config.ts
@QuentinRoy
QuentinRoy enabled auto-merge (squash) July 27, 2026 11:13
@QuentinRoy
QuentinRoy merged commit 737bb95 into main Jul 27, 2026
1 check passed
@QuentinRoy
QuentinRoy deleted the simplify-rxjs-imports branch July 27, 2026 11:15
@github-actions github-actions Bot mentioned this pull request Jul 27, 2026
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