@pureq/pureq 1.1.8 → 1.1.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 (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +27 -27
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Functional, immutable, and type-safe HTTP transport layer for TypeScript.
4
4
 
5
- [Getting Started](./docs/getting_started.md) | [Documentation](./docs/README.md) | [Middleware Reference](./docs/middleware_reference.md) | [GitHub](https://github.com/shiro-shihi/pureq)
5
+ [Getting Started](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/getting_started.md) | [Documentation](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/README.md) | [Middleware Reference](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/middleware_reference.md) | [GitHub](https://github.com/shiro-shihi/pureq)
6
6
 
7
7
  ---
8
8
 
@@ -30,14 +30,14 @@ const user = await api.getJson<User>("/users/:id", { params: { id: "42" } });
30
30
 
31
31
  ## Documentation
32
32
 
33
- - [Getting Started](./docs/getting_started.md)
34
- - [Core Concepts](./docs/core_concepts.md)
35
- - [API Reference](./docs/api_reference.md)
36
- - [Middleware Reference](./docs/middleware_reference.md)
37
- - [Error Handling](./docs/error_handling.md)
38
- - [Observability](./docs/observability.md)
39
- - [Migration Guide](./docs/migration_guide.md)
40
- - [Benchmarks](./docs/benchmarks.md)
33
+ - [Getting Started](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/getting_started.md)
34
+ - [Core Concepts](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/core_concepts.md)
35
+ - [API Reference](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/api_reference.md)
36
+ - [Middleware Reference](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/middleware_reference.md)
37
+ - [Error Handling](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/error_handling.md)
38
+ - [Observability](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/observability.md)
39
+ - [Migration Guide](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/migration_guide.md)
40
+ - [Benchmarks](https://github.com/shiro-shihi/pureq/blob/main/packages/pureq/docs/benchmarks.md)
41
41
 
42
42
  ## License
43
43
 
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@pureq/pureq",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Functional, immutable, and type-safe HTTP client layer with middleware composition.",
5
- "main": "./dist/src/index.js",
6
- "types": "./dist/src/index.d.ts",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "types": "./dist/src/index.d.ts",
10
- "import": "./dist/src/index.js",
11
- "default": "./dist/src/index.js"
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "default": "./dist/index.js"
12
12
  },
13
13
  "./node": {
14
- "types": "./dist/src/node/index.d.ts",
15
- "import": "./dist/src/node/index.js",
16
- "default": "./dist/src/node/index.js"
14
+ "types": "./dist/node/index.d.ts",
15
+ "import": "./dist/node/index.js",
16
+ "default": "./dist/node/index.js"
17
17
  }
18
18
  },
19
19
  "files": [
@@ -22,6 +22,23 @@
22
22
  "directories": {
23
23
  "doc": "docs"
24
24
  },
25
+ "scripts": {
26
+ "build": "tsc",
27
+ "typecheck": "tsc --noEmit",
28
+ "benchmark": "tsx ./scripts/benchmark.ts",
29
+ "test:browser": "vitest run tests/browser-runtime.smoke.test.ts --environment jsdom",
30
+ "test:edge": "esbuild scripts/edge-smoke-entry.ts --bundle --format=iife --platform=browser --outfile=.tmp/edge-smoke.bundle.js && node ./scripts/run-edge-smoke.mjs",
31
+ "test": "vitest run",
32
+ "test:watch": "vitest",
33
+ "test:unit": "vitest run tests --exclude tests/*.integration.test.ts --exclude tests/*.contract.test.ts --exclude tests/*.stress.test.ts --exclude tests/traffic-load.test.ts --exclude tests/resilience-shock.test.ts --exclude tests/chaos-heavy.test.ts --exclude tests/invariant-fuzz.test.ts",
34
+ "test:integration": "vitest run tests/client.integration.test.ts",
35
+ "test:contract": "vitest run tests/public-api.contract.test.ts",
36
+ "test:stress": "vitest run tests/retry.stress.test.ts",
37
+ "test:heavy": "vitest run tests/traffic-load.test.ts tests/resilience-shock.test.ts tests/retry.stress.test.ts tests/chaos-heavy.test.ts tests/invariant-fuzz.test.ts",
38
+ "test:nightly": "npm run test:heavy",
39
+ "test:ci": "npm run test:unit && npm run test:integration && npm run test:contract && npm run test:stress && npm run typecheck",
40
+ "test:ci:full": "npm run test:ci && npm run test:heavy"
41
+ },
25
42
  "keywords": [
26
43
  "http",
27
44
  "fetch",
@@ -51,22 +68,5 @@
51
68
  "tsx": "^4.20.6",
52
69
  "typescript": "^6.0.2",
53
70
  "vitest": "^3.2.4"
54
- },
55
- "scripts": {
56
- "build": "tsc",
57
- "typecheck": "tsc --noEmit",
58
- "benchmark": "tsx ./scripts/benchmark.ts",
59
- "test:browser": "vitest run tests/browser-runtime.smoke.test.ts --environment jsdom",
60
- "test:edge": "esbuild scripts/edge-smoke-entry.ts --bundle --format=iife --platform=browser --outfile=.tmp/edge-smoke.bundle.js && node ./scripts/run-edge-smoke.mjs",
61
- "test": "vitest run",
62
- "test:watch": "vitest",
63
- "test:unit": "vitest run tests --exclude tests/*.integration.test.ts --exclude tests/*.contract.test.ts --exclude tests/*.stress.test.ts --exclude tests/traffic-load.test.ts --exclude tests/resilience-shock.test.ts --exclude tests/chaos-heavy.test.ts --exclude tests/invariant-fuzz.test.ts",
64
- "test:integration": "vitest run tests/client.integration.test.ts",
65
- "test:contract": "vitest run tests/public-api.contract.test.ts",
66
- "test:stress": "vitest run tests/retry.stress.test.ts",
67
- "test:heavy": "vitest run tests/traffic-load.test.ts tests/resilience-shock.test.ts tests/retry.stress.test.ts tests/chaos-heavy.test.ts tests/invariant-fuzz.test.ts",
68
- "test:nightly": "npm run test:heavy",
69
- "test:ci": "npm run test:unit && npm run test:integration && npm run test:contract && npm run test:stress && npm run typecheck",
70
- "test:ci:full": "npm run test:ci && npm run test:heavy"
71
71
  }
72
- }
72
+ }