@tldraw/utils 5.2.0-canary.c61eb676972d → 5.2.0-canary.cdae9f7c540a
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 +1 -1
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +2 -2
- package/src/lib/PerformanceTracker.test.ts +3 -4
- package/src/lib/version.test.ts +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ A `DOCS.md` file is included alongside this README in the published package, wit
|
|
|
8
8
|
|
|
9
9
|
## Contribution
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Found a bug? Please [submit an issue](https://github.com/tldraw/tldraw/issues/new).
|
|
12
12
|
|
|
13
13
|
## License
|
|
14
14
|
|
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.
|
|
174
|
+
"5.2.0-canary.cdae9f7c540a",
|
|
175
175
|
"cjs"
|
|
176
176
|
);
|
|
177
177
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
|
@@ -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.
|
|
105
|
+
"5.2.0-canary.cdae9f7c540a",
|
|
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.
|
|
4
|
+
"version": "5.2.0-canary.cdae9f7c540a",
|
|
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": "^
|
|
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:
|
|
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.
|
|
28
|
-
vi.spyOn(console, 'debug').mockImplementation(mockConsoleDebug)
|
|
27
|
+
mockConsoleDebug = vi.spyOn(console, 'debug').mockImplementation(() => {})
|
|
29
28
|
})
|
|
30
29
|
|
|
31
30
|
afterEach(() => {
|
package/src/lib/version.test.ts
CHANGED
|
@@ -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()
|