@tldraw/sync-core 4.6.0-canary.7d923de70e17 → 4.6.0-canary.7ea68e5d3c36

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/dist-cjs/index.js CHANGED
@@ -61,7 +61,7 @@ var import_TLSyncRoom = require("./lib/TLSyncRoom");
61
61
  var import_TLSyncStorage = require("./lib/TLSyncStorage");
62
62
  (0, import_utils.registerTldrawLibraryVersion)(
63
63
  "@tldraw/sync-core",
64
- "4.6.0-canary.7d923de70e17",
64
+ "4.6.0-canary.7ea68e5d3c36",
65
65
  "cjs"
66
66
  );
67
67
  //# sourceMappingURL=index.js.map
@@ -36,7 +36,7 @@ import {
36
36
  } from "./lib/TLSyncStorage.mjs";
37
37
  registerTldrawLibraryVersion(
38
38
  "@tldraw/sync-core",
39
- "4.6.0-canary.7d923de70e17",
39
+ "4.6.0-canary.7ea68e5d3c36",
40
40
  "esm"
41
41
  );
42
42
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/sync-core",
3
3
  "description": "tldraw infinite canvas SDK (multiplayer sync).",
4
- "version": "4.6.0-canary.7d923de70e17",
4
+ "version": "4.6.0-canary.7ea68e5d3c36",
5
5
  "author": {
6
6
  "name": "tldraw GB Ltd.",
7
7
  "email": "hello@tldraw.com"
@@ -48,17 +48,17 @@
48
48
  "@types/uuid-readable": "^0.0.3",
49
49
  "react": "^19.2.1",
50
50
  "react-dom": "^19.2.1",
51
- "tldraw": "4.6.0-canary.7d923de70e17",
51
+ "tldraw": "4.6.0-canary.7ea68e5d3c36",
52
52
  "typescript": "^5.8.3",
53
53
  "uuid-by-string": "^4.0.0",
54
54
  "uuid-readable": "^0.0.2",
55
55
  "vitest": "^3.2.4"
56
56
  },
57
57
  "dependencies": {
58
- "@tldraw/state": "4.6.0-canary.7d923de70e17",
59
- "@tldraw/store": "4.6.0-canary.7d923de70e17",
60
- "@tldraw/tlschema": "4.6.0-canary.7d923de70e17",
61
- "@tldraw/utils": "4.6.0-canary.7d923de70e17",
58
+ "@tldraw/state": "4.6.0-canary.7ea68e5d3c36",
59
+ "@tldraw/store": "4.6.0-canary.7ea68e5d3c36",
60
+ "@tldraw/tlschema": "4.6.0-canary.7ea68e5d3c36",
61
+ "@tldraw/utils": "4.6.0-canary.7ea68e5d3c36",
62
62
  "nanoevents": "^7.0.1",
63
63
  "ws": "^8.18.0"
64
64
  },
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var findMin_exports = {};
20
- __export(findMin_exports, {
21
- findMin: () => findMin
22
- });
23
- module.exports = __toCommonJS(findMin_exports);
24
- function findMin(values) {
25
- let min = null;
26
- for (const value of values) {
27
- if (min === null) {
28
- min = value;
29
- } else if (value < min) {
30
- min = value;
31
- }
32
- }
33
- return min;
34
- }
35
- //# sourceMappingURL=findMin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/lib/findMin.ts"],
4
- "sourcesContent": ["/**\n * Finds the minimum value from an iterable of numbers.\n *\n * @param values - An iterable of numbers to find the minimum from\n * @returns The minimum value, or null if the iterable is empty\n * @example\n * ```ts\n * findMin([3, 1, 4, 1, 5]) // returns 1\n * findMin(new Set([10, 5, 8])) // returns 5\n * findMin([]) // returns null\n * ```\n */\nexport function findMin(values: Iterable<number>): number | null {\n\tlet min: number | null = null\n\tfor (const value of values) {\n\t\tif (min === null) {\n\t\t\tmin = value\n\t\t} else if (value < min) {\n\t\t\tmin = value\n\t\t}\n\t}\n\treturn min\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,SAAS,QAAQ,QAAyC;AAChE,MAAI,MAAqB;AACzB,aAAW,SAAS,QAAQ;AAC3B,QAAI,QAAQ,MAAM;AACjB,YAAM;AAAA,IACP,WAAW,QAAQ,KAAK;AACvB,YAAM;AAAA,IACP;AAAA,EACD;AACA,SAAO;AACR;",
6
- "names": []
7
- }
@@ -1,15 +0,0 @@
1
- function findMin(values) {
2
- let min = null;
3
- for (const value of values) {
4
- if (min === null) {
5
- min = value;
6
- } else if (value < min) {
7
- min = value;
8
- }
9
- }
10
- return min;
11
- }
12
- export {
13
- findMin
14
- };
15
- //# sourceMappingURL=findMin.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/lib/findMin.ts"],
4
- "sourcesContent": ["/**\n * Finds the minimum value from an iterable of numbers.\n *\n * @param values - An iterable of numbers to find the minimum from\n * @returns The minimum value, or null if the iterable is empty\n * @example\n * ```ts\n * findMin([3, 1, 4, 1, 5]) // returns 1\n * findMin(new Set([10, 5, 8])) // returns 5\n * findMin([]) // returns null\n * ```\n */\nexport function findMin(values: Iterable<number>): number | null {\n\tlet min: number | null = null\n\tfor (const value of values) {\n\t\tif (min === null) {\n\t\t\tmin = value\n\t\t} else if (value < min) {\n\t\t\tmin = value\n\t\t}\n\t}\n\treturn min\n}\n"],
5
- "mappings": "AAYO,SAAS,QAAQ,QAAyC;AAChE,MAAI,MAAqB;AACzB,aAAW,SAAS,QAAQ;AAC3B,QAAI,QAAQ,MAAM;AACjB,YAAM;AAAA,IACP,WAAW,QAAQ,KAAK;AACvB,YAAM;AAAA,IACP;AAAA,EACD;AACA,SAAO;AACR;",
6
- "names": []
7
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Finds the minimum value from an iterable of numbers.
3
- *
4
- * @param values - An iterable of numbers to find the minimum from
5
- * @returns The minimum value, or null if the iterable is empty
6
- * @example
7
- * ```ts
8
- * findMin([3, 1, 4, 1, 5]) // returns 1
9
- * findMin(new Set([10, 5, 8])) // returns 5
10
- * findMin([]) // returns null
11
- * ```
12
- */
13
- export function findMin(values: Iterable<number>): number | null {
14
- let min: number | null = null
15
- for (const value of values) {
16
- if (min === null) {
17
- min = value
18
- } else if (value < min) {
19
- min = value
20
- }
21
- }
22
- return min
23
- }