@atproto/common-web 0.4.7 → 0.4.8

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atproto/common-web
2
2
 
3
+ ## 0.4.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece), [`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece), [`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece), [`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece), [`e6b6107`](https://github.com/bluesky-social/atproto/commit/e6b6107e028fee964972274b71f5da1329a7bece)]:
8
+ - @atproto/lex-data@0.0.4
9
+ - @atproto/lex-json@0.0.4
10
+
3
11
  ## 0.4.7
4
12
 
5
13
  ### Patch Changes
package/dist/strings.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LanguageTag, isLanguage, parseLanguage } from '@atproto/lex-data';
1
+ import { LanguageTag, isLanguageString, parseLanguageString } from '@atproto/lex-data';
2
2
  /**
3
3
  * @deprecated Use {@link graphemeLen} from `@atproto/lex-data` instead.
4
4
  */
@@ -15,14 +15,14 @@ export { utf8LenLegacy as utf8Len };
15
15
  type LanguageTagLegacy = LanguageTag;
16
16
  export type { LanguageTagLegacy as LanguageTag };
17
17
  /**
18
- * @deprecated Use {@link parseLanguage} from `@atproto/lex-data` instead.
18
+ * @deprecated Use {@link parseLanguageString} from `@atproto/lex-data` instead.
19
19
  */
20
- export declare const parseLanguageLegacy: typeof parseLanguage;
20
+ export declare const parseLanguageLegacy: typeof parseLanguageString;
21
21
  export { parseLanguageLegacy as parseLanguage };
22
22
  /**
23
- * @deprecated Use {@link isLanguage} from `@atproto/lex-data` instead.
23
+ * @deprecated Use {@link isLanguageString} from `@atproto/lex-data` instead.
24
24
  */
25
- export declare const validateLanguage: typeof isLanguage;
25
+ export declare const validateLanguage: typeof isLanguageString;
26
26
  /**
27
27
  * @deprecated Use {@link toBase64} from `@atproto/lex-data` instead.
28
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGX,UAAU,EACV,aAAa,EAGd,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,QAAA,MAAM,iBAAiB,yBAAc,CAAA;AACrC,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,CAAA;AAE3C;;GAEG;AACH,QAAA,MAAM,aAAa,4BAAU,CAAA;AAC7B,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,CAAA;AAEnC;;GAEG;AACH,KAAK,iBAAiB,GAAG,WAAW,CAAA;AACpC,YAAY,EAAE,iBAAiB,IAAI,WAAW,EAAE,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,mBAAmB,sBAAgB,CAAA;AAChD,OAAO,EAAE,mBAAmB,IAAI,aAAa,EAAE,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,gBAAgB,mBAAa,CAAA;AAE1C;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,MAE3C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAE1C,CAAA"}
1
+ {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGX,gBAAgB,EAChB,mBAAmB,EAGpB,MAAM,mBAAmB,CAAA;AAE1B;;GAEG;AACH,QAAA,MAAM,iBAAiB,yBAAc,CAAA;AACrC,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,CAAA;AAE3C;;GAEG;AACH,QAAA,MAAM,aAAa,4BAAU,CAAA;AAC7B,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,CAAA;AAEnC;;GAEG;AACH,KAAK,iBAAiB,GAAG,WAAW,CAAA;AACpC,YAAY,EAAE,iBAAiB,IAAI,WAAW,EAAE,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,mBAAmB,4BAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,IAAI,aAAa,EAAE,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,gBAAgB,yBAAmB,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,MAE3C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAE1C,CAAA"}
package/dist/strings.js CHANGED
@@ -13,14 +13,14 @@ exports.graphemeLen = graphemeLenLegacy;
13
13
  const utf8LenLegacy = lex_data_1.utf8Len;
14
14
  exports.utf8Len = utf8LenLegacy;
15
15
  /**
16
- * @deprecated Use {@link parseLanguage} from `@atproto/lex-data` instead.
16
+ * @deprecated Use {@link parseLanguageString} from `@atproto/lex-data` instead.
17
17
  */
18
- exports.parseLanguageLegacy = lex_data_1.parseLanguage;
18
+ exports.parseLanguageLegacy = lex_data_1.parseLanguageString;
19
19
  exports.parseLanguage = exports.parseLanguageLegacy;
20
20
  /**
21
- * @deprecated Use {@link isLanguage} from `@atproto/lex-data` instead.
21
+ * @deprecated Use {@link isLanguageString} from `@atproto/lex-data` instead.
22
22
  */
23
- exports.validateLanguage = lex_data_1.isLanguage;
23
+ exports.validateLanguage = lex_data_1.isLanguageString;
24
24
  /**
25
25
  * @deprecated Use {@link toBase64} from `@atproto/lex-data` instead.
26
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"strings.js","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":";;;AAAA,gDAQ0B;AAE1B;;GAEG;AACH,MAAM,iBAAiB,GAAG,sBAAW,CAAA;AACP,wCAAW;AAEzC;;GAEG;AACH,MAAM,aAAa,GAAG,kBAAO,CAAA;AACH,gCAAO;AAQjC;;GAEG;AACU,QAAA,mBAAmB,GAAG,wBAAa,CAAA;AAChB,wBADnB,2BAAmB,CACa;AAE7C;;GAEG;AACU,QAAA,gBAAgB,GAAG,qBAAU,CAAA;AAE1C;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,IAAY,EAAU,EAAE;IACnD,OAAO,IAAA,mBAAQ,EAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAA;AAC9D,CAAC,CAAA;AAFY,QAAA,YAAY,gBAExB;AAED;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAClD,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAA,qBAAU,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAA;AAFY,QAAA,YAAY,gBAExB","sourcesContent":["import {\n LanguageTag,\n fromBase64,\n graphemeLen,\n isLanguage,\n parseLanguage,\n toBase64,\n utf8Len,\n} from '@atproto/lex-data'\n\n/**\n * @deprecated Use {@link graphemeLen} from `@atproto/lex-data` instead.\n */\nconst graphemeLenLegacy = graphemeLen\nexport { graphemeLenLegacy as graphemeLen }\n\n/**\n * @deprecated Use {@link utf8Len} from `@atproto/lex-data` instead.\n */\nconst utf8LenLegacy = utf8Len\nexport { utf8LenLegacy as utf8Len }\n\n/**\n * @deprecated Use {@link LanguageTag} from `@atproto/lex-data` instead.\n */\ntype LanguageTagLegacy = LanguageTag\nexport type { LanguageTagLegacy as LanguageTag }\n\n/**\n * @deprecated Use {@link parseLanguage} from `@atproto/lex-data` instead.\n */\nexport const parseLanguageLegacy = parseLanguage\nexport { parseLanguageLegacy as parseLanguage }\n\n/**\n * @deprecated Use {@link isLanguage} from `@atproto/lex-data` instead.\n */\nexport const validateLanguage = isLanguage\n\n/**\n * @deprecated Use {@link toBase64} from `@atproto/lex-data` instead.\n */\nexport const utf8ToB64Url = (utf8: string): string => {\n return toBase64(new TextEncoder().encode(utf8), 'base64url')\n}\n\n/**\n * @deprecated Use {@link fromBase64} from `@atproto/lex-data` instead.\n */\nexport const b64UrlToUtf8 = (b64: string): string => {\n return new TextDecoder().decode(fromBase64(b64, 'base64url'))\n}\n"]}
1
+ {"version":3,"file":"strings.js","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":";;;AAAA,gDAQ0B;AAE1B;;GAEG;AACH,MAAM,iBAAiB,GAAG,sBAAW,CAAA;AACP,wCAAW;AAEzC;;GAEG;AACH,MAAM,aAAa,GAAG,kBAAO,CAAA;AACH,gCAAO;AAQjC;;GAEG;AACU,QAAA,mBAAmB,GAAG,8BAAmB,CAAA;AACtB,wBADnB,2BAAmB,CACa;AAE7C;;GAEG;AACU,QAAA,gBAAgB,GAAG,2BAAgB,CAAA;AAEhD;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,IAAY,EAAU,EAAE;IACnD,OAAO,IAAA,mBAAQ,EAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAA;AAC9D,CAAC,CAAA;AAFY,QAAA,YAAY,gBAExB;AAED;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAClD,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAA,qBAAU,EAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAA;AAFY,QAAA,YAAY,gBAExB","sourcesContent":["import {\n LanguageTag,\n fromBase64,\n graphemeLen,\n isLanguageString,\n parseLanguageString,\n toBase64,\n utf8Len,\n} from '@atproto/lex-data'\n\n/**\n * @deprecated Use {@link graphemeLen} from `@atproto/lex-data` instead.\n */\nconst graphemeLenLegacy = graphemeLen\nexport { graphemeLenLegacy as graphemeLen }\n\n/**\n * @deprecated Use {@link utf8Len} from `@atproto/lex-data` instead.\n */\nconst utf8LenLegacy = utf8Len\nexport { utf8LenLegacy as utf8Len }\n\n/**\n * @deprecated Use {@link LanguageTag} from `@atproto/lex-data` instead.\n */\ntype LanguageTagLegacy = LanguageTag\nexport type { LanguageTagLegacy as LanguageTag }\n\n/**\n * @deprecated Use {@link parseLanguageString} from `@atproto/lex-data` instead.\n */\nexport const parseLanguageLegacy = parseLanguageString\nexport { parseLanguageLegacy as parseLanguage }\n\n/**\n * @deprecated Use {@link isLanguageString} from `@atproto/lex-data` instead.\n */\nexport const validateLanguage = isLanguageString\n\n/**\n * @deprecated Use {@link toBase64} from `@atproto/lex-data` instead.\n */\nexport const utf8ToB64Url = (utf8: string): string => {\n return toBase64(new TextEncoder().encode(utf8), 'base64url')\n}\n\n/**\n * @deprecated Use {@link fromBase64} from `@atproto/lex-data` instead.\n */\nexport const b64UrlToUtf8 = (b64: string): string => {\n return new TextDecoder().decode(fromBase64(b64, 'base64url'))\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/common-web",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "license": "MIT",
5
5
  "description": "Shared web-platform-friendly code for atproto libraries",
6
6
  "keywords": [
@@ -16,8 +16,8 @@
16
16
  "types": "dist/index.d.ts",
17
17
  "dependencies": {
18
18
  "zod": "^3.23.8",
19
- "@atproto/lex-data": "0.0.3",
20
- "@atproto/lex-json": "0.0.3"
19
+ "@atproto/lex-data": "0.0.4",
20
+ "@atproto/lex-json": "0.0.4"
21
21
  },
22
22
  "devDependencies": {
23
23
  "jest": "^28.1.2",
package/src/strings.ts CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  LanguageTag,
3
3
  fromBase64,
4
4
  graphemeLen,
5
- isLanguage,
6
- parseLanguage,
5
+ isLanguageString,
6
+ parseLanguageString,
7
7
  toBase64,
8
8
  utf8Len,
9
9
  } from '@atproto/lex-data'
@@ -27,15 +27,15 @@ type LanguageTagLegacy = LanguageTag
27
27
  export type { LanguageTagLegacy as LanguageTag }
28
28
 
29
29
  /**
30
- * @deprecated Use {@link parseLanguage} from `@atproto/lex-data` instead.
30
+ * @deprecated Use {@link parseLanguageString} from `@atproto/lex-data` instead.
31
31
  */
32
- export const parseLanguageLegacy = parseLanguage
32
+ export const parseLanguageLegacy = parseLanguageString
33
33
  export { parseLanguageLegacy as parseLanguage }
34
34
 
35
35
  /**
36
- * @deprecated Use {@link isLanguage} from `@atproto/lex-data` instead.
36
+ * @deprecated Use {@link isLanguageString} from `@atproto/lex-data` instead.
37
37
  */
38
- export const validateLanguage = isLanguage
38
+ export const validateLanguage = isLanguageString
39
39
 
40
40
  /**
41
41
  * @deprecated Use {@link toBase64} from `@atproto/lex-data` instead.