local-kanban 1.7.0 → 1.7.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  Notable changes, newest first. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
4
4
  and the project uses [semantic versioning](https://semver.org/).
5
5
 
6
+ ## [1.7.1]
7
+
8
+ ### Fixed
9
+
10
+ - **The update check asked the registry in a format it answers with an error.** The request carried
11
+ npm's abbreviated media type, which is meant for a package document and not for the `/latest`
12
+ address: the registry replies 406 with an empty body, so an npm install was told "cannot check"
13
+ again. A cached response let it through often enough to look like a flaky network — it was not.
14
+ Caught on a clean install of 1.7.0 minutes after it was published.
15
+
6
16
  ## [1.7.0]
7
17
 
8
18
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-kanban",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "license": "MIT",
5
5
  "author": "Dannylamao",
6
6
  "repository": {
@@ -39,7 +39,7 @@ export async function registryCheck() {
39
39
  if (!pkg) return null;
40
40
  try {
41
41
  const res = await fetch(`https://registry.npmjs.org/${encodeURIComponent(pkg.name)}/latest`, {
42
- headers: { 'User-Agent': 'local-kanban', Accept: 'application/vnd.npm.install-v1+json' },
42
+ headers: { 'User-Agent': 'local-kanban', Accept: 'application/json' },
43
43
  signal: AbortSignal.timeout(8000),
44
44
  });
45
45
  if (!res.ok) return null;