@ktjs/shared 0.20.1 → 0.20.2

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.d.ts CHANGED
@@ -22,6 +22,7 @@ declare const $isThenable: (o: any) => o is Promise<any>;
22
22
 
23
23
  declare const $throw: (message: string) => never;
24
24
 
25
+ declare const $replaceWith: (...nodes: (Node | string)[]) => void;
25
26
  /**
26
27
  * & Remove `bind` because it is shockingly slower than wrapper
27
28
  * & `window.document` is safe because it is not configurable and its setter is undefined
@@ -63,5 +64,5 @@ declare const emplaceParams: (path: string, params: Record<string, string>) => s
63
64
  */
64
65
  declare const extractParams: (pattern: string, path: string) => Record<string, string> | null;
65
66
 
66
- export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $throw, $toString, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
67
+ export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $replaceWith, $throw, $toString, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
67
68
  export type { ChangeHandler };
@@ -27,6 +27,7 @@ var __ktjs_shared__ = (function (exports) {
27
27
 
28
28
  // DOM manipulation utilities
29
29
  // # dom natives
30
+ const $replaceWith = Element.prototype.replaceWith;
30
31
  /**
31
32
  * & Remove `bind` because it is shockingly slower than wrapper
32
33
  * & `window.document` is safe because it is not configurable and its setter is undefined
@@ -165,7 +166,7 @@ var __ktjs_shared__ = (function (exports) {
165
166
 
166
167
  // Shared utilities and cached native methods for kt.js framework
167
168
  // Re-export all utilities
168
- Object.defineProperty(window, '@ktjs/shared', { value: '0.20.1' });
169
+ Object.defineProperty(window, '@ktjs/shared', { value: '0.20.2' });
169
170
 
170
171
  exports.$ArrayFrom = $ArrayFrom;
171
172
  exports.$append = $append;
@@ -182,6 +183,7 @@ var __ktjs_shared__ = (function (exports) {
182
183
  exports.$isArray = $isArray;
183
184
  exports.$isThenable = $isThenable;
184
185
  exports.$keys = $keys;
186
+ exports.$replaceWith = $replaceWith;
185
187
  exports.$throw = $throw;
186
188
  exports.$toString = $toString;
187
189
  exports.buildQuery = buildQuery;
@@ -30,6 +30,7 @@ var __ktjs_shared__ = (function (exports) {
30
30
  // DOM manipulation utilities
31
31
  var _a;
32
32
  // # dom natives
33
+ var $replaceWith = Element.prototype.replaceWith;
33
34
  /**
34
35
  * & Remove `bind` because it is shockingly slower than wrapper
35
36
  * & `window.document` is safe because it is not configurable and its setter is undefined
@@ -178,7 +179,7 @@ var __ktjs_shared__ = (function (exports) {
178
179
 
179
180
  // Shared utilities and cached native methods for kt.js framework
180
181
  // Re-export all utilities
181
- Object.defineProperty(window, '@ktjs/shared', { value: '0.20.1' });
182
+ Object.defineProperty(window, '@ktjs/shared', { value: '0.20.2' });
182
183
 
183
184
  exports.$ArrayFrom = $ArrayFrom;
184
185
  exports.$append = $append;
@@ -195,6 +196,7 @@ var __ktjs_shared__ = (function (exports) {
195
196
  exports.$isArray = $isArray;
196
197
  exports.$isThenable = $isThenable;
197
198
  exports.$keys = $keys;
199
+ exports.$replaceWith = $replaceWith;
198
200
  exports.$throw = $throw;
199
201
  exports.$toString = $toString;
200
202
  exports.buildQuery = buildQuery;
package/dist/index.mjs CHANGED
@@ -24,6 +24,7 @@ const $emptyFn = (() => true);
24
24
 
25
25
  // DOM manipulation utilities
26
26
  // # dom natives
27
+ const $replaceWith = Element.prototype.replaceWith;
27
28
  /**
28
29
  * & Remove `bind` because it is shockingly slower than wrapper
29
30
  * & `window.document` is safe because it is not configurable and its setter is undefined
@@ -162,6 +163,6 @@ const extractParams = (pattern, path) => {
162
163
 
163
164
  // Shared utilities and cached native methods for kt.js framework
164
165
  // Re-export all utilities
165
- Object.defineProperty(window, '@ktjs/shared', { value: '0.20.1' });
166
+ Object.defineProperty(window, '@ktjs/shared', { value: '0.20.2' });
166
167
 
167
- export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $throw, $toString, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
168
+ export { $ArrayFrom, $append, $appendChild, $assign, $buttonDisabledGetter, $buttonDisabledSetter, $define, $defines, $emptyFn, $entries, $hasOwn, $is, $isArray, $isThenable, $keys, $replaceWith, $throw, $toString, buildQuery, emplaceParams, extractParams, generateHandler, normalizePath, parseQuery, parseStyle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/shared",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Shared utilities and cached native methods for kt.js framework",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",