@pubid/pubid 0.1.51 → 0.1.52

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.
@@ -43,32 +43,33 @@ export const TYPED_STAGES = [
43
43
  TS("tec", "published", "tec", "Technology Report", "60.00"),
44
44
  TS("sttr", "published", "sttr", "Trend Report", "60.00"),
45
45
  TS("wp", "published", "wp", "White Paper", "60.00"),
46
- // The draft ladders below mirror the gem 2.0.32 per-deliverable
47
- // TYPED_STAGES rows (lib/pubid/iec/identifiers/*.rb): one row per
48
- // (deliverable, stage), `abbr` the canonical (ruby abbr.first) spelling
49
- // the render face prints, `tokens` the spellings the row accepts at
50
- // parse. The gem's render normalizes every spelling onto abbr.first
51
- // (renderer.rb: `id.typed_stage.abbr.first`) and its wire carries
52
- // typed_stage.code — so a folded spelling parses, renders and
53
- // serializes AS its row's canonical twin ("IEC PRF 60038" renders
54
- // "IEC FDIS 60038" and hashes stage "fdis"). The gem-vs-SSOT
55
- // contradictions recorded in #189/#190 (CDPAS 30.00-vs-50.20, the
56
- // ADTR-family folding) stay on record; the gem is followed.
46
+ // The draft ladders below mirror the gem's per-deliverable
47
+ // TYPED_STAGES rows (lib/pubid/iec/identifiers/*.rb, at 2.0.35 —
48
+ // pubid#733): one row per (deliverable, stage), `abbr` the canonical
49
+ // (ruby abbr.first) spelling the render face prints, `tokens` the
50
+ // spellings the row accepts at parse. Each row renders its OWN
51
+ // spelling (renderer.rb: `id.typed_stage.abbr.first` — the #191/#193
52
+ // pattern) and the wire carries typed_stage.code, so "IEC ADTR 60038"
53
+ // renders "IEC ADTR 60038" and hashes stage "adtr"; only rows that
54
+ // genuinely fold several spellings onto one face normalize the render
55
+ // ("IEC PRF 60038" renders "IEC FDIS 60038" and hashes stage "fdis").
57
56
  //
58
57
  // `tokens` carry the spellings the gem's COMPILED grammar accepts
59
58
  // (data/parg/iec.json), which is narrower than the registry's abbr
60
59
  // lists: registry-only spellings (DEL, PRVN, AWI, DIS, ADIS, PCC,
61
60
  // SPLIT, MERGED, CAN, RPUB, TPUB, DECPUB, SPE, and every PROJECT_STAGES
62
61
  // name) are parse-rejected by the gem and stay out of the tokens.
63
- // Resolution of a token is registry ORDER (ruby locate_stage scans
64
- // TYPED_STAGES in order), so CDPAS resolves to :cdpas (30.00), never
65
- // the :dpas row that also lists it, and DTSM — listed on the :dtr row —
66
- // decodes onto the TR ladder, not :dts.
67
62
  //
68
63
  // The `harmonized` column is the gem's harmonized_stages.first (issue
69
64
  // #187): the official URN stage slot writes `stage-<lead code>` and the
70
65
  // URN parser resolves the slot back by (type, lead code). Published
71
- // rows carry no harmonized: the slot is suppressed for them.
66
+ // rows carry no harmonized: the slot is suppressed for them. Row order
67
+ // follows the correspondence table, so the TR/TS shared 50.92 slots
68
+ // (NDTR/DTRM, NDTS/DTSM — IEC's table gives both spellings of each
69
+ // deliverable the same rejection code; the gem's pnw_stage_spec
70
+ // ALLOWED_COLLISIONS) reverse-resolve to the pair's FIRST row —
71
+ // tr-stage-50.92 decodes DTRM, ts-stage-50.92 decodes DTSM — while the
72
+ // pubid-scheme URN keeps the pair distinct (stage-ndtr vs stage-dtrm).
72
73
  TS("pwi", "pwi", "is", "PWI", "00.00", ["PWI", "NWIP", "BWG", "AWIN", "AMW"]),
73
74
  // PNW owns harmonized 10.20 (gem: NP stages are 10.00/10.60/… — the
74
75
  // URN "stage-10.20" slot resolves to PNW, not NP; #187).
@@ -93,28 +94,42 @@ export const TYPED_STAGES = [
93
94
  TS("anw_tr", "anw", "tr", "ANW TR", "10.99"),
94
95
  TS("wd_tr", "wd", "tr", "WD TR", "20.20"),
95
96
  TS("cd_tr", "cd", "tr", "CD TR", "30.00"),
96
- // The whole draft-spelling family folds onto :dtr (ruby abbr.first
97
- // "DTR"); DTSM rides the :dtr row in the gem's registry even though the
98
- // spelling names the TS deliverable's rejected stage — mirrored.
99
- TS("dtr", "draft", "tr", "DTR", "50.00", ["DTR", "ADTR", "CDTR", "DTRM", "NDTR", "DTSM"]),
97
+ // Plain DTR keeps the folded 50.00 ladder (the registration step); the
98
+ // point spellings below are rows of their own, each with the exact
99
+ // code IEC's stage-code correspondence table gives it (pubid#733, gem
100
+ // 2.0.35 — probed in-process: render/URN/pubid-URN/hash round-trip).
101
+ TS("dtr", "draft", "tr", "DTR", "50.00"),
102
+ TS("adtr", "draft", "tr", "ADTR", "40.99"),
103
+ TS("cdtr", "draft", "tr", "CDTR", "50.20"),
104
+ // NDTR and DTRM share the table's 50.92 rejection code: their
105
+ // official-URN slot is the same and the reverse lookup resolves the
106
+ // FIRST row (DTRM); the pubid-scheme URN keeps both codes.
107
+ TS("dtrm", "draft", "tr", "DTRM", "50.92"),
108
+ TS("ndtr", "draft", "tr", "NDTR", "50.92"),
100
109
  // The TS ladder.
101
110
  TS("pwi_ts", "pwi", "ts", "PWI TS", "00.00"),
102
111
  TS("np_ts", "np", "ts", "NP TS", "10.00"),
103
112
  TS("anw_ts", "anw", "ts", "ANW TS", "10.99"),
104
113
  TS("wd_ts", "wd", "ts", "WD TS", "20.20"),
105
114
  TS("cd_ts", "cd", "ts", "CD TS", "30.00"),
106
- TS("dts", "draft", "ts", "DTS", "50.00", ["DTS", "ADTS", "CDTS", "NDTS"]),
115
+ TS("dts", "draft", "ts", "DTS", "50.00"),
116
+ TS("adts", "draft", "ts", "ADTS", "40.99"),
117
+ TS("cdts", "draft", "ts", "CDTS", "50.20"),
118
+ // The TS twin of the TR shared slot: NDTS and DTSM both carry 50.92,
119
+ // the reverse lookup resolves DTSM (the first row).
120
+ TS("dtsm", "draft", "ts", "DTSM", "50.92"),
121
+ TS("ndts", "draft", "ts", "NDTS", "50.92"),
107
122
  // The PAS ladder.
108
123
  TS("pwi_pas", "pwi", "pas", "PWI PAS", "00.00"),
109
124
  TS("np_pas", "np", "pas", "NP PAS", "10.00"),
110
125
  TS("anw_pas", "anw", "pas", "ANW PAS", "10.99"),
111
126
  TS("wd_pas", "wd", "pas", "WD PAS", "20.20"),
112
- // CDPAS is the committee-draft PAS row (lead 30.00) — the gem's
113
- // :cdpas registry row wins over :dpas's spelling by order. The
114
- // SSOT table (data/iec/stage-codes.md) names CDPAS 50.20: the
115
- // recorded gem-vs-SSOT contradiction stands (owner's call).
116
- TS("cdpas", "cd", "pas", "CDPAS", "30.00"),
117
- TS("dpas", "draft", "pas", "DPAS", "50.00", ["DPAS", "CDPAS"]),
127
+ // CDPAS is PAS's 50.20 row of IEC's stage-code correspondence table
128
+ // ("Draft circulated as DPAS") — not a committee-draft state and
129
+ // claiming no 30.xx code: the fabricated 30.00 row and the CDPAS fold
130
+ // on the DPAS row's spellings are gone (pubid#733, gem 2.0.35).
131
+ TS("cdpas", "draft", "pas", "CDPAS", "50.20"),
132
+ TS("dpas", "draft", "pas", "DPAS", "50.00"),
118
133
  // The Guide ladder (the two-token faces and the DGuide/FDGuide drafts).
119
134
  TS("pwi_guide", "pwi", "guide", "PWI Guide", "00.00"),
120
135
  TS("np_guide", "np", "guide", "NP Guide", "10.00"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubid/pubid",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "TypeScript PubID identifiers: resolution, normalization and canonical hashes for every identifier in the pubid-testsuite corpus (41 standards bodies), with a conformance runner mirroring the Ruby reference",
5
5
  "type": "module",
6
6
  "license": "MIT",