@dpuse/dpuse-shared 1.0.105 → 1.0.107

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 +5 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -85,11 +85,11 @@ Character encoding types with detection and decodability flags, a catalogue of e
85
85
 
86
86
  The table below lists every supported encoding.
87
87
 
88
- - **Detectable** — the encoding can be identified from a file's contents.
88
+ - **Detectable** — [chardet](https://github.com/runk/node-chardet) can identify the encoding from a file's contents. A test checks this column against chardet's detectors, so it fails if a chardet upgrade adds, drops or renames one.
89
89
  - **Decodable** — the browser's built-in `TextDecoder` can decode it. The four that cannot are refused by all the major browsers: `iso-2022-cn` and `iso-2022-kr` are blocked by the WHATWG Encoding Standard for security reasons, and UTF-32 is not part of the standard.
90
90
  - **Decoded As** — the encoding browsers actually use, where it differs from the name. The Encoding Standard treats some names as aliases, so for example `latin1` and `ascii` are decoded as `windows-1252`. The practical effects: bytes 0x80–0x9F decode as Windows-1252 characters (such as `€` and curly quotes) rather than control codes, `ascii` never rejects bytes above 0x7F, and a big-endian UTF-16 file read as `utf-16` decodes as little-endian and comes out garbled.
91
91
 
92
- The major browsers all follow the Encoding Standard, so these columns hold for each of them. This was confirmed by running `TextDecoder` against every encoding in Chrome 154, Edge 154, Firefox 156 and Safari 26.6 (October 2026), and all four gave identical results. To re-check them on a Mac, run `npm run check:browsers` after a build.
92
+ The major browsers all follow the Encoding Standard, so the Decodable and Decoded As columns hold for each of them. A test checks both columns against Node's `TextDecoder`, which follows the same standard. They were also confirmed in Chrome 154, Edge 154, Firefox 156 and Safari 26.6 (October 2026), and all four gave identical results. To re-check them on a Mac, run `npm run check:browsers` after a build.
93
93
 
94
94
  | Group | Encoding | Detectable | Decodable | Decoded As |
95
95
  | :------------------ | :------------- | :--------: | :-------: | :----------- |
@@ -251,6 +251,9 @@ This section is updated each time `npm run document` is run. Settings come from
251
251
 
252
252
  This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
253
253
 
254
+ > [!NOTE]
255
+ > Apart from the Best Practices badge above, the remaining Scorecard gaps need multi-person review or a pull-request workflow, which this solo-maintained project doesn't use.
256
+
254
257
  ### Reporting Vulnerabilities
255
258
 
256
259
  Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](https://github.com/dpuse/dpuse-shared/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.105",
3
+ "version": "1.0.107",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",
@@ -64,7 +64,7 @@
64
64
  "valibot": "^1.5.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@dpuse/dpuse-development": "^1.0.109",
67
+ "@dpuse/dpuse-development": "^1.0.110",
68
68
  "@dpuse/eslint-config-dpuse": "^1.0.132",
69
69
  "@types/node": "^26.6.4",
70
70
  "@vitest/coverage-v8": "^5.0.3",