discogs-typescript 0.1.0 → 0.1.1

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 +14 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -365,12 +365,21 @@ pnpm build # vite library build → dist/
365
365
  ```
366
366
 
367
367
  Runnable examples live in [`examples/`](./examples) — `pnpm tsx examples/search.ts` and
368
- friends. They talk to the real API and need credentials in the environment.
368
+ friends. They talk to the real API and need credentials in the environment. Put them in a
369
+ gitignored `.env` and let tsx load it, rather than passing them on the command line:
369
370
 
370
- TypeScript is deliberately held at 5.x while the rest of the toolchain tracks latest:
371
- typescript-eslint refuses to load under TS 7 ([#10940](https://github.com/typescript-eslint/typescript-eslint/issues/10940))
372
- and `@microsoft/api-extractor` cannot bundle declarations it emits, which would cost both
373
- type-aware linting and the single rolled-up `.d.ts`. Worth revisiting once both support it.
371
+ ```bash
372
+ echo 'DISCOGS_TOKEN=…' > .env
373
+ pnpm tsx --env-file=.env examples/crate-digging.ts
374
+ ```
375
+
376
+ TypeScript is deliberately held at 6.x while the rest of the toolchain tracks latest. TS 7.0
377
+ ships no programmatic JS API, so typescript-eslint cannot read type information from it
378
+ ([#10940](https://github.com/typescript-eslint/typescript-eslint/issues/10940), locked by the
379
+ maintainers until there is something to do) and `@microsoft/api-extractor` bundles its own
380
+ compiler. Microsoft ships TS 6.0 to run side by side with 7.0 for exactly these tools, so 6.x
381
+ is the newest version that keeps type-aware linting and the single rolled-up `.d.ts`. Worth
382
+ revisiting when 7.1 ships the new API.
374
383
 
375
384
  ## Releasing
376
385
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discogs-typescript",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A modern, fully typed, zero-dependency TypeScript client for the Discogs API v2",
5
5
  "keywords": [
6
6
  "discogs",
@@ -61,7 +61,7 @@
61
61
  "esbuild"
62
62
  ]
63
63
  },
64
- "//typescript": "Held at 5.x on purpose. typescript-eslint throws outright on TS 7 (typescript-eslint#10940 tracks support for >=7.1), and @microsoft/api-extractor cannot bundle declarations emitted by it. Revisit once both ship TS 7 support.",
64
+ "//typescript": "Held at 6.x on purpose. TS 7.0 ships no programmatic JS API, so typescript-eslint cannot read type information from it (typescript-eslint#10940, locked by the maintainers as nothing-to-do-yet) and @microsoft/api-extractor bundles its own compiler. TS 6.0 is the supported side-by-side companion for exactly these tools. Revisit when 7.1 ships the new API.",
65
65
  "devDependencies": {
66
66
  "@eslint/js": "^10.0.1",
67
67
  "@microsoft/api-extractor": "^7.58.12",
@@ -70,7 +70,7 @@
70
70
  "eslint": "^10.8.0",
71
71
  "prettier": "^3.9.6",
72
72
  "tsx": "^4.23.10",
73
- "typescript": "^5.9.3",
73
+ "typescript": "^6.0.3",
74
74
  "typescript-eslint": "^8.66.0",
75
75
  "vite": "^8.2.1",
76
76
  "vite-plugin-dts": "^5.0.3",