Skip to content

Commit 88cf057

Browse files
committed
chore: update yoga-wasm-web to yoga-layout (resolves #647)
1 parent e463d9d commit 88cf057

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"widest-line": "^5.0.0",
6767
"wrap-ansi": "^9.0.0",
6868
"ws": "^8.18.0",
69-
"yoga-wasm-web": "~0.3.3"
69+
"yoga-layout": "~3.2.1"
7070
},
7171
"devDependencies": {
7272
"@faker-js/faker": "^9.2.0",

src/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Yoga, {type Node as YogaNode} from 'yoga-wasm-web/auto';
1+
import Yoga, {type Node as YogaNode} from 'yoga-layout';
22
import measureText from './measure-text.js';
33
import {type Styles} from './styles.js';
44
import wrapText from './wrap-text.js';

src/get-max-width.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Yoga, {type Node as YogaNode} from 'yoga-wasm-web/auto';
1+
import Yoga, {type Node as YogaNode} from 'yoga-layout';
22

33
const getMaxWidth = (yogaNode: YogaNode) => {
44
return (

src/ink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import autoBind from 'auto-bind';
77
import signalExit from 'signal-exit';
88
import patchConsole from 'patch-console';
99
import {type FiberRoot} from 'react-reconciler';
10-
import Yoga from 'yoga-wasm-web/auto';
10+
import Yoga from 'yoga-layout';
1111
import reconciler from './reconciler.js';
1212
import render from './renderer.js';
1313
import * as dom from './dom.js';

src/reconciler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import process from 'node:process';
22
import createReconciler from 'react-reconciler';
33
import {DefaultEventPriority} from 'react-reconciler/constants.js';
4-
import Yoga, {type Node as YogaNode} from 'yoga-wasm-web/auto';
4+
import Yoga, {type Node as YogaNode} from 'yoga-layout';
55
import {
66
createTextNode,
77
appendChildNode,

src/render-node-to-output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import widestLine from 'widest-line';
22
import indentString from 'indent-string';
3-
import Yoga from 'yoga-wasm-web/auto';
3+
import Yoga from 'yoga-layout';
44
import wrapText from './wrap-text.js';
55
import getMaxWidth from './get-max-width.js';
66
import squashTextNodes from './squash-text-nodes.js';

src/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import {type Boxes, type BoxStyle} from 'cli-boxes';
33
import {type LiteralUnion} from 'type-fest';
44
import {type ForegroundColorName} from 'ansi-styles'; // Note: We import directly from `ansi-styles` to avoid a bug in TypeScript.
5-
import Yoga, {type Node as YogaNode} from 'yoga-wasm-web/auto';
5+
import Yoga, {type Node as YogaNode} from 'yoga-layout';
66

77
export type Styles = {
88
readonly textWrap?:

0 commit comments

Comments
 (0)