@live-state/sync 0.0.1 → 0.0.3
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/chunk-G5SVBG4B.js +1 -0
- package/dist/chunk-LLHCJUB6.js +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/fetch-client.d.ts +2 -2
- package/dist/fetch-client.js +1 -1
- package/dist/{index-BS5EvFM-.d.ts → index-4Y_YcJTJ.d.ts} +203 -41
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +36 -12
- package/dist/index.d.ts +36 -12
- package/dist/index.js +1 -1
- package/dist/server.cjs +2 -2
- package/dist/server.d.cts +38 -33
- package/dist/server.d.ts +38 -33
- package/dist/server.js +2 -2
- package/package.json +17 -4
- package/dist/chunk-2W2QGOPU.js +0 -1
- package/dist/chunk-EK7ODJWE.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-state/sync",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,21 +21,32 @@
|
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
25
|
+
"@testing-library/react": "^16.3.0",
|
|
26
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
24
27
|
"@types/express": "^4.17.21",
|
|
25
28
|
"@types/express-ws": "^3.0.5",
|
|
26
29
|
"@types/node": "^20.11.24",
|
|
27
30
|
"@types/qs": "^6.14.0",
|
|
31
|
+
"@types/react": "^18.2.62",
|
|
32
|
+
"@types/react-dom": "^18.2.19",
|
|
28
33
|
"@types/ws": "^8.5.13",
|
|
34
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
29
35
|
"cookie": "^1.0.2",
|
|
30
36
|
"express": "^4.21.2",
|
|
37
|
+
"jsdom": "^26.1.0",
|
|
31
38
|
"react": "18.0.0",
|
|
39
|
+
"react-dom": "^18.2.0",
|
|
32
40
|
"tsup": "^8.0.2",
|
|
33
41
|
"typescript": "5.5.4",
|
|
34
42
|
"ulid": "^3.0.0",
|
|
43
|
+
"vitest": "^3.2.4",
|
|
35
44
|
"@repo/typescript-config": "0.0.0"
|
|
36
45
|
},
|
|
37
46
|
"dependencies": {
|
|
47
|
+
"fast-deep-equal": "^3.1.3",
|
|
38
48
|
"idb": "^8.0.3",
|
|
49
|
+
"js-xxhash": "^4.0.0",
|
|
39
50
|
"kysely": "^0.28.2",
|
|
40
51
|
"qs": "^6.14.0",
|
|
41
52
|
"ws": "^8.18.0",
|
|
@@ -58,7 +69,7 @@
|
|
|
58
69
|
"require": "./dist/client.js"
|
|
59
70
|
},
|
|
60
71
|
"./client/fetch": {
|
|
61
|
-
"types": "./src/client/fetch
|
|
72
|
+
"types": "./src/client/fetch/index.ts",
|
|
62
73
|
"import": "./dist/fetch-client.js",
|
|
63
74
|
"require": "./dist/fetch-client.js"
|
|
64
75
|
}
|
|
@@ -78,7 +89,9 @@
|
|
|
78
89
|
"scripts": {
|
|
79
90
|
"build": "NODE_ENV=production tsup",
|
|
80
91
|
"dev": "NODE_ENV=development tsup --watch",
|
|
81
|
-
"lint": "
|
|
82
|
-
"typecheck": "tsc --noEmit"
|
|
92
|
+
"lint": "biome lint",
|
|
93
|
+
"typecheck": "tsc --noEmit --project . && tsc --noEmit --project src/client",
|
|
94
|
+
"test": "vitest run",
|
|
95
|
+
"test:watch": "vitest"
|
|
83
96
|
}
|
|
84
97
|
}
|
package/dist/chunk-2W2QGOPU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var x="0123456789ABCDEFGHJKMNPQRSTVWXYZ";var c;(function(e){e.Base32IncorrectEncoding="B32_ENC_INVALID",e.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",e.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",e.EncodeTimeNegative="ENC_TIME_NEG",e.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",e.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",e.PRNGDetectFailure="PRNG_DETECT",e.ULIDInvalid="ULID_INVALID",e.Unexpected="UNEXPECTED",e.UUIDInvalid="UUID_INVALID";})(c||(c={}));var l=class extends Error{constructor(t,n){super(`${n} (${t})`),this.name="ULIDError",this.code=t;}};function L(e){let t=Math.floor(e()*32);return t===32&&(t=31),x.charAt(t)}function I(e){let t=M(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return ()=>{let i=new Uint8Array(1);return n.getRandomValues(i),i[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return ()=>n.randomBytes(1).readUInt8()/255;throw new l(c.PRNGDetectFailure,"Failed to find a reliable PRNG")}function M(){return _()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function E(e,t){let n="";for(;e>0;e--)n=L(t)+n;return n}function A(e,t=10){if(isNaN(e))throw new l(c.EncodeTimeValueMalformed,`Time must be a number: ${e}`);if(e>0xffffffffffff)throw new l(c.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${0xffffffffffff}: ${e}`);if(e<0)throw new l(c.EncodeTimeNegative,`Time must be positive: ${e}`);if(Number.isInteger(e)===false)throw new l(c.EncodeTimeValueMalformed,`Time must be an integer: ${e}`);let n,i="";for(let a=t;a>0;a--)n=e%32,i=x.charAt(n)+i,e=(e-n)/32;return i}function _(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function R(e,t){let n=I(),i=Date.now();return A(i,10)+E(16,n)}var S=()=>R().toLowerCase(),j=(e,t)=>typeof e=="function"?e(t):e;var w=(e,t,n=[])=>new Proxy(e,{get:(i,a)=>{var y,h;if(a==="__isProxy__")return true;let r=(y=t.get)==null?void 0:y.call(t,i,[...n,a]);if(r!==void 0)return r;let o=i,s=a;return (h=o[s])!=null&&h.__isProxy__||(o[s]=w(typeof o[s]=="object"?o[s]:function(){},t,[...n,a])),o[s]},apply:(i,a,r)=>{var o;return (o=t.apply)==null?void 0:o.call(t,i,n,r)}});var b=e=>{if(e)return Array.isArray(e.value)?e.value.map(t=>b(t)):typeof e.value!="object"?e.value:Object.fromEntries(Object.entries(e.value).map(([t,n])=>[t,b(n)]))};export{S as a,j as b,w as c,b as d};
|
package/dist/chunk-EK7ODJWE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports);var l=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&f(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b};var n=(b,a,c)=>(c=b!=null?g(j(b)):{},l(a||!b||!b.__esModule?f(c,"default",{value:b,enumerable:true}):c,b));export{m as a,n as b};
|