@thomas.f/prnext 0.1.19-alpha → 0.1.20-alpha
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/build/app.mjs +46 -78
- package/build/build-lock.mjs +2 -71
- package/build/build-retention.mjs +119 -0
- package/build/bundle-runtime.mjs +9 -8
- package/build/cache-command.mjs +31 -0
- package/build/check.mjs +41 -3
- package/build/compilation-cache.mjs +32 -12
- package/build/compilation-storage.mjs +190 -0
- package/build/compiler.mjs +3 -3
- package/build/config.mjs +23 -2
- package/build/create.mjs +1 -1
- package/build/css-modules.mjs +4 -0
- package/build/dev-action-graph.mjs +21 -0
- package/build/font-cache.mjs +9 -6
- package/build/font-files.mjs +1 -1
- package/build/index.mjs +30 -13
- package/build/native-ppr.mjs +32 -0
- package/build/og.mjs +121 -1
- package/build/parallel-plan.mjs +55 -0
- package/build/persistent-cache.mjs +29 -24
- package/build/production-check.mjs +34 -0
- package/build/react-compiler-report.mjs +31 -8
- package/build/react-compiler.mjs +101 -10
- package/build/server-config.mjs +35 -0
- package/build/source-analysis.mjs +54 -4
- package/build/static-adapter.mjs +7 -3
- package/build/transform.mjs +38 -6
- package/build/typescript-dev.mjs +3 -1
- package/cli.mjs +14 -5
- package/compat/app-layout-context.cjs +7 -3
- package/compat/flight-delta.cjs +47 -12
- package/compat/index.d.ts +24 -1
- package/compat/navigation-authorization.cjs +8 -1
- package/docs/ai/compatibility.md +110 -7
- package/docs/ai/deployment.md +141 -0
- package/docs/ai/quickstart.md +5 -0
- package/package.json +12 -9
- package/release/fontkit.mjs +31 -0
- package/release/verify.mjs +3 -0
- package/runtime/api.mjs +5 -2
- package/runtime/app-client.mjs +150 -26
- package/runtime/app-partial.mjs +2 -10
- package/runtime/app-prefetch.mjs +2 -2
- package/runtime/app-render.mjs +11 -7
- package/runtime/app-stream-channel.mjs +3 -2
- package/runtime/app-styles.mjs +22 -4
- package/runtime/compile-cache-retention.mjs +53 -0
- package/runtime/compile-cache.mjs +28 -1
- package/runtime/dev-client.mjs +6 -3
- package/runtime/dev-gateway.mjs +3 -2
- package/runtime/dev-route-selection.mjs +64 -0
- package/runtime/dev-runtime-pool.mjs +3 -2
- package/runtime/dev-runtime-spare.mjs +1 -1
- package/runtime/dev-session-retention.mjs +154 -0
- package/runtime/development.mjs +27 -8
- package/runtime/env.mjs +9 -0
- package/runtime/flight-delta.mjs +31 -5
- package/runtime/native-ppr.mjs +35 -0
- package/runtime/og/NOTICE.txt +1 -1
- package/runtime/og/index.node.mjs +76 -31216
- package/runtime/og/upstream.json +115 -0
- package/runtime/persistent/client.mjs +4 -2
- package/runtime/persistent/daemon.mjs +3 -11
- package/runtime/persistent/health.mjs +58 -0
- package/runtime/project-lock.mjs +71 -0
- package/runtime/request-transport.mjs +112 -32
- package/runtime/storage-path.mjs +36 -0
- package/runtime/trace.mjs +44 -4
- package/runtime/worker.mjs +9 -4
- package/vendor/fontkit/NOTICE.txt +5 -0
- package/vendor/fontkit/SOURCE-NOTICES.txt +209 -0
- package/vendor/fontkit/index.mjs +3 -0
- package/vendor/fontkit/licenses/@swc__helpers/LICENSE +201 -0
- package/vendor/fontkit/licenses/base64-js/LICENSE +21 -0
- package/vendor/fontkit/licenses/brotli/readme.md +61 -0
- package/vendor/fontkit/licenses/clone/LICENSE +18 -0
- package/vendor/fontkit/licenses/dfa/README.md +83 -0
- package/vendor/fontkit/licenses/fast-deep-equal/LICENSE +21 -0
- package/vendor/fontkit/licenses/fontkit/README.md +266 -0
- package/vendor/fontkit/licenses/restructure/LICENSE +21 -0
- package/vendor/fontkit/licenses/tiny-inflate/LICENSE +21 -0
- package/vendor/fontkit/licenses/tslib/LICENSE.txt +12 -0
- package/vendor/fontkit/licenses/unicode-properties/LICENSE +8 -0
- package/vendor/fontkit/licenses/unicode-trie/LICENSE +8 -0
- package/vendor/fontkit/upstream.json +215 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
|
14
|
+
|
|
15
|
+
Bit reading helpers
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
19
|
+
|
|
20
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
you may not use this file except in compliance with the License.
|
|
22
|
+
You may obtain a copy of the License at
|
|
23
|
+
|
|
24
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
25
|
+
|
|
26
|
+
Unless required by applicable law or agreed to in writing, software
|
|
27
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
28
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
|
+
See the License for the specific language governing permissions and
|
|
30
|
+
limitations under the License.
|
|
31
|
+
|
|
32
|
+
Collection of static dictionary words.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
36
|
+
|
|
37
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
38
|
+
you may not use this file except in compliance with the License.
|
|
39
|
+
You may obtain a copy of the License at
|
|
40
|
+
|
|
41
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
42
|
+
|
|
43
|
+
Unless required by applicable law or agreed to in writing, software
|
|
44
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
45
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
46
|
+
See the License for the specific language governing permissions and
|
|
47
|
+
limitations under the License.
|
|
48
|
+
|
|
49
|
+
Lookup table to map the previous two bytes to a context id.
|
|
50
|
+
|
|
51
|
+
There are four different context modeling modes defined here:
|
|
52
|
+
CONTEXT_LSB6: context id is the least significant 6 bits of the last byte,
|
|
53
|
+
CONTEXT_MSB6: context id is the most significant 6 bits of the last byte,
|
|
54
|
+
CONTEXT_UTF8: second-order context model tuned for UTF8-encoded text,
|
|
55
|
+
CONTEXT_SIGNED: second-order context model tuned for signed integers.
|
|
56
|
+
|
|
57
|
+
The context id for the UTF8 context model is calculated as follows. If p1
|
|
58
|
+
and p2 are the previous two bytes, we calcualte the context as
|
|
59
|
+
|
|
60
|
+
context = kContextLookup[p1] | kContextLookup[p2 + 256].
|
|
61
|
+
|
|
62
|
+
If the previous two bytes are ASCII characters (i.e. < 128), this will be
|
|
63
|
+
equivalent to
|
|
64
|
+
|
|
65
|
+
context = 4 * context1(p1) + context2(p2),
|
|
66
|
+
|
|
67
|
+
where context1 is based on the previous byte in the following way:
|
|
68
|
+
|
|
69
|
+
0 : non-ASCII control
|
|
70
|
+
1 : \t, \n, \r
|
|
71
|
+
2 : space
|
|
72
|
+
3 : other punctuation
|
|
73
|
+
4 : " '
|
|
74
|
+
5 : %
|
|
75
|
+
6 : ( < [ {
|
|
76
|
+
7 : ) > ] }
|
|
77
|
+
8 : , ; :
|
|
78
|
+
9 : .
|
|
79
|
+
10 : =
|
|
80
|
+
11 : number
|
|
81
|
+
12 : upper-case vowel
|
|
82
|
+
13 : upper-case consonant
|
|
83
|
+
14 : lower-case vowel
|
|
84
|
+
15 : lower-case consonant
|
|
85
|
+
|
|
86
|
+
and context2 is based on the second last byte:
|
|
87
|
+
|
|
88
|
+
0 : control, space
|
|
89
|
+
1 : punctuation
|
|
90
|
+
2 : upper-case letter, number
|
|
91
|
+
3 : lower-case letter
|
|
92
|
+
|
|
93
|
+
If the last byte is ASCII, and the second last byte is not (in a valid UTF8
|
|
94
|
+
stream it will be a continuation byte, value between 128 and 191), the
|
|
95
|
+
context is the same as if the second last byte was an ASCII control or space.
|
|
96
|
+
|
|
97
|
+
If the last byte is a UTF8 lead byte (value >= 192), then the next byte will
|
|
98
|
+
be a continuation byte and the context id is 2 or 3 depending on the LSB of
|
|
99
|
+
the last byte and to a lesser extent on the second last byte if it is ASCII.
|
|
100
|
+
|
|
101
|
+
If the last byte is a UTF8 continuation byte, the second last byte can be:
|
|
102
|
+
- continuation byte: the next byte is probably ASCII or lead byte (assuming
|
|
103
|
+
4-byte UTF8 characters are rare) and the context id is 0 or 1.
|
|
104
|
+
- lead byte (192 - 207): next byte is ASCII or lead byte, context is 0 or 1
|
|
105
|
+
- lead byte (208 - 255): next byte is continuation byte, context is 2 or 3
|
|
106
|
+
|
|
107
|
+
The possible value combinations of the previous two bytes, the range of
|
|
108
|
+
context ids and the type of the next byte is summarized in the table below:
|
|
109
|
+
|
|
110
|
+
|--------\-----------------------------------------------------------------|
|
|
111
|
+
| \ Last byte |
|
|
112
|
+
| Second \---------------------------------------------------------------|
|
|
113
|
+
| last byte \ ASCII | cont. byte | lead byte |
|
|
114
|
+
| \ (0-127) | (128-191) | (192-) |
|
|
115
|
+
|=============|===================|=====================|==================|
|
|
116
|
+
| ASCII | next: ASCII/lead | not valid | next: cont. |
|
|
117
|
+
| (0-127) | context: 4 - 63 | | context: 2 - 3 |
|
|
118
|
+
|-------------|-------------------|---------------------|------------------|
|
|
119
|
+
| cont. byte | next: ASCII/lead | next: ASCII/lead | next: cont. |
|
|
120
|
+
| (128-191) | context: 4 - 63 | context: 0 - 1 | context: 2 - 3 |
|
|
121
|
+
|-------------|-------------------|---------------------|------------------|
|
|
122
|
+
| lead byte | not valid | next: ASCII/lead | not valid |
|
|
123
|
+
| (192-207) | | context: 0 - 1 | |
|
|
124
|
+
|-------------|-------------------|---------------------|------------------|
|
|
125
|
+
| lead byte | not valid | next: cont. | not valid |
|
|
126
|
+
| (208-) | | context: 2 - 3 | |
|
|
127
|
+
|-------------|-------------------|---------------------|------------------|
|
|
128
|
+
|
|
129
|
+
The context id for the signed context mode is calculated as:
|
|
130
|
+
|
|
131
|
+
context = (kContextLookup[512 + p1] << 3) | kContextLookup[512 + p2].
|
|
132
|
+
|
|
133
|
+
For any context modeling modes, the context ids can be calculated by |-ing
|
|
134
|
+
together two lookups from one table using context model dependent offsets:
|
|
135
|
+
|
|
136
|
+
context = kContextLookup[offset1 + p1] | kContextLookup[offset2 + p2].
|
|
137
|
+
|
|
138
|
+
where offset1 and offset2 are dependent on the context mode.
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
142
|
+
|
|
143
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
144
|
+
you may not use this file except in compliance with the License.
|
|
145
|
+
You may obtain a copy of the License at
|
|
146
|
+
|
|
147
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
148
|
+
|
|
149
|
+
Unless required by applicable law or agreed to in writing, software
|
|
150
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
152
|
+
See the License for the specific language governing permissions and
|
|
153
|
+
limitations under the License.
|
|
154
|
+
|
|
155
|
+
Lookup tables to map prefix codes to value ranges. This is used during
|
|
156
|
+
decoding of the block lengths, literal insertion lengths and copy lengths.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
160
|
+
|
|
161
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
162
|
+
you may not use this file except in compliance with the License.
|
|
163
|
+
You may obtain a copy of the License at
|
|
164
|
+
|
|
165
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
166
|
+
|
|
167
|
+
Unless required by applicable law or agreed to in writing, software
|
|
168
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
169
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
170
|
+
See the License for the specific language governing permissions and
|
|
171
|
+
limitations under the License.
|
|
172
|
+
|
|
173
|
+
Transformations on dictionary words.
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
/* Copyright 2013 Google Inc. All Rights Reserved.
|
|
177
|
+
|
|
178
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
179
|
+
you may not use this file except in compliance with the License.
|
|
180
|
+
You may obtain a copy of the License at
|
|
181
|
+
|
|
182
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
183
|
+
|
|
184
|
+
Unless required by applicable law or agreed to in writing, software
|
|
185
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
187
|
+
See the License for the specific language governing permissions and
|
|
188
|
+
limitations under the License.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The font's copyright information
|
|
193
|
+
* @type {string}
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/******************************************************************************
|
|
197
|
+
Copyright (c) Microsoft Corporation.
|
|
198
|
+
|
|
199
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
200
|
+
purpose with or without fee is hereby granted.
|
|
201
|
+
|
|
202
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
203
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
204
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
205
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
206
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
207
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
208
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
209
|
+
***************************************************************************** */
|