podcast-api 3.0.0 → 3.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.
package/README.md CHANGED
@@ -868,7 +868,26 @@ yarn test-workers --runInBand
868
868
  yarn lint
869
869
  ```
870
870
 
871
- Tests use local mocked transports and do not call the API. Generated methods,
871
+ The default `yarn test`, `yarn test-node`, and `yarn test-workers` commands use
872
+ local mocked transports and do not call the API.
873
+
874
+ Run the live mock integration suite separately:
875
+
876
+ ```sh
877
+ yarn test-integration
878
+ ```
879
+
880
+ This runs 12 cases through each client: Node (Axios) and Workers (fetch in
881
+ Miniflare). They send real HTTP requests to
882
+ `https://listen-api-test.listennotes.com/api/v2` without an API key, covering
883
+ search, podcast/playlist reads, all five playlist write operations, response
884
+ headers, and a missing route. Requests are restricted to that mock URL, redirects
885
+ are disabled, and requests have a 15-second timeout. The mock returns fixed
886
+ responses; these tests do not verify persistence or production authorization.
887
+ CI runs this suite separately on Node.js 24, so a mock service outage can fail
888
+ the integration job while the offline jobs still pass.
889
+
890
+ Generated methods,
872
891
  `src/api-contract.json`, and marked README sections are maintained by
873
892
  `devtools/api-sdks/sync.py` in the Listen Notes monorepo. See its
874
893
  `devtools/api-sdks/README.md` for synchronization and release instructions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podcast-api",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "JavaScript bindings for the Listen Notes Podcast API",
5
5
  "main": "src/PodcastApiClient.js",
6
6
  "scripts": {
@@ -8,7 +8,8 @@
8
8
  "lint": "eslint .",
9
9
  "test": "jest --config jest.config.node.json && jest --config jest.config.minifare.json",
10
10
  "test-node": "jest --config jest.config.node.json",
11
- "test-workers": "jest --config jest.config.minifare.json"
11
+ "test-workers": "jest --config jest.config.minifare.json",
12
+ "test-integration": "jest --config jest.config.integration.json --runInBand"
12
13
  },
13
14
  "repository": {
14
15
  "type": "git",
@@ -33,7 +34,7 @@
33
34
  },
34
35
  "homepage": "https://www.listennotes.com/api/",
35
36
  "dependencies": {
36
- "axios": "1.19.0"
37
+ "axios": "1.20.0"
37
38
  },
38
39
  "devDependencies": {
39
40
  "@eslint/js": "10.0.1",
package/src/Constants.js CHANGED
@@ -2,7 +2,7 @@ const API_BASE_PROD = 'https://listen-api.listennotes.com/api/v2';
2
2
 
3
3
  const API_BASE_TEST = 'https://listen-api-test.listennotes.com/api/v2';
4
4
 
5
- const defaultUserAgent = 'podcasts-api-js';
5
+ const defaultUserAgent = 'podcast-api-js';
6
6
 
7
7
  module.exports = {
8
8
  API_BASE_PROD,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "operations": [
5
5
  {
6
6
  "operationId": "search",