@use-everywhere/core 0.4.1 → 0.6.0
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/index.cjs +176 -95
- package/dist/index.d.cts +16 -42
- package/dist/index.d.ts +16 -42
- package/dist/index.js +173 -90
- package/dist/testing.cjs +84 -0
- package/dist/testing.d.cts +30 -0
- package/dist/testing.d.ts +30 -0
- package/dist/testing.js +56 -0
- package/dist/transport.types-tQ1cu6Xm.d.cts +12 -0
- package/dist/transport.types-tQ1cu6Xm.d.ts +12 -0
- package/package.json +31 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@use-everywhere/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Cross-tab shared state, events, presence, and cross-origin window channels",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonatan Kruszewski <jonakrusze@gmail.com>",
|
|
@@ -38,6 +38,16 @@
|
|
|
38
38
|
"types": "./dist/index.d.cts",
|
|
39
39
|
"default": "./dist/index.cjs"
|
|
40
40
|
}
|
|
41
|
+
},
|
|
42
|
+
"./testing": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/testing.d.ts",
|
|
45
|
+
"default": "./dist/testing.js"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/testing.d.cts",
|
|
49
|
+
"default": "./dist/testing.cjs"
|
|
50
|
+
}
|
|
41
51
|
}
|
|
42
52
|
},
|
|
43
53
|
"files": [
|
|
@@ -48,49 +58,43 @@
|
|
|
48
58
|
"name": "everything (import *)",
|
|
49
59
|
"path": "dist/index.js",
|
|
50
60
|
"import": "*",
|
|
51
|
-
"limit": "
|
|
61
|
+
"limit": "5 kB"
|
|
52
62
|
},
|
|
53
63
|
{
|
|
54
64
|
"name": "createLeader",
|
|
55
65
|
"path": "dist/index.js",
|
|
56
66
|
"import": "{ createLeader }",
|
|
57
|
-
"limit": "1.
|
|
67
|
+
"limit": "1.6 kB"
|
|
58
68
|
},
|
|
59
69
|
{
|
|
60
70
|
"name": "createSharedStore",
|
|
61
71
|
"path": "dist/index.js",
|
|
62
72
|
"import": "{ createSharedStore }",
|
|
63
|
-
"limit": "
|
|
73
|
+
"limit": "2.25 kB"
|
|
64
74
|
},
|
|
65
75
|
{
|
|
66
76
|
"name": "createChannel",
|
|
67
77
|
"path": "dist/index.js",
|
|
68
78
|
"import": "{ createChannel }",
|
|
69
|
-
"limit": "
|
|
79
|
+
"limit": "1.25 kB"
|
|
70
80
|
},
|
|
71
81
|
{
|
|
72
82
|
"name": "createPresence",
|
|
73
83
|
"path": "dist/index.js",
|
|
74
84
|
"import": "{ createPresence }",
|
|
75
|
-
"limit": "1 kB"
|
|
85
|
+
"limit": "1.35 kB"
|
|
76
86
|
},
|
|
77
87
|
{
|
|
78
88
|
"name": "openWindow (opener side)",
|
|
79
89
|
"path": "dist/index.js",
|
|
80
90
|
"import": "{ openWindow }",
|
|
81
|
-
"limit": "1.
|
|
91
|
+
"limit": "1.3 kB"
|
|
82
92
|
},
|
|
83
93
|
{
|
|
84
94
|
"name": "connectToOpener (child side)",
|
|
85
95
|
"path": "dist/index.js",
|
|
86
96
|
"import": "{ connectToOpener }",
|
|
87
|
-
"limit": "1 kB"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "MemoryHub (test transport)",
|
|
91
|
-
"path": "dist/index.js",
|
|
92
|
-
"import": "{ MemoryHub }",
|
|
93
|
-
"limit": "300 B"
|
|
97
|
+
"limit": "1.15 kB"
|
|
94
98
|
},
|
|
95
99
|
{
|
|
96
100
|
"name": "observeBus + enableDebug",
|
|
@@ -103,6 +107,12 @@
|
|
|
103
107
|
"path": "dist/index.js",
|
|
104
108
|
"import": "{ localStorageAdapter }",
|
|
105
109
|
"limit": "500 B"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "MemoryHub (testing subpath)",
|
|
113
|
+
"path": "dist/testing.js",
|
|
114
|
+
"import": "{ MemoryHub }",
|
|
115
|
+
"limit": "350 B"
|
|
106
116
|
}
|
|
107
117
|
],
|
|
108
118
|
"devDependencies": {
|
|
@@ -116,6 +126,13 @@
|
|
|
116
126
|
"typescript": "^6.0.3",
|
|
117
127
|
"vitest": "^4.1.10"
|
|
118
128
|
},
|
|
129
|
+
"typesVersions": {
|
|
130
|
+
"*": {
|
|
131
|
+
"testing": [
|
|
132
|
+
"./dist/testing.d.ts"
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
119
136
|
"scripts": {
|
|
120
137
|
"build": "tsup",
|
|
121
138
|
"test": "vitest run --coverage",
|