Skip to content

Commit 0f7a5ae

Browse files
committed
v0.7.17
- Pure TS implementation of the Yoga engine to avoid infinite linear memory growth. - Optimized Diffviewer rendering algorithm to reduce large number of Yoga nodes allocated. - widestLine cache to reduce stringWidth recalculation. - Add clearYogaNodeReferences to prevent dangling WASM pointers. - Output instance reuse to reduce GC pressure - Set limited cache to prevent infinite growth
1 parent 41060d6 commit 0f7a5ae

62 files changed

Lines changed: 8148 additions & 708 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,13 @@ jobs:
5656
5757
### What's New
5858
59-
- Fix flashback caused by LSP communication anomaly
60-
- Tweak the optimization context of the notebook tool
61-
- Loop command add more time combination parameter compatibility
62-
59+
- Pure TS implementation of the Yoga engine to avoid infinite linear memory growth.
60+
- Optimized Diffviewer rendering algorithm to reduce large number of Yoga nodes allocated.
61+
- widestLine cache to reduce stringWidth recalculation.
62+
- Add clearYogaNodeReferences to prevent dangling WASM pointers.
63+
- Output instance reuse to reduce GC pressure
64+
- Set limited cache to prevent infinite growth
65+
6366
### Installation
6467
```bash
6568
npm install -g snow-ai

build.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as esbuild from 'esbuild';
22
import {copyFileSync, existsSync, mkdirSync} from 'fs';
33
import {builtinModules} from 'module';
4+
import {resolve} from 'path';
45

56
// Plugin to stub out optional dependencies
67
const stubPlugin = {
@@ -162,6 +163,9 @@ if (typeof globalThis.Path2D === 'undefined') {
162163
// Note: @microsoft/signalr dependencies (abort-controller, eventsource, fetch-cookie, node-fetch, tough-cookie) are NOT bundled
163164
// They are dynamically required at runtime and must be in package.json dependencies
164165
],
166+
alias: {
167+
'ink': resolve('source/vendor/ink/src/index.ts'),
168+
},
165169
plugins: [stubPlugin],
166170
minify: false,
167171
sourcemap: false,

0 commit comments

Comments
 (0)