@atproto/lex 0.1.6 → 0.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/CHANGELOG.md +32 -0
- package/bin/lex +7 -2
- package/package.json +13 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atproto/lex
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#5162](https://github.com/bluesky-social/atproto/pull/5162) [`d1be0ce`](https://github.com/bluesky-social/atproto/commit/d1be0cead444ef95e64cac5ea5318edbec9d8112) Thanks [@nnabeyang](https://github.com/nnabeyang)! - Language-tag string-format validation now has strict and lenient variants, matching the pattern already used for `at-uri` and `datetime`. `isLanguageString` (and the default `language` string-format verifier) is now strict and rejects BCP 47 tags that violate RFC 5646 §4.1 (e.g. duplicate variant subtags or duplicate extension singletons). Pass `{ strict: false }` to fall back to the lenient (syntax-only) verifier, `isLanguageStringLenient`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#5158](https://github.com/bluesky-social/atproto/pull/5158) [`963b944`](https://github.com/bluesky-social/atproto/commit/963b9440190c7e59abc0c05de70ecea9cab6fe37) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Type `Client` binary responses as `Uint8Array<ArrayBuffer>`
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`963b944`](https://github.com/bluesky-social/atproto/commit/963b9440190c7e59abc0c05de70ecea9cab6fe37), [`d1be0ce`](https://github.com/bluesky-social/atproto/commit/d1be0cead444ef95e64cac5ea5318edbec9d8112), [`963b944`](https://github.com/bluesky-social/atproto/commit/963b9440190c7e59abc0c05de70ecea9cab6fe37)]:
|
|
14
|
+
- @atproto/lex-client@0.2.2
|
|
15
|
+
- @atproto/lex-schema@0.2.0
|
|
16
|
+
- @atproto/lex-installer@0.1.5
|
|
17
|
+
- @atproto/lex-builder@0.1.6
|
|
18
|
+
|
|
19
|
+
## 0.1.7
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update TypeScript build to rely on references to composite internal projects
|
|
24
|
+
|
|
25
|
+
- [#5099](https://github.com/bluesky-social/atproto/pull/5099) [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Bundle only necessary files in the NPM tarball, including the `CHANGELOG.md` and `README.md` files (if present).
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07), [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07), [`b43ec31`](https://github.com/bluesky-social/atproto/commit/b43ec31f247f4461725b01226885f88bd430ca07)]:
|
|
28
|
+
- @atproto/lex-installer@0.1.4
|
|
29
|
+
- @atproto/lex-builder@0.1.5
|
|
30
|
+
- @atproto/lex-client@0.2.1
|
|
31
|
+
- @atproto/lex-schema@0.1.6
|
|
32
|
+
- @atproto/lex-data@0.1.4
|
|
33
|
+
- @atproto/lex-json@0.1.3
|
|
34
|
+
|
|
3
35
|
## 0.1.6
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/bin/lex
CHANGED
|
@@ -9,8 +9,11 @@
|
|
|
9
9
|
|
|
10
10
|
import yargs from 'yargs'
|
|
11
11
|
import { hideBin } from 'yargs/helpers'
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
// @TODO lex-builder and lex-installer should both
|
|
14
|
+
// - Define their own CLI commands and options
|
|
15
|
+
// - Expose a "bin" entrypoint so they can be called independently
|
|
16
|
+
// This package should only be a thin wrapper that delegates to those packages.
|
|
14
17
|
|
|
15
18
|
yargs(hideBin(process.argv))
|
|
16
19
|
.strict()
|
|
@@ -108,6 +111,7 @@ yargs(hideBin(process.argv))
|
|
|
108
111
|
})
|
|
109
112
|
},
|
|
110
113
|
async (argv) => {
|
|
114
|
+
const { build } = await import('@atproto/lex-builder')
|
|
111
115
|
await build(argv)
|
|
112
116
|
},
|
|
113
117
|
)
|
|
@@ -149,6 +153,7 @@ yargs(hideBin(process.argv))
|
|
|
149
153
|
})
|
|
150
154
|
},
|
|
151
155
|
async (argv) => {
|
|
156
|
+
const { install } = await import('@atproto/lex-installer')
|
|
152
157
|
await install({
|
|
153
158
|
add: argv.nsid,
|
|
154
159
|
save: argv.save,
|
package/package.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/lex",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"engines": {
|
|
5
|
-
"node": ">=22"
|
|
6
|
-
},
|
|
3
|
+
"version": "0.2.0",
|
|
7
4
|
"license": "MIT",
|
|
8
5
|
"description": "Lexicon tooling for AT",
|
|
9
6
|
"keywords": [
|
|
@@ -20,6 +17,7 @@
|
|
|
20
17
|
"files": [
|
|
21
18
|
"./dist",
|
|
22
19
|
"./bin",
|
|
20
|
+
"./README.md",
|
|
23
21
|
"./CHANGELOG.md"
|
|
24
22
|
],
|
|
25
23
|
"bin": {
|
|
@@ -34,23 +32,26 @@
|
|
|
34
32
|
"default": "./dist/index.js"
|
|
35
33
|
}
|
|
36
34
|
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=22"
|
|
37
|
+
},
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"tslib": "^2.8.1",
|
|
39
40
|
"yargs": "^18.0.0",
|
|
40
|
-
"@atproto/lex-builder": "^0.1.
|
|
41
|
-
"@atproto/lex-
|
|
42
|
-
"@atproto/lex-
|
|
43
|
-
"@atproto/lex-
|
|
44
|
-
"@atproto/lex-
|
|
45
|
-
"@atproto/lex-
|
|
41
|
+
"@atproto/lex-builder": "^0.1.6",
|
|
42
|
+
"@atproto/lex-schema": "^0.2.0",
|
|
43
|
+
"@atproto/lex-installer": "^0.1.5",
|
|
44
|
+
"@atproto/lex-client": "^0.2.2",
|
|
45
|
+
"@atproto/lex-data": "^0.1.4",
|
|
46
|
+
"@atproto/lex-json": "^0.1.3"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/yargs": "^17.0.33",
|
|
49
50
|
"vitest": "^4.0.16"
|
|
50
51
|
},
|
|
51
52
|
"scripts": {
|
|
52
|
-
"codegen": "./bin/lex build --override --indexFile --lexicons ./lexicons --out ./tests/lexicons --lib @atproto/lex-schema",
|
|
53
|
-
"prebuild": "pnpm run codegen",
|
|
53
|
+
"codegen:lex": "./bin/lex build --override --indexFile --lexicons ./lexicons --out ./tests/lexicons --lib @atproto/lex-schema",
|
|
54
|
+
"prebuild": "pnpm run '/^(codegen:.+)$/'",
|
|
54
55
|
"build": "tsgo --build tsconfig.build.json",
|
|
55
56
|
"test": "vitest run"
|
|
56
57
|
}
|