Repository navigation
fix(tiptap): merge Context.ts into Context.tsrx to remove the ./Context ambiguity - #1502
Merged
Merged
Conversation
aleclarson
marked this pull request as ready for review
October 1, 2026 15:39
5 of 6 tasks
trueadm
added a commit
that referenced
this pull request
Oct 1, 2026
…resource-leaks Both branches merged main's #1482 squash separately, so the merge had two bases. This branch already contains #1483's changes, so conflicts keep this side; the only new content is main's tiptap fix (#1502). Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
added a commit
that referenced
this pull request
Oct 1, 2026
Brings in #1500, #1471, and #1502. #1500 changes vitest.config.js, which every user-app grader digest covers, so manifest.jsonl is regenerated rather than hand-merged. The Strong repair ledger, prompts, and alternatives are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
aleclarson
added a commit
to octane-xplat/octane-xplat
that referenced
this pull request
Oct 1, 2026
…iptap patch PR octanejs/octane#1501 (process.env guard) was closed upstream; the patched source should not diverge in runtime behavior. The patch now only adds a module-local process declaration for typecheck and keeps the Context merge, which is being upstreamed as octanejs/octane#1502.
aleclarson
added a commit
to octane-xplat/octane-xplat
that referenced
this pull request
Oct 8, 2026
The ambient @nativescript/types URL declaration (no toJSON, matching the
native runtime) owns the global URL binding in app typecheck programs, so
new URL(...) in these node-side configs no longer satisfies fs PathLike,
which wants import("url").URL. Import the node class explicitly.
---
chore(deps): bump @nativescript/types to 9.1.4 and @octanejs/tiptap to 0.0.52
@nativescript/types 9.1.4 ships the URL/URLSearchParams ambient
declarations (NativeScript/NativeScript#11482), so the pnpm patch is
dropped entirely — manifest entry, patch file, and patchedDependencies.
@octanejs/tiptap 0.0.52 lands the './Context' disambiguation
(octanejs/octane#1502), so the patch shrinks to the remaining
process.env guard in useEditor.ts (closed unmerged upstream).
types-ios 9.1.3 tightens nullability: NSNotification.userInfo and
UIApplication.keyWindow are now nullable — optional-chain the
interruption observer reads in audio.ios and cast the keyWindow
fallback in auth-session.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Context.tsintoContext.tsrxso the package has oneContextmodule again, matching upstreamContext.tsx.Why
src/Context.tsandsrc/Context.tsrxshare the./Contextspecifier. Resolvers that order.tsrxahead of.ts(the octane toolchain resolves.tsrxfirst when compiling consumers' programs over shipped sources) then resolve./ContexttoContext.tsrxfrom every site:Context.tsrximportsEditorContext/useCurrentEditor/EditorContextValuefrom./Context— a self-import that reports missing exports.index.tsstar-exports both'./Context'and'./Context.tsrx', which then resolve to the same module — duplicate re-exports ofEditorContext,EditorContextValue, anduseCurrentEditor..tsrxprioritized. Explicit.tsspecifiers would also fix it but imposeallowImportingTsExtensionson every consumer of this source-shipped package; the merge carries no new toolchain requirement and restores the upstream file mapping one-to-one.Changes
src/Context.tsrx: gains theEditorContextValuetype,EditorContextconstant, anduseCurrentEditorhook (contents of the deletedContext.ts).src/Context.tsrx.d.ts: declares the moved exports.src/Context.ts: deleted.src/index.ts: singleexport * from './Context.tsrx'(the'./Context'star-export was the ambiguous one).src/Tiptap.tsrx: importsEditorContextfrom'./Context.tsrx'.Validation
pnpm format:files(changed files unchanged)pnpm typecheck:files(tsrx-tsc, clean)vitest run --project tiptap --project tiptap-ssr --project tiptap-pristine --project tiptap-upstream --project tiptap-differential— 25 files / 45 tests passpnpm upstream:verify— pristine/adapted trees verified, no missing/mismatched/unexpectedpnpm format:check(not run — repo-wide)pnpm test(not run — repo-wide)Risk / follow-ups
Context.tsx↔Context.tsrxcorrespondence is restored rather than forked.Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Refactor consolidates duplicate modules and fixes import paths; no behavioral or API surface change for consumers.
Overview
Fixes module resolution when the toolchain prefers
.tsrxover.ts:Context.tsandContext.tsrxboth answered to./Context, which causedContext.tsrxto self-import missing symbols andindex.tsto star-export the same module twice.The PR deletes
Context.tsand inlinesEditorContextValue,EditorContext, anduseCurrentEditorintoContext.tsrx(and its.d.ts), matching upstream’s singleContext.tsxlayout. The barrel now exports only./Context.tsrx, and internal imports (Tiptap.tsrx, menu components) point atContext.tsrxexplicitly. Public export names are unchanged—only where they are defined and how resolution works.Reviewed by Cursor Bugbot for commit 7b7e5a5. Bugbot is set up for automated code reviews on this repo. Configure here.