@kitschpatrol/tldraw-cli 5.0.13 → 5.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>tldraw via tldraw-cli</title>
7
- <script type="module" crossorigin src="/assets/index-Dur5mwK7.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-DV6RkLqi.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-DWlTSBfy.css">
9
9
  </head>
10
10
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/tldraw-cli",
3
- "version": "5.0.13",
3
+ "version": "5.0.14",
4
4
  "description": "A CLI tool and TypeScript library for exporting tldraw sketches to PNG or SVG images.",
5
5
  "keywords": [
6
6
  "tldraw",
@@ -43,12 +43,12 @@
43
43
  "dist/*"
44
44
  ],
45
45
  "dependencies": {
46
- "@hono/node-server": "^1.19.11",
46
+ "@hono/node-server": "^1.19.12",
47
47
  "@sindresorhus/slugify": "^3.0.0",
48
48
  "@types/node": "^20.19.37",
49
49
  "cheerio": "^1.2.0",
50
- "get-port": "^7.1.0",
51
- "hono": "^4.12.8",
50
+ "get-port": "^7.2.0",
51
+ "hono": "^4.12.9",
52
52
  "nanoid": "^5.1.7",
53
53
  "natural-orderby": "^5.0.0",
54
54
  "open": "^11.0.0",
@@ -63,18 +63,18 @@
63
63
  },
64
64
  "devDependencies": {
65
65
  "@arethetypeswrong/core": "^0.18.2",
66
- "@blazediff/vitest": "^1.1.11",
66
+ "@blazediff/vitest": "^1.1.12",
67
67
  "@fontsource/inter": "^5.2.8",
68
- "@kitschpatrol/shared-config": "^6.0.3",
69
- "@tldraw/assets": "^4.5.3",
68
+ "@kitschpatrol/shared-config": "^7.0.0",
69
+ "@tldraw/assets": "^4.5.6",
70
70
  "@types/react": "^19.2.14",
71
71
  "@types/react-dom": "^19.2.3",
72
72
  "@types/yargs": "^17.0.35",
73
73
  "@vitejs/plugin-react": "^6.0.1",
74
74
  "bumpp": "^11.0.1",
75
- "esbuild": "^0.27.4",
76
- "mdat-plugin-cli-help": "^1.0.7",
77
- "node-addon-api": "^8.6.0",
75
+ "esbuild": "^0.27.5",
76
+ "mdat-plugin-cli-help": "^2.0.0",
77
+ "node-addon-api": "^8.7.0",
78
78
  "node-gyp": "^12.2.0",
79
79
  "publint": "^0.3.18",
80
80
  "react": "^19.2.4",
@@ -82,16 +82,22 @@
82
82
  "rolldown": "1.0.0-rc.10",
83
83
  "safe-stable-stringify": "^2.5.0",
84
84
  "strip-ansi": "^7.2.0",
85
- "tldraw": "^4.5.3",
86
- "tsdown": "^0.21.4",
85
+ "tldraw": "^4.5.6",
86
+ "tsdown": "^0.21.7",
87
87
  "tsx": "^4.21.0",
88
88
  "typescript": "~5.9.3",
89
- "vite": "^8.0.1",
90
- "vitest": "^4.1.0"
89
+ "vite": "^8.0.3",
90
+ "vitest": "^4.1.2"
91
91
  },
92
92
  "engines": {
93
93
  "node": ">=20.19.0"
94
94
  },
95
+ "devEngines": {
96
+ "runtime": {
97
+ "name": "node",
98
+ "version": ">=22.18.0"
99
+ }
100
+ },
95
101
  "publishConfig": {
96
102
  "access": "public"
97
103
  },
@@ -109,6 +115,6 @@
109
115
  "release": "bumpp --commit 'Release: %s' && pnpm run build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') && pnpm publish",
110
116
  "test": "vitest run",
111
117
  "test:watch": "pnpm run build && vitest",
112
- "tldraw:copy-assets": "rsync -av --include='/*/' --exclude='/*' --exclude='favicon.ico' ./node_modules/@tldraw/assets/ ./src/tldraw/public/"
118
+ "tldraw:copy-assets": "pnpm tsx ./scripts/copy-assets.ts"
113
119
  }
114
120
  }
package/readme.md CHANGED
@@ -1,17 +1,12 @@
1
- <!--+ Warning: Content inside HTML comment blocks was generated by mdat and may be overwritten. +-->
2
-
3
1
  <!-- title -->
4
2
 
5
3
  # @kitschpatrol/tldraw-cli
6
4
 
7
5
  <!-- /title -->
8
6
 
9
- <!-- badges -->
10
-
11
7
  [![NPM Package @kitschpatrol/tldraw-cli](https://img.shields.io/npm/v/@kitschpatrol/tldraw-cli.svg)](https://npmjs.com/package/@kitschpatrol/tldraw-cli)
12
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
13
-
14
- <!-- /badges -->
9
+ [![CI](https://github.com/kitschpatrol/tldraw-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/kitschpatrol/tldraw-cli/actions/workflows/ci.yml)
15
10
 
16
11
  <!-- description -->
17
12
 
@@ -376,7 +371,7 @@ await tldrawToImage('https://www.tldraw.com/s/v2_c_JsxJk8dag6QsrqExukis4')
376
371
  Mirrors the `tldraw open` CLI command.
377
372
 
378
373
  > [!IMPORTANT]
379
- > Due to recent tldraw.com requirements to login before sharing a sketch, opening a _local_ .tldr file with the `location: 'remote'` option is no longer supported.
374
+ > Due to recent tldraw\.com requirements to login before sharing a sketch, opening a _local_ .tldr file with the `location: 'remote'` option is no longer supported.
380
375
 
381
376
  ```tsx
382
377
  async function tldrawOpen(