Files
cosmos-explorer/patches/@nteract+commutable+7.5.1.patch
T
Jade Welton bae31897f6 Update immutable from 4.0.0-rc.12 to ^4.3.8
- Update immutable dependency to stable v4.3.8
- Add type assertions for getIn calls that now return unknown in v4 stable
- Add skipLibCheck to tsconfig.json for @nteract and @octokit .d.ts compat
- Add patch-package patch for @nteract/commutable .ts source files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-01 11:17:23 -07:00

74 lines
2.7 KiB
Diff

diff --git a/node_modules/@nteract/commutable/src/structures.ts b/node_modules/@nteract/commutable/src/structures.ts
index c0ff6cb..b0117b7 100644
--- a/node_modules/@nteract/commutable/src/structures.ts
+++ b/node_modules/@nteract/commutable/src/structures.ts
@@ -193,6 +193,7 @@ export function markCellDeleting(
["cellMap", cellId],
nb
.getIn(["cellMap", cellId])
+ // @ts-ignore - immutable v4 getIn returns unknown
.setIn(["metadata", "nteract", "transient", "deleting"], true)
)
);
@@ -215,6 +216,7 @@ export function markCellNotDeleting(
["cellMap", cellId],
nb
.getIn(["cellMap", cellId])
+ // @ts-ignore - immutable v4 getIn returns unknown
.setIn(["metadata", "nteract", "transient", "deleting"], false)
)
);
diff --git a/node_modules/@nteract/commutable/src/v3.ts b/node_modules/@nteract/commutable/src/v3.ts
index 1ffa956..4e9078d 100644
--- a/node_modules/@nteract/commutable/src/v3.ts
+++ b/node_modules/@nteract/commutable/src/v3.ts
@@ -114,7 +114,7 @@ function createImmutableMarkdownCell(
return makeMarkdownCell({
cell_type: cell.cell_type,
source: demultiline(cell.source),
- metadata: immutableFromJS(cell.metadata)
+ metadata: immutableFromJS(cell.metadata) as any
});
}
@@ -172,7 +172,7 @@ function createImmutableCodeCell(cell: CodeCell): ImmutableCodeCell {
source: demultiline(cell.input),
outputs: ImmutableList(cell.outputs.map(createImmutableOutput)),
execution_count: cell.prompt_number,
- metadata: immutableFromJS(cell.metadata)
+ metadata: immutableFromJS(cell.metadata) as any
});
}
@@ -180,7 +180,7 @@ function createImmutableRawCell(cell: RawCell): ImmutableRawCell {
return makeRawCell({
cell_type: cell.cell_type,
source: demultiline(cell.source),
- metadata: immutableFromJS(cell.metadata)
+ metadata: immutableFromJS(cell.metadata) as any
});
}
@@ -198,7 +198,7 @@ function createImmutableHeadingCell(cell: HeadingCell): ImmutableMarkdownCell {
)
)
: cell.source,
- metadata: immutableFromJS(cell.metadata)
+ metadata: immutableFromJS(cell.metadata) as any
});
}
diff --git a/node_modules/@nteract/commutable/src/v4.ts b/node_modules/@nteract/commutable/src/v4.ts
index a6dd478..dd9a741 100644
--- a/node_modules/@nteract/commutable/src/v4.ts
+++ b/node_modules/@nteract/commutable/src/v4.ts
@@ -227,7 +227,7 @@ export function fromJS(
cellMap: cellStructure.cellMap.asImmutable(),
nbformat_minor: notebook.nbformat_minor,
nbformat: 4,
- metadata: immutableFromJS(notebook.metadata)
+ metadata: immutableFromJS(notebook.metadata) as any
});
}