@uploadista/flow-utility-zipjs 0.0.13-beta.5 → 0.0.13

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uploadista/flow-utility-zipjs",
3
3
  "type": "module",
4
- "version": "0.0.13-beta.5",
4
+ "version": "0.0.13",
5
5
  "description": "ZipJS utility for Uploadista Flow",
6
6
  "license": "MIT",
7
7
  "author": "Uploadista",
@@ -14,20 +14,25 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "effect": "3.19.2",
17
+ "effect": "3.19.3",
18
18
  "jszip": "3.10.1",
19
19
  "zod": "4.1.12",
20
- "@uploadista/core": "0.0.13-beta.5"
20
+ "@uploadista/core": "0.0.13"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/node": "24.10.0",
24
- "tsdown": "0.16.0",
25
- "@uploadista/typescript-config": "0.0.13-beta.5"
23
+ "@effect/vitest": "0.27.0",
24
+ "@types/node": "24.10.1",
25
+ "tsdown": "0.16.3",
26
+ "vitest": "4.0.8",
27
+ "@uploadista/typescript-config": "0.0.13"
26
28
  },
27
29
  "scripts": {
28
30
  "build": "tsdown",
29
31
  "format": "biome format --write ./src",
30
32
  "lint": "biome lint --write ./src",
31
- "check": "biome check --write ./src"
33
+ "check": "biome check --write ./src",
34
+ "test": "vitest",
35
+ "test:run": "vitest run",
36
+ "test:watch": "vitest watch"
32
37
  }
33
38
  }
@@ -0,0 +1,22 @@
1
+ import { describe, it } from "vitest";
2
+
3
+ describe("ZipJS Utility Plugin", () => {
4
+ describe("Compression", () => {
5
+ it.todo("should compress files into zip archive");
6
+ it.todo("should handle multiple files");
7
+ it.todo("should set compression level");
8
+ it.todo("should preserve file metadata");
9
+ });
10
+
11
+ describe("Decompression", () => {
12
+ it.todo("should extract files from zip archive");
13
+ it.todo("should handle nested directories");
14
+ it.todo("should validate zip file integrity");
15
+ });
16
+
17
+ describe("Error handling", () => {
18
+ it.todo("should handle corrupted zip files");
19
+ it.todo("should handle missing files");
20
+ it.todo("should handle insufficient permissions");
21
+ });
22
+ });
@@ -0,0 +1,39 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ /**
4
+ * Shared vitest configuration template for uploadista-sdk packages
5
+ *
6
+ * This template should be used by all SDK packages to ensure consistent
7
+ * testing configuration across the monorepo.
8
+ *
9
+ * Key features:
10
+ * - Tests in dedicated `tests/` directories (not colocated with src)
11
+ * - Node environment for server-side code
12
+ * - V8 coverage provider
13
+ * - Global test functions available
14
+ * - Effect testing support via @effect/vitest
15
+ *
16
+ * Usage:
17
+ * Copy this file to your package root as `vitest.config.ts` and customize
18
+ * if needed (though most packages should use this as-is).
19
+ */
20
+ export default defineConfig({
21
+ test: {
22
+ globals: true,
23
+ environment: "node",
24
+ include: ["tests/**/*.test.ts"],
25
+ exclude: ["node_modules", "dist"],
26
+ coverage: {
27
+ provider: "v8",
28
+ reporter: ["text", "json", "html"],
29
+ exclude: [
30
+ "node_modules/",
31
+ "dist/",
32
+ "**/*.d.ts",
33
+ "**/*.test.ts",
34
+ "**/*.spec.ts",
35
+ "tests/",
36
+ ],
37
+ },
38
+ },
39
+ });