@mailwoman/registry 11.0.0 → 11.2.0
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 +21 -6
- package/data/manifests/artifacts.json +35 -0
- package/data/manifests/coverage.json +63 -0
- package/data/manifests/sources.lock.json +12 -0
- package/data/normalized/language-subtags.json +18518 -0
- package/docs/data-policy.md +5 -5
- package/docs/performance.md +1 -1
- package/docs/rgy1.md +5 -5
- package/lib/artifacts/bcp47/extlang.fixture.json +260 -0
- package/lib/artifacts/bcp47/extlang.ts +32 -0
- package/lib/artifacts/bcp47/grandfathered.fixture.json +28 -0
- package/lib/artifacts/bcp47/grandfathered.ts +32 -0
- package/lib/artifacts/bcp47/language.fixture.json +8278 -0
- package/lib/artifacts/bcp47/language.ts +32 -0
- package/lib/artifacts/bcp47/redundant.fixture.json +69 -0
- package/lib/artifacts/bcp47/redundant.ts +32 -0
- package/lib/artifacts/bcp47/region.fixture.json +307 -0
- package/lib/artifacts/bcp47/region.ts +32 -0
- package/lib/artifacts/bcp47/script.fixture.json +227 -0
- package/lib/artifacts/bcp47/script.ts +32 -0
- package/lib/artifacts/bcp47/variant.fixture.json +141 -0
- package/lib/artifacts/bcp47/variant.ts +32 -0
- package/lib/artifacts/country-airport-collision.ts +7 -5
- package/lib/artifacts/iata-airport/membership.ts +7 -5
- package/lib/artifacts/iata-airport/records.ts +7 -5
- package/lib/artifacts/iso3166-1/alpha2-membership.ts +7 -5
- package/lib/artifacts/iso3166-1/alpha3-membership.ts +7 -5
- package/lib/artifacts/iso3166-1/records.ts +7 -5
- package/lib/bcp47/subtag-index.ts +65 -0
- package/lib/bcp47/tag.ts +301 -0
- package/lib/errors.ts +22 -9
- package/lib/iata/airports/records.ts +3 -4
- package/lib/iata/airports/validate.ts +6 -5
- package/lib/index.ts +18 -8
- package/lib/inspect.ts +5 -5
- package/lib/iso15924/codes.ts +169 -0
- package/lib/iso15924/unicode-script.ts +124 -0
- package/lib/iso3166/alpha2.ts +5 -5
- package/lib/iso3166/alpha3.ts +6 -6
- package/lib/iso3166/records.ts +9 -8
- package/lib/iso3166/relations.ts +5 -5
- package/lib/iso639/languages.ts +88 -0
- package/lib/key.ts +9 -7
- package/lib/normalize.ts +12 -8
- package/lib/overlap/country-airport.ts +14 -12
- package/lib/rgy1/base64.ts +3 -4
- package/lib/rgy1/reader.ts +8 -7
- package/lib/rgy1/sections.generated.ts +6 -5
- package/lib/rgy1/views.ts +5 -6
- package/lib/types.ts +66 -7
- package/lib/wasm.ts +11 -9
- package/out/artifacts/bcp47/extlang.d.ts +21 -0
- package/out/artifacts/bcp47/extlang.d.ts.map +1 -0
- package/out/artifacts/bcp47/extlang.fixture.json +260 -0
- package/out/artifacts/bcp47/extlang.js +17 -0
- package/out/artifacts/bcp47/extlang.js.map +1 -0
- package/out/artifacts/bcp47/grandfathered.d.ts +21 -0
- package/out/artifacts/bcp47/grandfathered.d.ts.map +1 -0
- package/out/artifacts/bcp47/grandfathered.fixture.json +28 -0
- package/out/artifacts/bcp47/grandfathered.js +17 -0
- package/out/artifacts/bcp47/grandfathered.js.map +1 -0
- package/out/artifacts/bcp47/language.d.ts +21 -0
- package/out/artifacts/bcp47/language.d.ts.map +1 -0
- package/out/artifacts/bcp47/language.fixture.json +8278 -0
- package/out/artifacts/bcp47/language.js +17 -0
- package/out/artifacts/bcp47/language.js.map +1 -0
- package/out/artifacts/bcp47/redundant.d.ts +21 -0
- package/out/artifacts/bcp47/redundant.d.ts.map +1 -0
- package/out/artifacts/bcp47/redundant.fixture.json +69 -0
- package/out/artifacts/bcp47/redundant.js +17 -0
- package/out/artifacts/bcp47/redundant.js.map +1 -0
- package/out/artifacts/bcp47/region.d.ts +21 -0
- package/out/artifacts/bcp47/region.d.ts.map +1 -0
- package/out/artifacts/bcp47/region.fixture.json +307 -0
- package/out/artifacts/bcp47/region.js +17 -0
- package/out/artifacts/bcp47/region.js.map +1 -0
- package/out/artifacts/bcp47/script.d.ts +21 -0
- package/out/artifacts/bcp47/script.d.ts.map +1 -0
- package/out/artifacts/bcp47/script.fixture.json +227 -0
- package/out/artifacts/bcp47/script.js +17 -0
- package/out/artifacts/bcp47/script.js.map +1 -0
- package/out/artifacts/bcp47/variant.d.ts +21 -0
- package/out/artifacts/bcp47/variant.d.ts.map +1 -0
- package/out/artifacts/bcp47/variant.fixture.json +141 -0
- package/out/artifacts/bcp47/variant.js +17 -0
- package/out/artifacts/bcp47/variant.js.map +1 -0
- package/out/artifacts/country-airport-collision.d.ts +0 -8
- package/out/artifacts/country-airport-collision.d.ts.map +1 -1
- package/out/artifacts/country-airport-collision.js +6 -5
- package/out/artifacts/country-airport-collision.js.map +1 -1
- package/out/artifacts/iata-airport/membership.d.ts +0 -8
- package/out/artifacts/iata-airport/membership.d.ts.map +1 -1
- package/out/artifacts/iata-airport/membership.js +6 -5
- package/out/artifacts/iata-airport/membership.js.map +1 -1
- package/out/artifacts/iata-airport/records.d.ts +0 -8
- package/out/artifacts/iata-airport/records.d.ts.map +1 -1
- package/out/artifacts/iata-airport/records.js +6 -5
- package/out/artifacts/iata-airport/records.js.map +1 -1
- package/out/artifacts/iso3166-1/alpha2-membership.d.ts +0 -8
- package/out/artifacts/iso3166-1/alpha2-membership.d.ts.map +1 -1
- package/out/artifacts/iso3166-1/alpha2-membership.js +6 -5
- package/out/artifacts/iso3166-1/alpha2-membership.js.map +1 -1
- package/out/artifacts/iso3166-1/alpha3-membership.d.ts +0 -8
- package/out/artifacts/iso3166-1/alpha3-membership.d.ts.map +1 -1
- package/out/artifacts/iso3166-1/alpha3-membership.js +6 -5
- package/out/artifacts/iso3166-1/alpha3-membership.js.map +1 -1
- package/out/artifacts/iso3166-1/records.d.ts +0 -8
- package/out/artifacts/iso3166-1/records.d.ts.map +1 -1
- package/out/artifacts/iso3166-1/records.js +6 -5
- package/out/artifacts/iso3166-1/records.js.map +1 -1
- package/out/bcp47/subtag-index.d.ts +22 -0
- package/out/bcp47/subtag-index.d.ts.map +1 -0
- package/out/bcp47/subtag-index.js +43 -0
- package/out/bcp47/subtag-index.js.map +1 -0
- package/out/bcp47/tag.d.ts +47 -0
- package/out/bcp47/tag.d.ts.map +1 -0
- package/out/bcp47/tag.js +218 -0
- package/out/bcp47/tag.js.map +1 -0
- package/out/errors.d.ts +12 -8
- package/out/errors.d.ts.map +1 -1
- package/out/errors.js +10 -8
- package/out/errors.js.map +1 -1
- package/out/iata/airports/records.d.ts +0 -7
- package/out/iata/airports/records.d.ts.map +1 -1
- package/out/iata/airports/records.js +2 -4
- package/out/iata/airports/records.js.map +1 -1
- package/out/iata/airports/validate.d.ts +0 -8
- package/out/iata/airports/validate.d.ts.map +1 -1
- package/out/iata/airports/validate.js +5 -5
- package/out/iata/airports/validate.js.map +1 -1
- package/out/index.d.ts +13 -8
- package/out/index.d.ts.map +1 -1
- package/out/index.js +6 -12
- package/out/index.js.map +1 -1
- package/out/inspect.d.ts +2 -5
- package/out/inspect.d.ts.map +1 -1
- package/out/inspect.js +4 -5
- package/out/inspect.js.map +1 -1
- package/out/iso15924/codes.d.ts +57 -0
- package/out/iso15924/codes.d.ts.map +1 -0
- package/out/iso15924/codes.js +133 -0
- package/out/iso15924/codes.js.map +1 -0
- package/out/iso15924/unicode-script.d.ts +10 -0
- package/out/iso15924/unicode-script.d.ts.map +1 -0
- package/out/iso15924/unicode-script.js +103 -0
- package/out/iso15924/unicode-script.js.map +1 -0
- package/out/iso3166/alpha2.d.ts +0 -8
- package/out/iso3166/alpha2.d.ts.map +1 -1
- package/out/iso3166/alpha2.js +4 -5
- package/out/iso3166/alpha2.js.map +1 -1
- package/out/iso3166/alpha3.d.ts +1 -9
- package/out/iso3166/alpha3.d.ts.map +1 -1
- package/out/iso3166/alpha3.js +5 -6
- package/out/iso3166/alpha3.js.map +1 -1
- package/out/iso3166/records.d.ts +0 -11
- package/out/iso3166/records.d.ts.map +1 -1
- package/out/iso3166/records.js +8 -8
- package/out/iso3166/records.js.map +1 -1
- package/out/iso3166/relations.d.ts +0 -7
- package/out/iso3166/relations.d.ts.map +1 -1
- package/out/iso3166/relations.js +4 -5
- package/out/iso3166/relations.js.map +1 -1
- package/out/iso639/languages.d.ts +40 -0
- package/out/iso639/languages.d.ts.map +1 -0
- package/out/iso639/languages.js +54 -0
- package/out/iso639/languages.js.map +1 -0
- package/out/key.d.ts +6 -7
- package/out/key.d.ts.map +1 -1
- package/out/key.js +8 -7
- package/out/key.js.map +1 -1
- package/out/normalize.d.ts +9 -8
- package/out/normalize.d.ts.map +1 -1
- package/out/normalize.js +2 -12
- package/out/normalize.js.map +1 -1
- package/out/overlap/country-airport.d.ts +2 -16
- package/out/overlap/country-airport.d.ts.map +1 -1
- package/out/overlap/country-airport.js +13 -12
- package/out/overlap/country-airport.js.map +1 -1
- package/out/rgy1/base64.d.ts +0 -4
- package/out/rgy1/base64.d.ts.map +1 -1
- package/out/rgy1/base64.js +2 -4
- package/out/rgy1/base64.js.map +1 -1
- package/out/rgy1/reader.d.ts +0 -11
- package/out/rgy1/reader.d.ts.map +1 -1
- package/out/rgy1/reader.js +7 -7
- package/out/rgy1/reader.js.map +1 -1
- package/out/rgy1/sections.generated.d.ts +3 -5
- package/out/rgy1/sections.generated.d.ts.map +1 -1
- package/out/rgy1/sections.generated.js +5 -5
- package/out/rgy1/sections.generated.js.map +1 -1
- package/out/rgy1/views.d.ts +2 -9
- package/out/rgy1/views.d.ts.map +1 -1
- package/out/rgy1/views.js +4 -6
- package/out/rgy1/views.js.map +1 -1
- package/out/sdk/fetch.d.ts +6 -6
- package/out/sdk/fetch.d.ts.map +1 -1
- package/out/sdk/fetch.js +23 -11
- package/out/sdk/fetch.js.map +1 -1
- package/out/sdk/fetch.run.d.ts +0 -12
- package/out/sdk/fetch.run.d.ts.map +1 -1
- package/out/sdk/fetch.run.js +22 -9
- package/out/sdk/fetch.run.js.map +1 -1
- package/out/sdk/sources.d.ts +7 -16
- package/out/sdk/sources.d.ts.map +1 -1
- package/out/sdk/sources.js +34 -14
- package/out/sdk/sources.js.map +1 -1
- package/out/tools/artifact-path.d.ts +0 -5
- package/out/tools/artifact-path.d.ts.map +1 -1
- package/out/tools/artifact-path.js +2 -5
- package/out/tools/artifact-path.js.map +1 -1
- package/out/tools/bench.run.d.ts +0 -17
- package/out/tools/bench.run.d.ts.map +1 -1
- package/out/tools/bench.run.js +13 -10
- package/out/tools/bench.run.js.map +1 -1
- package/out/tools/build-wasm.run.d.ts +0 -16
- package/out/tools/build-wasm.run.d.ts.map +1 -1
- package/out/tools/build-wasm.run.js +8 -10
- package/out/tools/build-wasm.run.js.map +1 -1
- package/out/tools/generate-sections.run.d.ts +0 -11
- package/out/tools/generate-sections.run.d.ts.map +1 -1
- package/out/tools/generate-sections.run.js +5 -14
- package/out/tools/generate-sections.run.js.map +1 -1
- package/out/tools/generate.run.d.ts +0 -16
- package/out/tools/generate.run.d.ts.map +1 -1
- package/out/tools/generate.run.js +61 -17
- package/out/tools/generate.run.js.map +1 -1
- package/out/tools/language-subtags.d.ts +59 -0
- package/out/tools/language-subtags.d.ts.map +1 -0
- package/out/tools/language-subtags.js +145 -0
- package/out/tools/language-subtags.js.map +1 -0
- package/out/tools/normalize.d.ts +4 -14
- package/out/tools/normalize.d.ts.map +1 -1
- package/out/tools/normalize.js +14 -14
- package/out/tools/normalize.js.map +1 -1
- package/out/tools/normalize.run.d.ts +0 -12
- package/out/tools/normalize.run.d.ts.map +1 -1
- package/out/tools/normalize.run.js +24 -7
- package/out/tools/normalize.run.js.map +1 -1
- package/out/types.d.ts +62 -7
- package/out/types.d.ts.map +1 -1
- package/out/types.js +12 -9
- package/out/types.js.map +1 -1
- package/out/wasm.d.ts +0 -13
- package/out/wasm.d.ts.map +1 -1
- package/out/wasm.js +10 -9
- package/out/wasm.js.map +1 -1
- package/package.json +12 -4
- package/sdk/fetch.run.ts +25 -9
- package/sdk/fetch.ts +32 -12
- package/sdk/sources.ts +36 -14
- package/tools/artifact-path.ts +2 -5
- package/tools/bench.run.ts +19 -10
- package/tools/build-wasm.run.ts +9 -10
- package/tools/generate-sections.run.ts +6 -14
- package/tools/generate.run.ts +68 -17
- package/tools/language-subtags.ts +195 -0
- package/tools/normalize.run.ts +28 -7
- package/tools/normalize.ts +16 -15
package/out/types.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* Branded identifier types.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* A brand is a declaration-only unique symbol, so a branded value is a plain string at runtime
|
|
5
|
+
* and the compiler refuses to pass one namespace's code where another's is expected.
|
|
8
6
|
*
|
|
9
|
-
* A branded value records that a validator accepted it under a documented profile at the time of the call.
|
|
10
|
-
* issuing authority's later assignments are outside what the brand records.
|
|
7
|
+
* A branded value records that a validator accepted it under a documented profile at the time of the call.
|
|
8
|
+
* The issuing authority's later assignments are outside what the brand records.
|
|
11
9
|
*/
|
|
12
10
|
/**
|
|
13
11
|
* ISO 3166-1 country code namespaces.
|
|
@@ -71,6 +69,63 @@ export declare namespace ICAO {
|
|
|
71
69
|
readonly [$LocationIndicator]: true;
|
|
72
70
|
};
|
|
73
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* BCP 47 namespaces, read from the IANA Language Subtag Registry.
|
|
74
|
+
*/
|
|
75
|
+
export declare namespace BCP47 {
|
|
76
|
+
const $LanguageTag: unique symbol;
|
|
77
|
+
const $ScriptCode: unique symbol;
|
|
78
|
+
const $LanguageSubtag: unique symbol;
|
|
79
|
+
/**
|
|
80
|
+
* A well-formed, valid BCP 47 tag in canonical form, such as `ja-Jpan-JP` or `en-GB`.
|
|
81
|
+
*/
|
|
82
|
+
type LanguageTag = string & {
|
|
83
|
+
readonly [$LanguageTag]: true;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* An ISO 15924 script code the registry holds, in its canonical title case, such as `Latn` or `Jpan`.
|
|
87
|
+
*/
|
|
88
|
+
type ScriptCode = string & {
|
|
89
|
+
readonly [$ScriptCode]: true;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* An ISO 639 language subtag the registry holds, in lowercase, such as `ja` or `yue`.
|
|
93
|
+
*/
|
|
94
|
+
type LanguageSubtag = string & {
|
|
95
|
+
readonly [$LanguageSubtag]: true;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The subtag types the IANA Language Subtag Registry defines.
|
|
100
|
+
*/
|
|
101
|
+
export declare const SubtagType: {
|
|
102
|
+
readonly Language: "language";
|
|
103
|
+
readonly Extlang: "extlang";
|
|
104
|
+
readonly Script: "script";
|
|
105
|
+
readonly Region: "region";
|
|
106
|
+
readonly Variant: "variant";
|
|
107
|
+
readonly Grandfathered: "grandfathered";
|
|
108
|
+
readonly Redundant: "redundant";
|
|
109
|
+
};
|
|
110
|
+
export type SubtagType = (typeof SubtagType)[keyof typeof SubtagType];
|
|
111
|
+
/**
|
|
112
|
+
* One registry record as a table module holds it.
|
|
113
|
+
*
|
|
114
|
+
* `subtag` holds the subtag for the five subtag types and the whole tag for `grandfathered` and `redundant`.
|
|
115
|
+
* A private-use range keeps its range spelling, such as `qaa..qtz`.
|
|
116
|
+
*
|
|
117
|
+
* Each table holds one subtag type, so a row leaves its type out.
|
|
118
|
+
*/
|
|
119
|
+
export interface SubtagRow {
|
|
120
|
+
subtag: string;
|
|
121
|
+
descriptions: string[];
|
|
122
|
+
deprecated?: string;
|
|
123
|
+
preferredValue?: string;
|
|
124
|
+
suppressScript?: string;
|
|
125
|
+
macrolanguage?: string;
|
|
126
|
+
scope?: string;
|
|
127
|
+
prefixes?: string[];
|
|
128
|
+
}
|
|
74
129
|
/**
|
|
75
130
|
* The status a country record holds.
|
|
76
131
|
*/
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../lib/types.ts"],"names":[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
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Branded identifier types. A brand is a declaration-only unique symbol, so a branded value is a plain string at
|
|
7
|
-
* runtime and the compiler refuses to pass one namespace's code where another's is expected.
|
|
8
|
-
*
|
|
9
|
-
* A branded value records that a validator accepted it under a documented profile at the time of the call. The
|
|
10
|
-
* issuing authority's later assignments are outside what the brand records.
|
|
4
|
+
* The subtag types the IANA Language Subtag Registry defines.
|
|
11
5
|
*/
|
|
6
|
+
export const SubtagType = {
|
|
7
|
+
Language: "language",
|
|
8
|
+
Extlang: "extlang",
|
|
9
|
+
Script: "script",
|
|
10
|
+
Region: "region",
|
|
11
|
+
Variant: "variant",
|
|
12
|
+
Grandfathered: "grandfathered",
|
|
13
|
+
Redundant: "redundant",
|
|
14
|
+
};
|
|
12
15
|
/**
|
|
13
16
|
* The status a country record holds.
|
|
14
17
|
*/
|
package/out/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../lib/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../lib/types.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AA+FlE;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,eAAe;IAC9B,SAAS,EAAE,WAAW;CACb,CAAA;AAuBV;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,kBAAkB,EAAE,qBAAqB;IACzC,YAAY,EAAE,eAAe;CACpB,CAAA;AAIV;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,SAAS,EAAE,WAAW;IACtB,eAAe,EAAE,kBAAkB;IACnC,QAAQ,EAAE,UAAU;CACX,CAAA"}
|
package/out/wasm.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* The WebAssembly batch adapter over `crates/registry-wasm`.
|
|
7
|
-
*
|
|
8
|
-
* Initialization is explicit: the caller passes the module's bytes or a compiled `WebAssembly.Module`, and this
|
|
9
|
-
* module compiles the module inside `createRegistry` and at no other time. `registryWasmURL` locates the committed
|
|
10
|
-
* binaries for a caller that loads them itself, and `preferredWasmVariant` reports whether the host runs `simd128`.
|
|
11
|
-
* A batch call stages the packed codes in linear memory, crosses the boundary once, and copies the masks into the
|
|
12
|
-
* caller's buffer. The staging buffers are kept and reused while they are large enough.
|
|
13
|
-
*/
|
|
14
1
|
/**
|
|
15
2
|
* The location of a committed `wasm/registry*.wasm`, resolved from this module.
|
|
16
3
|
*/
|
package/out/wasm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wasm.d.ts","sourceRoot":"","sources":["../lib/wasm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wasm.d.ts","sourceRoot":"","sources":["../lib/wasm.ts"],"names":[],"mappings":"AAqBA;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,GAAG,CAEzD;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAA;AAY3C;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,CAElD;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrC;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;AA8C/F;;GAEG;AACH,eAAO,MAAM,YAAY;aACxB,OAAO,EAAE,CAAC;aACV,OAAO,EAAE,CAAC;aACV,SAAS,EAAE,CAAC;aACZ,OAAO,EAAE,GAAI;CACJ,CAAA;AAEV;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACrC,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,SAAS,CAAC,EAAE,UAAU,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAA;IACxB,SAAS,CAAC,EAAE,qBAAqB,CAAA;CACjC;AA4BD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IAEtB,cAAc,EAAE;QACf;;;;;;WAMG;QACH,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;QAE7E;;;WAGG;QACH,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAAA;KAC9C,CAAA;IAED;;;;OAIG;IACH,OAAO,IAAI,IAAI,CAAA;CACf;AAID;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC,CAoF1F"}
|
package/out/wasm.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* The WebAssembly batch adapter over `crates/registry-wasm`.
|
|
7
5
|
*
|
|
8
|
-
* Initialization is explicit: the caller passes the module's bytes or a compiled `WebAssembly.Module`,
|
|
9
|
-
* module compiles the module inside `createRegistry` and at no other time.
|
|
10
|
-
* binaries for a caller that loads them itself,
|
|
11
|
-
*
|
|
12
|
-
*
|
|
6
|
+
* Initialization is explicit: the caller passes the module's bytes or a compiled `WebAssembly.Module`,
|
|
7
|
+
* and this module compiles the module inside `createRegistry` and at no other time.
|
|
8
|
+
* `registryWasmURL` locates the committed binaries for a caller that loads them itself,
|
|
9
|
+
* and `preferredWasmVariant` reports whether the host runs `simd128`.
|
|
10
|
+
*
|
|
11
|
+
* A batch call stages the packed codes in linear memory, crosses the boundary once,
|
|
12
|
+
* and copies the masks into the caller's buffer.
|
|
13
|
+
* The staging buffers are kept and reused while they're large enough.
|
|
13
14
|
*/
|
|
14
15
|
import { countryAirportCollisionArtifact } from "#artifacts/country-airport-collision";
|
|
15
16
|
import { iataAirportMembershipArtifact } from "#artifacts/iata-airport/membership";
|
package/out/wasm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wasm.js","sourceRoot":"","sources":["../lib/wasm.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"wasm.js","sourceRoot":"","sources":["../lib/wasm.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAA;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAEpC;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,OAAoB;IACnD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ACD,OAAO;YACN,IAAI,KAAK,CAAC,GAAG,EAAE,CAAC;gBACf,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;YAC1C,CAAC;YAED,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;gBAChB,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;YAC5C,CAAC;YAED,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,CAAC,CAAA;QAC3B,CAAC;KACD,CAAA;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/registry",
|
|
3
|
-
"version": "11.
|
|
4
|
-
"description": "A generated, typed registry of standardized identifiers and their relationships: ISO 3166-1 country codes
|
|
3
|
+
"version": "11.2.0",
|
|
4
|
+
"description": "A generated, typed registry of standardized identifiers and their relationships: ISO 3166-1 country codes, IATA airport codes, ISO 639 language subtags, ISO 15924 scripts and BCP 47 tags in this release, compiled from pinned open sources into RGY1 lookup artifacts with branded types, a synchronous TypeScript reader, a Rust lookup core and a WebAssembly batch adapter.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airport-codes",
|
|
7
|
+
"bcp47",
|
|
7
8
|
"country-codes",
|
|
8
9
|
"iata",
|
|
9
10
|
"iso-3166",
|
|
@@ -27,6 +28,8 @@
|
|
|
27
28
|
"out/**/*.d.ts",
|
|
28
29
|
"out/**/*.d.ts.map",
|
|
29
30
|
"lib/**/*.ts",
|
|
31
|
+
"lib/artifacts/**/*.fixture.json",
|
|
32
|
+
"out/artifacts/**/*.fixture.json",
|
|
30
33
|
"sdk/**/*.ts",
|
|
31
34
|
"tools/**/*.ts",
|
|
32
35
|
"data/manifests/*.json",
|
|
@@ -38,7 +41,12 @@
|
|
|
38
41
|
"!**/*.test.tsx"
|
|
39
42
|
],
|
|
40
43
|
"type": "module",
|
|
41
|
-
"sideEffects":
|
|
44
|
+
"sideEffects": [
|
|
45
|
+
"./sdk/**/*.run.ts",
|
|
46
|
+
"./tools/**/*.run.ts",
|
|
47
|
+
"./out/sdk/**/*.run.js",
|
|
48
|
+
"./out/tools/**/*.run.js"
|
|
49
|
+
],
|
|
42
50
|
"imports": {
|
|
43
51
|
"#sdk/*": {
|
|
44
52
|
"types": "./out/sdk/*.d.ts",
|
|
@@ -127,7 +135,7 @@
|
|
|
127
135
|
}
|
|
128
136
|
},
|
|
129
137
|
"dependencies": {
|
|
130
|
-
"@mailwoman/core": "11.
|
|
138
|
+
"@mailwoman/core": "11.2.0",
|
|
131
139
|
"path-ts": "^2.5.0"
|
|
132
140
|
},
|
|
133
141
|
"devDependencies": {
|
package/sdk/fetch.run.ts
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* Downloads the open profile's sources into `$MAILWOMAN_CACHE_ROOT/sources/registry/`
|
|
6
|
+
* and checks them against `data/manifests/sources.lock.json`.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
* against `data/manifests/sources.lock.json`.
|
|
8
|
+
* Usage: `node packages/registry/sdk/fetch.run.ts [--repin] [--only <source-id>]...`
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
+
* `--repin` rewrites the lock from the downloaded bytes.
|
|
11
|
+
* Without it, a changed publication fails the run.
|
|
10
12
|
*
|
|
11
|
-
* `--
|
|
13
|
+
* `--only` downloads the sources whose ids it lists and leaves every other locked entry unchanged.
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
import { parseArguments } from "@mailwoman/core/scripting/arguments"
|
|
15
17
|
|
|
16
18
|
import { retrieveRegistrySources } from "#sdk/fetch"
|
|
19
|
+
import { SOURCE_IDS, type SourceID } from "#sdk/sources"
|
|
20
|
+
|
|
21
|
+
const { values } = parseArguments({
|
|
22
|
+
options: {
|
|
23
|
+
repin: { type: "boolean", default: false },
|
|
24
|
+
only: { type: "string", multiple: true },
|
|
25
|
+
},
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const only = values.only?.map((id): SourceID => {
|
|
29
|
+
if (!(SOURCE_IDS as readonly string[]).includes(id)) {
|
|
30
|
+
throw new Error(`--only ${id}: not a source id; the ids are ${SOURCE_IDS.join(", ")}`)
|
|
31
|
+
}
|
|
17
32
|
|
|
18
|
-
|
|
33
|
+
return id as SourceID
|
|
34
|
+
})
|
|
19
35
|
|
|
20
|
-
const lock = await retrieveRegistrySources({ repin: values.repin })
|
|
36
|
+
const lock = await retrieveRegistrySources({ repin: values.repin, only })
|
|
21
37
|
|
|
22
38
|
for (const [id, entry] of Object.entries(lock.sources)) {
|
|
23
39
|
console.log(`${id}\t${entry.bytes} bytes\tsha256 ${entry.sha256}\tpublication ${entry.publication}`)
|
package/sdk/fetch.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Downloads the open profile's pinned sources into the data root and checks them against the lock.
|
|
7
6
|
*/
|
|
8
7
|
|
|
@@ -21,7 +20,7 @@ import {
|
|
|
21
20
|
type SourceID,
|
|
22
21
|
type SourceLock,
|
|
23
22
|
type SourceLockEntry,
|
|
24
|
-
|
|
23
|
+
pinnedSourceFile,
|
|
25
24
|
SOURCES,
|
|
26
25
|
} from "#sdk/sources"
|
|
27
26
|
|
|
@@ -69,7 +68,7 @@ export interface DownloadedSource {
|
|
|
69
68
|
*/
|
|
70
69
|
export async function retrieveRegistrySource(source: SourceDefinition, client: APIClient): Promise<DownloadedSource> {
|
|
71
70
|
const response = await client.fetch<string>({ url: source.url })
|
|
72
|
-
const path =
|
|
71
|
+
const path = pinnedSourceFile(source)
|
|
73
72
|
const body = typeof response.data === "string" ? response.data : stringifyJSON(response.data)
|
|
74
73
|
|
|
75
74
|
await writeLocalFile(body, path)
|
|
@@ -96,7 +95,7 @@ export function createRegistrySourceClient(): APIClient {
|
|
|
96
95
|
axios: {
|
|
97
96
|
headers: {
|
|
98
97
|
"User-Agent": "mailwoman-registry/0.1 (https://github.com/sister-software/mailwoman)",
|
|
99
|
-
Accept: "text/csv, application/sparql-results+json, application/json",
|
|
98
|
+
Accept: "text/csv, text/plain, application/sparql-results+json, application/json",
|
|
100
99
|
"Accept-Encoding": "gzip",
|
|
101
100
|
},
|
|
102
101
|
timeout: DOWNLOAD_TIMEOUT_MS,
|
|
@@ -107,18 +106,28 @@ export function createRegistrySourceClient(): APIClient {
|
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
/**
|
|
110
|
-
* Downloads every elected source
|
|
109
|
+
* Downloads every elected source, or the elected sources in `only`.
|
|
111
110
|
*
|
|
112
111
|
* With `repin`, the lock is rewritten from what was downloaded.
|
|
113
112
|
* Without it, a downloaded digest that differs from the lock is an error naming the source,
|
|
114
|
-
* because the build would otherwise read bytes the lock
|
|
113
|
+
* because the build would otherwise read bytes the lock doesn't describe.
|
|
114
|
+
*
|
|
115
|
+
* A source the lock doesn't hold yet is added to it.
|
|
116
|
+
* Sources outside `only` keep their locked entries unchanged.
|
|
115
117
|
*/
|
|
116
|
-
export async function retrieveRegistrySources(options: {
|
|
118
|
+
export async function retrieveRegistrySources(options: {
|
|
119
|
+
repin: boolean
|
|
120
|
+
only?: readonly SourceID[]
|
|
121
|
+
}): Promise<SourceLock> {
|
|
117
122
|
const client = createRegistrySourceClient()
|
|
118
123
|
const existing = await readSourceLock()
|
|
119
124
|
const downloaded: DownloadedSource[] = []
|
|
125
|
+
const wanted = options.only ? new Set<SourceID>(options.only) : null
|
|
126
|
+
let added = false
|
|
120
127
|
|
|
121
128
|
for (const source of SOURCES.filter((candidate) => candidate.terms.elected)) {
|
|
129
|
+
if (wanted && !wanted.has(source.id)) continue
|
|
130
|
+
|
|
122
131
|
const result = await retrieveRegistrySource(source, client)
|
|
123
132
|
const locked = existing?.sources[source.id]
|
|
124
133
|
|
|
@@ -129,16 +138,27 @@ export async function retrieveRegistrySources(options: { repin: boolean }): Prom
|
|
|
129
138
|
)
|
|
130
139
|
}
|
|
131
140
|
|
|
141
|
+
if (!locked) {
|
|
142
|
+
added = true
|
|
143
|
+
}
|
|
144
|
+
|
|
132
145
|
downloaded.push(result)
|
|
133
146
|
}
|
|
134
147
|
|
|
148
|
+
const sources = {
|
|
149
|
+
...existing?.sources,
|
|
150
|
+
...Object.fromEntries(downloaded.map((item) => [item.id, item.entry])),
|
|
151
|
+
} as SourceLock["sources"]
|
|
152
|
+
|
|
135
153
|
const lock: SourceLock = {
|
|
136
154
|
profile: OPEN_PROFILE,
|
|
137
|
-
sources: Object.fromEntries(
|
|
155
|
+
sources: Object.fromEntries(
|
|
156
|
+
Object.entries(sources).toSorted(([left], [right]) => left.localeCompare(right))
|
|
157
|
+
) as SourceLock["sources"],
|
|
138
158
|
$notElected: { "unsd-m49": UN_M49_NOT_ELECTED },
|
|
139
159
|
}
|
|
140
160
|
|
|
141
|
-
if (options.repin || !existing) {
|
|
161
|
+
if (options.repin || !existing || added) {
|
|
142
162
|
await writeLocalJSONFile(lock, sourceLockPath())
|
|
143
163
|
}
|
|
144
164
|
|
package/sdk/sources.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* The pinned sources of the open profile, and the lock that records the bytes a build read.
|
|
7
6
|
*
|
|
8
|
-
* A source is a published file at one URL.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* A source is a published file at one URL.
|
|
8
|
+
* The lock records its SHA-256 and byte count, the publication marker the server stated
|
|
9
|
+
* (`Last-Modified` or `ETag`), and the publisher's statement of terms.
|
|
10
|
+
*
|
|
11
|
+
* A build reads the locked bytes from the data root and refuses bytes whose digest differs,
|
|
12
|
+
* so a moving `latest` never enters an artifact unnoticed.
|
|
11
13
|
*/
|
|
12
14
|
|
|
13
|
-
import {
|
|
15
|
+
import { currentSourcePath } from "@mailwoman/core/data-root"
|
|
14
16
|
import type { PathBuilder } from "path-ts"
|
|
15
17
|
|
|
16
18
|
/**
|
|
@@ -52,7 +54,12 @@ export interface SourceDefinition {
|
|
|
52
54
|
/**
|
|
53
55
|
* The identifiers of the open profile's sources, as the lock keys them.
|
|
54
56
|
*/
|
|
55
|
-
export const SOURCE_IDS = [
|
|
57
|
+
export const SOURCE_IDS = [
|
|
58
|
+
"iana-language-subtags",
|
|
59
|
+
"ourairports-airports",
|
|
60
|
+
"ourairports-countries",
|
|
61
|
+
"wikidata-iso3166-1",
|
|
62
|
+
] as const
|
|
56
63
|
|
|
57
64
|
export type SourceID = (typeof SOURCE_IDS)[number]
|
|
58
65
|
|
|
@@ -60,7 +67,7 @@ export type SourceID = (typeof SOURCE_IDS)[number]
|
|
|
60
67
|
* The SPARQL query that reads every item holding an ISO 3166-1 alpha-2, alpha-3 and numeric code.
|
|
61
68
|
*
|
|
62
69
|
* `wdt:` reads the best-rank claim.
|
|
63
|
-
* A state that
|
|
70
|
+
* A state that's ended, such as the German Democratic Republic (`DD`) or the Netherlands Antilles
|
|
64
71
|
* (`AN`), keeps its codes as best-rank claims, so the query also reads the dissolution date (P576)
|
|
65
72
|
* and the normalizer records such an entry as `formerly-used` rather than `officially-assigned`.
|
|
66
73
|
*
|
|
@@ -82,7 +89,7 @@ export const WIKIDATA_SPARQL_ENDPOINT = "https://query.wikidata.org/sparql"
|
|
|
82
89
|
/**
|
|
83
90
|
* The open profile's sources.
|
|
84
91
|
*
|
|
85
|
-
* The UN Statistics Division's M49 crosswalk
|
|
92
|
+
* The UN Statistics Division's M49 crosswalk isn't among them.
|
|
86
93
|
* The UN terms of use (https://www.un.org/en/about-us/terms-of-use, read 2026-11-06)
|
|
87
94
|
* grant "personal, non-commercial use, without any right to resell or redistribute"
|
|
88
95
|
* and exclude the right "to compile or create derivative works therefrom".
|
|
@@ -91,6 +98,19 @@ export const WIKIDATA_SPARQL_ENDPOINT = "https://query.wikidata.org/sparql"
|
|
|
91
98
|
* recorded as not elected rather than pinned.
|
|
92
99
|
*/
|
|
93
100
|
export const SOURCES: readonly SourceDefinition[] = [
|
|
101
|
+
{
|
|
102
|
+
id: "iana-language-subtags",
|
|
103
|
+
url: "https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry",
|
|
104
|
+
file: "iana-language-subtag-registry.txt",
|
|
105
|
+
terms: {
|
|
106
|
+
statement:
|
|
107
|
+
"IANA and IETF intend that the Protocol Registries may be freely used by any party for any purpose. " +
|
|
108
|
+
"Any applicable rights that they may have in the Protocol Registries are subject to the Creative Commons CC0 1.0 dedication.",
|
|
109
|
+
readAt: "https://www.iana.org/help/licensing-terms",
|
|
110
|
+
elected: true,
|
|
111
|
+
},
|
|
112
|
+
feeds: ["bcp47-language", "bcp47-extlang", "iso15924-script", "bcp47-region", "bcp47-variant"],
|
|
113
|
+
},
|
|
94
114
|
{
|
|
95
115
|
id: "ourairports-airports",
|
|
96
116
|
url: "https://davidmegginson.github.io/ourairports-data/airports.csv",
|
|
@@ -155,8 +175,10 @@ export interface SourceLock {
|
|
|
155
175
|
}
|
|
156
176
|
|
|
157
177
|
/**
|
|
158
|
-
* Where the pinned bytes of a source live.
|
|
178
|
+
* Where the pinned bytes of a source live: a current source under the cache root.
|
|
179
|
+
*
|
|
180
|
+
* A fetch checks the bytes against the lock, and fetches them again after the cache root is cleared.
|
|
159
181
|
*/
|
|
160
|
-
export function
|
|
161
|
-
return
|
|
182
|
+
export function pinnedSourceFile(source: SourceDefinition): PathBuilder {
|
|
183
|
+
return currentSourcePath("registry", source.file)
|
|
162
184
|
}
|
package/tools/artifact-path.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
|
|
7
4
|
/**
|
|
8
5
|
* Returns the module an artifact's bytes live in under `lib/artifacts/`, grouped by the dataset it reads.
|
package/tools/bench.run.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Measures the readers on this host and prints a Markdown report for `docs/performance.md`.
|
|
7
6
|
*
|
|
8
|
-
* Arms: a JavaScript `Set` of strings as the baseline, the TypeScript bitset reader,
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* Arms: a JavaScript `Set` of strings as the baseline, the TypeScript bitset reader,
|
|
8
|
+
* and the WebAssembly batch kernels, scalar and simd.
|
|
9
|
+
* Inputs: strings end to end, and packed bytes where an arm takes them.
|
|
10
|
+
*
|
|
11
|
+
* Batch sizes 1, 16, 256, 4,096 and the whole 17,576-key domain.
|
|
12
|
+
* Distributions: hits, misses, and a shuffled sweep of the domain.
|
|
13
|
+
*
|
|
14
|
+
* Startup: module import, artifact decode and validation, wasm compile and instantiate, first query.
|
|
15
|
+
* Every result is consumed so the work is kept.
|
|
13
16
|
*
|
|
14
17
|
* Usage: `node packages/registry/tools/bench.run.ts [--json]`
|
|
15
18
|
*
|
|
16
|
-
* The numbers describe one host and one run.
|
|
19
|
+
* The numbers describe one host and one run.
|
|
20
|
+
* The report records the host, Node and the artifact digests beside them.
|
|
17
21
|
*/
|
|
18
22
|
|
|
19
23
|
import { readLocalBuffer, readLocalJSONFile } from "@mailwoman/core/fs/readers"
|
|
@@ -85,13 +89,17 @@ const firstQueryNs = nanoseconds(firstQueryStart)
|
|
|
85
89
|
const countries = await readLocalJSONFile<{ records: Array<{ alpha3: string; status: string }> }>(
|
|
86
90
|
workspacePath("registry", "data", "normalized", "iso3166-1.json")
|
|
87
91
|
)
|
|
92
|
+
|
|
88
93
|
const airports = await readLocalJSONFile<{ records: Array<{ iata: string }> }>(
|
|
89
94
|
workspacePath("registry", "data", "normalized", "iata-airports.json")
|
|
90
95
|
)
|
|
96
|
+
|
|
91
97
|
const setStart = process.hrtime.bigint()
|
|
98
|
+
|
|
92
99
|
const countrySet = new Set(
|
|
93
100
|
countries.records.filter((record) => record.status === "officially-assigned").map((record) => record.alpha3)
|
|
94
101
|
)
|
|
102
|
+
|
|
95
103
|
const airportSet = new Set(airports.records.map((record) => record.iata))
|
|
96
104
|
const collisionSet = new Set([...countrySet].filter((code) => airportSet.has(code)))
|
|
97
105
|
const setBuildNs = nanoseconds(setStart)
|
|
@@ -162,6 +170,7 @@ for (const [distribution, codes] of [
|
|
|
162
170
|
}
|
|
163
171
|
|
|
164
172
|
const variants = wasm.preferredWasmVariant() === "simd" ? (["scalar", "simd"] as const) : (["scalar"] as const)
|
|
173
|
+
|
|
165
174
|
const startup: Record<string, number> = {
|
|
166
175
|
"module import": importNs,
|
|
167
176
|
"artifact decode + validate (3 bitsets)": decodeNs,
|
package/tools/build-wasm.run.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Builds `crates/registry-wasm` for `wasm32-unknown-unknown` twice, once with `simd128` and once without, and
|
|
7
|
-
* writes `wasm/registry-simd.wasm` and `wasm/registry.wasm`.
|
|
5
|
+
* Builds `crates/registry-wasm` for `wasm32-unknown-unknown` twice, once with `simd128`
|
|
6
|
+
* and once without, and writes `wasm/registry-simd.wasm` and `wasm/registry.wasm`.
|
|
8
7
|
*
|
|
9
|
-
* The two builds use separate target directories, because a `RUSTFLAGS` change would
|
|
10
|
-
* crate in the shared target directory.
|
|
8
|
+
* The two builds use separate target directories, because a `RUSTFLAGS` change would
|
|
9
|
+
* otherwise invalidate every crate in the shared target directory.
|
|
11
10
|
*
|
|
12
|
-
* With `--check`, the tool builds without writing and exits non-zero
|
|
13
|
-
* committed binary's.
|
|
11
|
+
* With `--check`, the tool builds without writing and exits non-zero
|
|
12
|
+
* when a build's SHA-256 differs from the committed binary's.
|
|
14
13
|
*
|
|
15
14
|
* Usage: `node packages/registry/tools/build-wasm.run.ts [--check]`
|
|
16
15
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Writes the section-kind constants TypeScript and Rust share from `definitions/sections.json`.
|
|
7
6
|
*
|
|
8
7
|
* Usage: `node packages/registry/tools/generate-sections.run.ts [--check]`
|
|
@@ -15,6 +14,7 @@ import { writeLocalFile } from "@mailwoman/core/fs/writers"
|
|
|
15
14
|
import { stringifyJSON } from "@mailwoman/core/json"
|
|
16
15
|
import { workspacePath } from "@mailwoman/core/paths"
|
|
17
16
|
import { parseArguments } from "@mailwoman/core/scripting/arguments"
|
|
17
|
+
import { SourceHeaderSyntax, spdxHeaderText } from "@mailwoman/core/spdx-header"
|
|
18
18
|
|
|
19
19
|
interface SectionDefinitions {
|
|
20
20
|
envelope: { magic: string; version: number; headerOffset: number; directoryEntryBytes: number; alignment: number }
|
|
@@ -28,11 +28,7 @@ const definitions = await readLocalJSONFile<SectionDefinitions>(registry("defini
|
|
|
28
28
|
|
|
29
29
|
const constant = (name: string): string => name.toUpperCase().replaceAll("-", "_")
|
|
30
30
|
|
|
31
|
-
const typescript =
|
|
32
|
-
* @copyright Sister Software
|
|
33
|
-
* @license AGPL-3.0
|
|
34
|
-
* @author Teffen Ellis, et al.
|
|
35
|
-
*
|
|
31
|
+
const typescript = `${spdxHeaderText(SourceHeaderSyntax.Slash)}/**
|
|
36
32
|
* The RGY1 section kinds. Generated from definitions/sections.json by tools/generate-sections.run.ts. Edit the
|
|
37
33
|
* definition rather than this file.
|
|
38
34
|
*/
|
|
@@ -91,11 +87,7 @@ ${definitions.kinds.map((kind) => `\t[SectionKind.${constant(kind.name)}]: ${str
|
|
|
91
87
|
}
|
|
92
88
|
`
|
|
93
89
|
|
|
94
|
-
const rust =
|
|
95
|
-
// @license AGPL-3.0
|
|
96
|
-
// @author Teffen Ellis, et al.
|
|
97
|
-
|
|
98
|
-
//! The RGY1 section kinds. Generated from \`definitions/sections.json\` by
|
|
90
|
+
const rust = `${spdxHeaderText(SourceHeaderSyntax.Slash)}//! The RGY1 section kinds. Generated from \`definitions/sections.json\` by
|
|
99
91
|
//! \`tools/generate-sections.run.ts\`. Edit the definition rather than this file.
|
|
100
92
|
|
|
101
93
|
pub const MAGIC: &[u8; 4] = b${stringifyJSON(definitions.envelope.magic)};
|