solid-tiny-utils 0.16.0 → 0.16.1

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 g-mero
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 g-mero
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # solid-tiny-utils
2
-
3
- Tiny utilities for SolidJS applications.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- pnpm add solid-tiny-utils
9
- ```
1
+ # solid-tiny-utils
2
+
3
+ Tiny utilities for SolidJS applications.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pnpm add solid-tiny-utils
9
+ ```
@@ -3,6 +3,6 @@ import { Accessor } from "solid-js";
3
3
  type AccessorRecord = Record<PropertyKey, Accessor<unknown>>;
4
4
  type AccessorValues<T extends AccessorRecord> = { readonly [K in keyof T]: ReturnType<T[K]>; };
5
5
  declare function assignAccessors<Append extends AccessorRecord>(append: Append): Readonly<AccessorValues<Append>>;
6
- declare function assignAccessors<Base extends object, Append extends AccessorRecord>(base: Base, append: Append): Readonly<Omit<Base, keyof AccessorValues<Append>> & AccessorValues<Append>>;
6
+ declare function assignAccessors<Base extends object, Append extends AccessorRecord>(base: Base, append: Append & { [K in keyof Base]?: never; }): Readonly<Omit<Base, keyof AccessorValues<Append>> & AccessorValues<Append>>;
7
7
  //#endregion
8
8
  export { assignAccessors };
@@ -1,8 +1,7 @@
1
1
  //#region src/solidjs/assign-accessors.ts
2
2
  /**
3
- * Assigns accessor-backed getters to an object.
3
+ * Assigns accessor-backed getters to an object (without overriding existing keys).
4
4
  *
5
- * `append` keys override keys that already exist on `base`.
6
5
  */
7
6
  function assignAccessors(base, append) {
8
7
  if (!append) return assignAccessors({}, base);
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "solid-js": "^1.9.7"
27
27
  },
28
28
  "type": "module",
29
- "version": "0.16.0",
29
+ "version": "0.16.1",
30
30
  "description": "A collection of tiny utilities for SolidJS applications",
31
31
  "author": "solid tiny",
32
32
  "license": "MIT",