@tldraw/utils 5.2.0-canary.e09b35094c3c → 5.2.0-canary.ed81413e0a67

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.
package/README.md CHANGED
@@ -4,11 +4,15 @@ Utility functions used by tldraw.
4
4
 
5
5
  ## Documentation
6
6
 
7
+ Documentation for the most recent release can be found on [tldraw.dev/docs](https://tldraw.dev/docs), including [reference docs](https://tldraw.dev/reference/editor/Editor). Our release notes can be found [here](https://tldraw.dev/releases).
8
+
9
+ For more agent-friendly docs, see our [LLMs.txt](https://tldraw.dev/llms.txt).
10
+
7
11
  A `DOCS.md` file is included alongside this README in the published package, with detailed API documentation and usage examples.
8
12
 
9
13
  ## Contribution
10
14
 
11
- Please see our [contributing guide](https://github.com/tldraw/tldraw/blob/main/CONTRIBUTING.md). Found a bug? Please [submit an issue](https://github.com/tldraw/tldraw/issues/new).
15
+ Found a bug? Please [submit an issue](https://github.com/tldraw/tldraw/issues/new).
12
16
 
13
17
  ## License
14
18
 
package/dist-cjs/index.js CHANGED
@@ -171,7 +171,7 @@ var import_version2 = require("./lib/version");
171
171
  var import_warn = require("./lib/warn");
172
172
  (0, import_version.registerTldrawLibraryVersion)(
173
173
  "@tldraw/utils",
174
- "5.2.0-canary.e09b35094c3c",
174
+ "5.2.0-canary.ed81413e0a67",
175
175
  "cjs"
176
176
  );
177
177
  //# sourceMappingURL=index.js.map
@@ -102,7 +102,7 @@ import { registerTldrawLibraryVersion as registerTldrawLibraryVersion2 } from ".
102
102
  import { warnDeprecatedGetter, warnOnce } from "./lib/warn.mjs";
103
103
  registerTldrawLibraryVersion(
104
104
  "@tldraw/utils",
105
- "5.2.0-canary.e09b35094c3c",
105
+ "5.2.0-canary.ed81413e0a67",
106
106
  "esm"
107
107
  );
108
108
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/utils",
3
3
  "description": "tldraw infinite canvas SDK (private utilities).",
4
- "version": "5.2.0-canary.e09b35094c3c",
4
+ "version": "5.2.0-canary.ed81413e0a67",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -56,7 +56,7 @@
56
56
  "@types/lodash.throttle": "^4.1.9",
57
57
  "@types/lodash.uniq": "^4.5.9",
58
58
  "lazyrepo": "0.0.0-alpha.27",
59
- "vitest": "^3.2.4"
59
+ "vitest": "^4.1.7"
60
60
  },
61
61
  "module": "dist-esm/index.mjs",
62
62
  "source": "src/index.ts",
@@ -1,4 +1,4 @@
1
- import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
1
+ import { afterEach, beforeEach, describe, expect, it, type MockInstance, vi } from 'vitest'
2
2
  import { PERFORMANCE_COLORS, PERFORMANCE_PREFIX_COLOR } from './perf'
3
3
  import { PerformanceTracker } from './PerformanceTracker'
4
4
 
@@ -7,7 +7,7 @@ describe('PerformanceTracker', () => {
7
7
  let mockPerformanceNow: ReturnType<typeof vi.fn>
8
8
  let mockRequestAnimationFrame: ReturnType<typeof vi.fn>
9
9
  let mockCancelAnimationFrame: ReturnType<typeof vi.fn>
10
- let mockConsoleDebug: ReturnType<typeof vi.fn>
10
+ let mockConsoleDebug: MockInstance<typeof console.debug>
11
11
  let frameId = 1
12
12
 
13
13
  beforeEach(() => {
@@ -24,8 +24,7 @@ describe('PerformanceTracker', () => {
24
24
  vi.stubGlobal('cancelAnimationFrame', mockCancelAnimationFrame)
25
25
 
26
26
  // Mock console.debug
27
- mockConsoleDebug = vi.fn()
28
- vi.spyOn(console, 'debug').mockImplementation(mockConsoleDebug)
27
+ mockConsoleDebug = vi.spyOn(console, 'debug').mockImplementation(() => {})
29
28
  })
30
29
 
31
30
  afterEach(() => {
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
2
2
  import { clearRegisteredVersionsForTests, registerTldrawLibraryVersion } from './version'
3
3
 
4
4
  describe('version utilities', () => {
5
- let mockConsoleLog: ReturnType<typeof vi.fn>
5
+ let mockConsoleLog: ReturnType<typeof vi.fn<(...args: any[]) => any>>
6
6
 
7
7
  beforeEach(() => {
8
8
  mockConsoleLog = vi.fn()