@ot-builder/io-bin-name 1.5.0 → 1.5.3

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.json CHANGED
@@ -2,7 +2,274 @@
2
2
  "name": "@ot-builder/io-bin-name",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 26 Mar 2022 01:35:44 GMT",
5
+ "date": "Fri, 24 Jun 2022 07:03:56 GMT",
6
+ "tag": "@ot-builder/io-bin-name_v1.5.3",
7
+ "version": "1.5.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@ot-builder/io-bin-name",
13
+ "comment": "Bump @ot-builder/bin-util to v1.5.3",
14
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@ot-builder/io-bin-name",
19
+ "comment": "Bump @ot-builder/common-impl to v1.5.3",
20
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@ot-builder/io-bin-name",
25
+ "comment": "Bump @ot-builder/errors to v1.5.3",
26
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@ot-builder/io-bin-name",
31
+ "comment": "Bump @ot-builder/ot-glyphs to v1.5.3",
32
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@ot-builder/io-bin-name",
37
+ "comment": "Bump @ot-builder/ot-metadata to v1.5.3",
38
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@ot-builder/io-bin-name",
43
+ "comment": "Bump @ot-builder/ot-name to v1.5.3",
44
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@ot-builder/io-bin-name",
49
+ "comment": "Bump @ot-builder/prelude to v1.5.3",
50
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@ot-builder/io-bin-name",
55
+ "comment": "Bump @ot-builder/primitive to v1.5.3",
56
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@ot-builder/io-bin-name",
61
+ "comment": "Bump @ot-builder/ot-sfnt to v1.5.3",
62
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@ot-builder/io-bin-name",
67
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.5.3",
68
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@ot-builder/io-bin-name",
73
+ "comment": "Bump @ot-builder/io-bin-glyph-store to v1.5.3",
74
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@ot-builder/io-bin-name",
79
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.5.3",
80
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@ot-builder/io-bin-name",
85
+ "comment": "Bump @ot-builder/test-util to v1.5.3",
86
+ "commit": "de04c0b58fcaf7beaf9165568f674ff823549c22"
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ {
92
+ "date": "Sat, 30 Apr 2022 01:52:52 GMT",
93
+ "tag": "@ot-builder/io-bin-name_v1.5.2",
94
+ "version": "1.5.2",
95
+ "comments": {
96
+ "patch": [
97
+ {
98
+ "author": "beachball",
99
+ "package": "@ot-builder/io-bin-name",
100
+ "comment": "Bump @ot-builder/bin-util to v1.5.2",
101
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@ot-builder/io-bin-name",
106
+ "comment": "Bump @ot-builder/common-impl to v1.5.2",
107
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@ot-builder/io-bin-name",
112
+ "comment": "Bump @ot-builder/errors to v1.5.2",
113
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@ot-builder/io-bin-name",
118
+ "comment": "Bump @ot-builder/ot-glyphs to v1.5.2",
119
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
120
+ },
121
+ {
122
+ "author": "beachball",
123
+ "package": "@ot-builder/io-bin-name",
124
+ "comment": "Bump @ot-builder/ot-metadata to v1.5.2",
125
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
126
+ },
127
+ {
128
+ "author": "beachball",
129
+ "package": "@ot-builder/io-bin-name",
130
+ "comment": "Bump @ot-builder/ot-name to v1.5.2",
131
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
132
+ },
133
+ {
134
+ "author": "beachball",
135
+ "package": "@ot-builder/io-bin-name",
136
+ "comment": "Bump @ot-builder/prelude to v1.5.2",
137
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
138
+ },
139
+ {
140
+ "author": "beachball",
141
+ "package": "@ot-builder/io-bin-name",
142
+ "comment": "Bump @ot-builder/primitive to v1.5.2",
143
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
144
+ },
145
+ {
146
+ "author": "beachball",
147
+ "package": "@ot-builder/io-bin-name",
148
+ "comment": "Bump @ot-builder/ot-sfnt to v1.5.2",
149
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
150
+ },
151
+ {
152
+ "author": "beachball",
153
+ "package": "@ot-builder/io-bin-name",
154
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.5.2",
155
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
156
+ },
157
+ {
158
+ "author": "beachball",
159
+ "package": "@ot-builder/io-bin-name",
160
+ "comment": "Bump @ot-builder/io-bin-glyph-store to v1.5.2",
161
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
162
+ },
163
+ {
164
+ "author": "beachball",
165
+ "package": "@ot-builder/io-bin-name",
166
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.5.2",
167
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
168
+ },
169
+ {
170
+ "author": "beachball",
171
+ "package": "@ot-builder/io-bin-name",
172
+ "comment": "Bump @ot-builder/test-util to v1.5.2",
173
+ "commit": "5a0c2cbaa1e9aa34821a913004e8c8ae0f4cb1d7"
174
+ }
175
+ ]
176
+ }
177
+ },
178
+ {
179
+ "date": "Sat, 02 Apr 2022 01:40:06 GMT",
180
+ "tag": "@ot-builder/io-bin-name_v1.5.1",
181
+ "version": "1.5.1",
182
+ "comments": {
183
+ "patch": [
184
+ {
185
+ "author": "otbbuilder-dev@users.noreply.github.com",
186
+ "package": "@ot-builder/io-bin-name",
187
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af",
188
+ "comment": "Enforce ordering of name entries"
189
+ },
190
+ {
191
+ "author": "beachball",
192
+ "package": "@ot-builder/io-bin-name",
193
+ "comment": "Bump @ot-builder/bin-util to v1.5.1",
194
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
195
+ },
196
+ {
197
+ "author": "beachball",
198
+ "package": "@ot-builder/io-bin-name",
199
+ "comment": "Bump @ot-builder/common-impl to v1.5.1",
200
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
201
+ },
202
+ {
203
+ "author": "beachball",
204
+ "package": "@ot-builder/io-bin-name",
205
+ "comment": "Bump @ot-builder/errors to v1.5.1",
206
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
207
+ },
208
+ {
209
+ "author": "beachball",
210
+ "package": "@ot-builder/io-bin-name",
211
+ "comment": "Bump @ot-builder/ot-glyphs to v1.5.1",
212
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
213
+ },
214
+ {
215
+ "author": "beachball",
216
+ "package": "@ot-builder/io-bin-name",
217
+ "comment": "Bump @ot-builder/ot-metadata to v1.5.1",
218
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
219
+ },
220
+ {
221
+ "author": "beachball",
222
+ "package": "@ot-builder/io-bin-name",
223
+ "comment": "Bump @ot-builder/ot-name to v1.5.1",
224
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
225
+ },
226
+ {
227
+ "author": "beachball",
228
+ "package": "@ot-builder/io-bin-name",
229
+ "comment": "Bump @ot-builder/prelude to v1.5.1",
230
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
231
+ },
232
+ {
233
+ "author": "beachball",
234
+ "package": "@ot-builder/io-bin-name",
235
+ "comment": "Bump @ot-builder/primitive to v1.5.1",
236
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
237
+ },
238
+ {
239
+ "author": "beachball",
240
+ "package": "@ot-builder/io-bin-name",
241
+ "comment": "Bump @ot-builder/ot-sfnt to v1.5.1",
242
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
243
+ },
244
+ {
245
+ "author": "beachball",
246
+ "package": "@ot-builder/io-bin-name",
247
+ "comment": "Bump @ot-builder/io-bin-sfnt to v1.5.1",
248
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
249
+ },
250
+ {
251
+ "author": "beachball",
252
+ "package": "@ot-builder/io-bin-name",
253
+ "comment": "Bump @ot-builder/io-bin-glyph-store to v1.5.1",
254
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
255
+ },
256
+ {
257
+ "author": "beachball",
258
+ "package": "@ot-builder/io-bin-name",
259
+ "comment": "Bump @ot-builder/io-bin-metadata to v1.5.1",
260
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
261
+ },
262
+ {
263
+ "author": "beachball",
264
+ "package": "@ot-builder/io-bin-name",
265
+ "comment": "Bump @ot-builder/test-util to v1.5.1",
266
+ "commit": "f87981f0891315771cda43fb56a3d8e85731a0af"
267
+ }
268
+ ]
269
+ }
270
+ },
271
+ {
272
+ "date": "Sat, 26 Mar 2022 01:37:00 GMT",
6
273
  "tag": "@ot-builder/io-bin-name_v1.5.0",
7
274
  "version": "1.5.0",
8
275
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,73 @@
1
1
  # Change Log - @ot-builder/io-bin-name
2
2
 
3
- This log was last generated on Sat, 26 Mar 2022 01:35:44 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 24 Jun 2022 07:03:56 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.5.3
8
+
9
+ Fri, 24 Jun 2022 07:03:56 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @ot-builder/bin-util to v1.5.3
14
+ - Bump @ot-builder/common-impl to v1.5.3
15
+ - Bump @ot-builder/errors to v1.5.3
16
+ - Bump @ot-builder/ot-glyphs to v1.5.3
17
+ - Bump @ot-builder/ot-metadata to v1.5.3
18
+ - Bump @ot-builder/ot-name to v1.5.3
19
+ - Bump @ot-builder/prelude to v1.5.3
20
+ - Bump @ot-builder/primitive to v1.5.3
21
+ - Bump @ot-builder/ot-sfnt to v1.5.3
22
+ - Bump @ot-builder/io-bin-sfnt to v1.5.3
23
+ - Bump @ot-builder/io-bin-glyph-store to v1.5.3
24
+ - Bump @ot-builder/io-bin-metadata to v1.5.3
25
+ - Bump @ot-builder/test-util to v1.5.3
26
+
27
+ ## 1.5.2
28
+
29
+ Sat, 30 Apr 2022 01:52:52 GMT
30
+
31
+ ### Patches
32
+
33
+ - Bump @ot-builder/bin-util to v1.5.2
34
+ - Bump @ot-builder/common-impl to v1.5.2
35
+ - Bump @ot-builder/errors to v1.5.2
36
+ - Bump @ot-builder/ot-glyphs to v1.5.2
37
+ - Bump @ot-builder/ot-metadata to v1.5.2
38
+ - Bump @ot-builder/ot-name to v1.5.2
39
+ - Bump @ot-builder/prelude to v1.5.2
40
+ - Bump @ot-builder/primitive to v1.5.2
41
+ - Bump @ot-builder/ot-sfnt to v1.5.2
42
+ - Bump @ot-builder/io-bin-sfnt to v1.5.2
43
+ - Bump @ot-builder/io-bin-glyph-store to v1.5.2
44
+ - Bump @ot-builder/io-bin-metadata to v1.5.2
45
+ - Bump @ot-builder/test-util to v1.5.2
46
+
47
+ ## 1.5.1
48
+
49
+ Sat, 02 Apr 2022 01:40:06 GMT
50
+
51
+ ### Patches
52
+
53
+ - Enforce ordering of name entries (otbbuilder-dev@users.noreply.github.com)
54
+ - Bump @ot-builder/bin-util to v1.5.1
55
+ - Bump @ot-builder/common-impl to v1.5.1
56
+ - Bump @ot-builder/errors to v1.5.1
57
+ - Bump @ot-builder/ot-glyphs to v1.5.1
58
+ - Bump @ot-builder/ot-metadata to v1.5.1
59
+ - Bump @ot-builder/ot-name to v1.5.1
60
+ - Bump @ot-builder/prelude to v1.5.1
61
+ - Bump @ot-builder/primitive to v1.5.1
62
+ - Bump @ot-builder/ot-sfnt to v1.5.1
63
+ - Bump @ot-builder/io-bin-sfnt to v1.5.1
64
+ - Bump @ot-builder/io-bin-glyph-store to v1.5.1
65
+ - Bump @ot-builder/io-bin-metadata to v1.5.1
66
+ - Bump @ot-builder/test-util to v1.5.1
67
+
7
68
  ## 1.5.0
8
69
 
9
- Sat, 26 Mar 2022 01:35:44 GMT
70
+ Sat, 26 Mar 2022 01:37:00 GMT
10
71
 
11
72
  ### Minor changes
12
73
 
package/lib/name/index.js CHANGED
@@ -63,6 +63,15 @@ const NameRecord = {
63
63
  throw errors_1.Errors.Name.EncodingNotSupported(rec.platformID, rec.encodingID);
64
64
  frag.uint16(buf.byteLength);
65
65
  frag.uint16(alloc.add(buf));
66
+ },
67
+ compare(a, b) {
68
+ if (a.platformID !== b.platformID)
69
+ return a.platformID - b.platformID;
70
+ if (a.encodingID !== b.encodingID)
71
+ return a.encodingID - b.encodingID;
72
+ if (a.languageID !== b.languageID)
73
+ return a.languageID - b.languageID;
74
+ return a.nameID - b.nameID;
66
75
  }
67
76
  };
68
77
  const LangTagRecord = {
@@ -101,10 +110,11 @@ exports.NameIo = {
101
110
  const format = table.langTagMap && table.langTagMap.length ? 1 : 0;
102
111
  const frStrings = new bin_util_1.Frag();
103
112
  const noa = new NameOffsetAllocator();
113
+ const sortedRecords = Array.from(table.records).sort(NameRecord.compare);
104
114
  frag.uint16(format);
105
- frag.uint16(table.records.length);
115
+ frag.uint16(sortedRecords.length);
106
116
  frag.ptr16(frStrings);
107
- for (const rec of table.records) {
117
+ for (const rec of sortedRecords) {
108
118
  frag.push(NameRecord, rec, noa);
109
119
  }
110
120
  if (format === 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ot-builder/io-bin-name",
3
- "version": "1.5.0",
3
+ "version": "1.5.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,23 +23,23 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@ot-builder/bin-util": "1.5.0",
27
- "@ot-builder/common-impl": "1.5.0",
28
- "@ot-builder/errors": "1.5.0",
29
- "@ot-builder/ot-glyphs": "1.5.0",
30
- "@ot-builder/ot-metadata": "1.5.0",
31
- "@ot-builder/ot-name": "1.5.0",
32
- "@ot-builder/prelude": "1.5.0",
33
- "@ot-builder/primitive": "1.5.0",
34
- "@ot-builder/ot-sfnt": "1.5.0",
35
- "@ot-builder/io-bin-sfnt": "1.5.0",
26
+ "@ot-builder/bin-util": "1.5.3",
27
+ "@ot-builder/common-impl": "1.5.3",
28
+ "@ot-builder/errors": "1.5.3",
29
+ "@ot-builder/ot-glyphs": "1.5.3",
30
+ "@ot-builder/ot-metadata": "1.5.3",
31
+ "@ot-builder/ot-name": "1.5.3",
32
+ "@ot-builder/prelude": "1.5.3",
33
+ "@ot-builder/primitive": "1.5.3",
34
+ "@ot-builder/ot-sfnt": "1.5.3",
35
+ "@ot-builder/io-bin-sfnt": "1.5.3",
36
36
  "iconv-lite": "^0.6.3",
37
37
  "tslib": "^2.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@ot-builder/io-bin-glyph-store": "1.5.0",
41
- "@ot-builder/io-bin-metadata": "1.5.0",
42
- "@ot-builder/test-util": "1.5.0",
40
+ "@ot-builder/io-bin-glyph-store": "1.5.3",
41
+ "@ot-builder/io-bin-metadata": "1.5.3",
42
+ "@ot-builder/test-util": "1.5.3",
43
43
  "@types/jest": "^26.0.23",
44
44
  "jest": "^27.5.1"
45
45
  }