@voidhash/mimic-react 0.0.1-alpha.10

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.
Files changed (37) hide show
  1. package/.turbo/turbo-build.log +35 -0
  2. package/LICENSE.md +663 -0
  3. package/dist/index.cjs +0 -0
  4. package/dist/index.d.cts +1 -0
  5. package/dist/index.d.mts +1 -0
  6. package/dist/index.mjs +1 -0
  7. package/dist/objectSpread2-CIP_6jda.cjs +73 -0
  8. package/dist/objectSpread2-CxTyNSYl.mjs +67 -0
  9. package/dist/zustand/index.cjs +95 -0
  10. package/dist/zustand/index.d.cts +115 -0
  11. package/dist/zustand/index.d.cts.map +1 -0
  12. package/dist/zustand/index.d.mts +115 -0
  13. package/dist/zustand/index.d.mts.map +1 -0
  14. package/dist/zustand/index.mjs +96 -0
  15. package/dist/zustand/index.mjs.map +1 -0
  16. package/dist/zustand-commander/index.cjs +364 -0
  17. package/dist/zustand-commander/index.d.cts +325 -0
  18. package/dist/zustand-commander/index.d.cts.map +1 -0
  19. package/dist/zustand-commander/index.d.mts +325 -0
  20. package/dist/zustand-commander/index.d.mts.map +1 -0
  21. package/dist/zustand-commander/index.mjs +355 -0
  22. package/dist/zustand-commander/index.mjs.map +1 -0
  23. package/package.json +53 -0
  24. package/src/index.ts +0 -0
  25. package/src/zustand/index.ts +24 -0
  26. package/src/zustand/middleware.ts +171 -0
  27. package/src/zustand/types.ts +117 -0
  28. package/src/zustand-commander/commander.ts +395 -0
  29. package/src/zustand-commander/hooks.ts +259 -0
  30. package/src/zustand-commander/index.ts +139 -0
  31. package/src/zustand-commander/types.ts +347 -0
  32. package/tests/zustand/middleware.test.ts +584 -0
  33. package/tests/zustand-commander/commander.test.ts +774 -0
  34. package/tsconfig.build.json +24 -0
  35. package/tsconfig.json +8 -0
  36. package/tsdown.config.ts +18 -0
  37. package/vitest.mts +11 -0
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "Preserve",
4
+ "lib": ["es2022", "dom", "dom.iterable"],
5
+ "target": "es2022",
6
+ "declaration": true,
7
+ "declarationMap": true,
8
+ "declarationDir": "dist",
9
+ "outDir": "./dist",
10
+ "strict": true,
11
+ "strictNullChecks": true,
12
+ "noUnusedLocals": false,
13
+ "noUnusedParameters": true,
14
+ "noImplicitReturns": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "noUncheckedIndexedAccess": true,
17
+ "esModuleInterop": true,
18
+ "skipLibCheck": true,
19
+ "noPropertyAccessFromIndexSignature": true,
20
+ "noImplicitOverride": true
21
+ },
22
+ "include": ["src"],
23
+ "exclude": ["test", "**/*.test.ts", "**/*.test.tsx", "__tests__"]
24
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.build.json",
3
+ "include": ["src", "test"],
4
+ "compilerOptions": {
5
+ "allowJs": false,
6
+ "strictNullChecks": true
7
+ }
8
+ }
@@ -0,0 +1,18 @@
1
+ import { defineConfig } from "tsdown";
2
+
3
+ export const input = ["./src/index.ts", "./src/zustand/index.ts", "./src/zustand-commander/index.ts"];
4
+
5
+ export default defineConfig({
6
+ target: ["es2017"],
7
+ entry: input,
8
+ dts: {
9
+ sourcemap: true,
10
+ tsconfig: "./tsconfig.build.json",
11
+ },
12
+ // unbundle: true,
13
+ format: ["cjs", "esm"],
14
+ outExtensions: (ctx) => ({
15
+ dts: ctx.format === "cjs" ? ".d.cts" : ".d.mts",
16
+ js: ctx.format === "cjs" ? ".cjs" : ".mjs",
17
+ }),
18
+ });
package/vitest.mts ADDED
@@ -0,0 +1,11 @@
1
+ import tsconfigPaths from "vite-tsconfig-paths";
2
+ import { defineConfig } from "vitest/config";
3
+
4
+ export default defineConfig({
5
+ plugins: [tsconfigPaths()],
6
+ test: {
7
+ include: ["./**/*.test.ts"],
8
+ exclude: ["./node_modules/**"],
9
+ reporters: ["verbose"],
10
+ },
11
+ });