@miradorlabs/parallax-web 2.0.0 → 2.0.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.
@@ -7,9 +7,6 @@ updates:
7
7
  interval: "weekly"
8
8
  day: "monday"
9
9
  open-pull-requests-limit: 10
10
- labels:
11
- - "dependencies"
12
- - "npm"
13
10
  commit-message:
14
11
  prefix: "chore(deps)"
15
12
  groups:
@@ -32,8 +29,5 @@ updates:
32
29
  schedule:
33
30
  interval: "weekly"
34
31
  day: "monday"
35
- labels:
36
- - "dependencies"
37
- - "github-actions"
38
32
  commit-message:
39
33
  prefix: "chore(ci)"
@@ -12,10 +12,10 @@ jobs:
12
12
 
13
13
  steps:
14
14
  - name: Checkout
15
- uses: actions/checkout@v4
15
+ uses: actions/checkout@v6
16
16
 
17
17
  - name: Setup Node.js
18
- uses: actions/setup-node@v4
18
+ uses: actions/setup-node@v6
19
19
  with:
20
20
  node-version: '20'
21
21
  cache: 'npm'
package/README.md CHANGED
@@ -52,7 +52,7 @@ new ParallaxClient(apiKey: string, apiUrl?: string)
52
52
  | Parameter | Type | Required | Description |
53
53
  |-----------|------|----------|-------------|
54
54
  | `apiKey` | `string` | Yes | API key for authentication (sent as `x-parallax-api-key` header) |
55
- | `apiUrl` | `string` | No | Gateway URL (defaults to `https://parallax-gateway.dev.mirador.org:443`) |
55
+ | `apiUrl` | `string` | No | Gateway URL (defaults to `https://parallax-gateway-dev.mirador.org:443`) |
56
56
 
57
57
  #### Methods
58
58
 
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ declare class ParallaxClient {
91
91
  /**
92
92
  * Create a new ParallaxClient instance
93
93
  * @param apiKey Required API key for authentication (sent as x-parallax-api-key header)
94
- * @param apiUrl Optional gateway URL (defaults to parallax-gateway.dev.mirador.org:443)
94
+ * @param apiUrl Optional gateway URL (defaults to parallax-gateway-dev.mirador.org:443)
95
95
  */
96
96
  constructor(apiKey: string, apiUrl?: string);
97
97
  /**
package/dist/index.esm.js CHANGED
@@ -2283,7 +2283,7 @@ class ParallaxTrace {
2283
2283
  }
2284
2284
  }
2285
2285
 
2286
- const DEFAULT_API_URL = 'https://parallax-gateway.dev.mirador.org:443';
2286
+ const DEFAULT_API_URL = 'https://parallax-gateway-dev.mirador.org:443';
2287
2287
  /**
2288
2288
  * Main client for interacting with the Parallax Gateway API
2289
2289
  */
@@ -2291,7 +2291,7 @@ class ParallaxClient {
2291
2291
  /**
2292
2292
  * Create a new ParallaxClient instance
2293
2293
  * @param apiKey Required API key for authentication (sent as x-parallax-api-key header)
2294
- * @param apiUrl Optional gateway URL (defaults to parallax-gateway.dev.mirador.org:443)
2294
+ * @param apiUrl Optional gateway URL (defaults to parallax-gateway-dev.mirador.org:443)
2295
2295
  */
2296
2296
  constructor(apiKey, apiUrl) {
2297
2297
  Object.defineProperty(this, "apiUrl", {
package/dist/index.umd.js CHANGED
@@ -2289,7 +2289,7 @@
2289
2289
  }
2290
2290
  }
2291
2291
 
2292
- const DEFAULT_API_URL = 'https://parallax-gateway.dev.mirador.org:443';
2292
+ const DEFAULT_API_URL = 'https://parallax-gateway-dev.mirador.org:443';
2293
2293
  /**
2294
2294
  * Main client for interacting with the Parallax Gateway API
2295
2295
  */
@@ -2297,7 +2297,7 @@
2297
2297
  /**
2298
2298
  * Create a new ParallaxClient instance
2299
2299
  * @param apiKey Required API key for authentication (sent as x-parallax-api-key header)
2300
- * @param apiUrl Optional gateway URL (defaults to parallax-gateway.dev.mirador.org:443)
2300
+ * @param apiUrl Optional gateway URL (defaults to parallax-gateway-dev.mirador.org:443)
2301
2301
  */
2302
2302
  constructor(apiKey, apiUrl) {
2303
2303
  Object.defineProperty(this, "apiUrl", {
package/example/README.md CHANGED
@@ -184,7 +184,7 @@ By default, the demo connects to:
184
184
  ```javascript
185
185
  const client = new ParallaxClient(
186
186
  'demo-api-key',
187
- 'https://parallax-gateway.dev.mirador.org:443'
187
+ 'https://parallax-gateway-dev.mirador.org:443'
188
188
  );
189
189
  ```
190
190
 
package/example/app.js CHANGED
@@ -3,11 +3,11 @@ import { ParallaxClient } from '../dist/index.esm.js';
3
3
 
4
4
  // Initialize the client
5
5
  // Use proxy to avoid CORS issues (default)
6
- // To use direct connection, change to: 'https://parallax-gateway.dev.mirador.org:443'
6
+ // To use direct connection, change to: 'https://parallax-gateway-dev.mirador.org:443'
7
7
  const USE_PROXY = true;
8
- const GATEWAY_URL = USE_PROXY
8
+ const GATEWAY_URL = USE_PROXY
9
9
  ? 'http://localhost:3001' // Proxy server (no CORS issues)
10
- : 'https://parallax-gateway.dev.mirador.org:443'; // Direct (may have CORS issues)
10
+ : 'https://parallax-gateway-dev.mirador.org:443'; // Direct (may have CORS issues)
11
11
 
12
12
  const client = new ParallaxClient('demo-api-key', GATEWAY_URL);
13
13
 
@@ -11,7 +11,7 @@ const app = express();
11
11
  const PORT = 3001;
12
12
 
13
13
  // Target Parallax Gateway
14
- const GATEWAY_URL = 'https://parallax-gateway.dev.mirador.org:443';
14
+ const GATEWAY_URL = 'https://parallax-gateway-dev.mirador.org:443';
15
15
 
16
16
  // Enable CORS for all origins (development only)
17
17
  app.use(cors({
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@miradorlabs/parallax-web",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
+ "type": "module",
4
5
  "description": "Parallax Web Client Side SDK ",
5
6
  "main": "dist/index.umd.js",
6
7
  "module": "dist/index.esm.js",
@@ -23,14 +24,14 @@
23
24
  "release:major": "npm version major && git push --follow-tags"
24
25
  },
25
26
  "devDependencies": {
26
- "@eslint/js": "^9.39.1",
27
+ "@eslint/js": "^9.39.2",
27
28
  "@rollup/plugin-commonjs": "^29.0.0",
28
29
  "@rollup/plugin-node-resolve": "^16.0.3",
29
30
  "@rollup/plugin-typescript": "^12.3.0",
30
31
  "@types/google-protobuf": "^3.15.12",
31
32
  "@types/jest": "^30.0.0",
32
- "@types/node": "^24.10.1",
33
- "eslint": "^9.39.1",
33
+ "@types/node": "^24.10.4",
34
+ "eslint": "^9.39.2",
34
35
  "eslint-config-prettier": "^10.1.8",
35
36
  "eslint-plugin-prettier": "^5.5.4",
36
37
  "globals": "^16.5.0",
@@ -38,13 +39,13 @@
38
39
  "jest-environment-jsdom": "^30.2.0",
39
40
  "jiti": "^2.6.1",
40
41
  "prettier": "^3.6.2",
41
- "rollup": "^4.53.3",
42
+ "rollup": "^4.55.1",
42
43
  "rollup-plugin-dts": "^6.2.3",
43
44
  "ts-jest": "^29.4.5",
44
45
  "ts-node": "^10.9.2",
45
- "ts-proto": "^2.8.3",
46
+ "ts-proto": "^2.10.1",
46
47
  "typescript": "^5.9.3",
47
- "typescript-eslint": "^8.47.0"
48
+ "typescript-eslint": "^8.52.0"
48
49
  },
49
50
  "dependencies": {
50
51
  "google-protobuf": "^3.21.4",
@@ -0,0 +1,13 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ echo "=== Running Lint ==="
5
+ npm run lint
6
+
7
+ echo "=== Running Tests ==="
8
+ npm test
9
+
10
+ echo "=== Running Build ==="
11
+ npm run build
12
+
13
+ echo "=== All checks passed ==="
@@ -5,7 +5,7 @@ import { CreateTraceRequest } from 'mirador-gateway-parallax-web/proto/gateway/p
5
5
  import { ParallaxGatewayServiceClient } from 'mirador-gateway-parallax-web/proto/gateway/parallax/v1/Parallax_gatewayServiceClientPb';
6
6
  import { ParallaxTrace } from './trace';
7
7
 
8
- const DEFAULT_API_URL = 'https://parallax-gateway.dev.mirador.org:443';
8
+ const DEFAULT_API_URL = 'https://parallax-gateway-dev.mirador.org:443';
9
9
 
10
10
  /**
11
11
  * Main client for interacting with the Parallax Gateway API
@@ -18,7 +18,7 @@ export class ParallaxClient {
18
18
  /**
19
19
  * Create a new ParallaxClient instance
20
20
  * @param apiKey Required API key for authentication (sent as x-parallax-api-key header)
21
- * @param apiUrl Optional gateway URL (defaults to parallax-gateway.dev.mirador.org:443)
21
+ * @param apiUrl Optional gateway URL (defaults to parallax-gateway-dev.mirador.org:443)
22
22
  */
23
23
  constructor(apiKey: string, apiUrl?: string) {
24
24
  this.apiKey = apiKey;
@@ -97,7 +97,7 @@ describe('ParallaxClient', () => {
97
97
 
98
98
  it('should use default gateway URL when not provided', () => {
99
99
  const client = new ParallaxClient('my-api-key');
100
- expect(client.apiUrl).toBe('https://parallax-gateway.dev.mirador.org:443');
100
+ expect(client.apiUrl).toBe('https://parallax-gateway-dev.mirador.org:443');
101
101
  });
102
102
 
103
103
  it('should use custom gateway URL when provided', () => {
@@ -111,7 +111,7 @@ describe('ParallaxClient', () => {
111
111
  new ParallaxClient(apiKey);
112
112
 
113
113
  expect(ParallaxGatewayServiceClient).toHaveBeenCalledWith(
114
- 'https://parallax-gateway.dev.mirador.org:443',
114
+ 'https://parallax-gateway-dev.mirador.org:443',
115
115
  { 'x-parallax-api-key': apiKey }
116
116
  );
117
117
  });