prettier-plugin-intlayer 9.7.1 → 9.7.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"collapseTranslations.d.ts","names":[],"sources":["../../src/collapseTranslations.ts"],"mappings":";;;;;;qBAoGa,qCAAsC"}
1
+ {"version":3,"file":"collapseTranslations.d.ts","names":[],"sources":["../../src/collapseTranslations.ts"],"mappings":";;;;;;qBAoGa,qCAAkC"}
@@ -4,7 +4,7 @@ import { isContentFile, sortContentKeysInAst } from "./sortContentKeys.js";
4
4
  import { sortContentNodesInAst } from "./sortContentNodes.js";
5
5
  import { Plugin, SupportOptions } from "prettier";
6
6
  /** Locales kept at the top of every translation when none are configured. */
7
- export declare const DEFAULT_PINNED_LOCALES: readonly ["en"];
7
+ export declare const DEFAULT_PINNED_LOCALES: readonly ['en'];
8
8
  export declare const parsers: Plugin['parsers'];
9
9
  export declare const options: SupportOptions;
10
10
  declare const plugin: Plugin;
@@ -13,7 +13,7 @@ export declare const createLocaleComparator: (pinnedLocales: readonly string[])
13
13
  /** Locale order for `t()`: pinned locales, then alphabetical. */
14
14
  export declare const createLocaleOrdering: (pinnedLocales: readonly string[]) => KeyOrdering;
15
15
  /** CLDR plural categories, from the smallest quantity to the fallback. */
16
- export declare const PLURAL_CATEGORY_ORDER: readonly ["zero", "one", "two", "few", "many", "other"];
16
+ export declare const PLURAL_CATEGORY_ORDER: readonly ['zero', 'one', 'two', 'few', 'many', 'other'];
17
17
  /**
18
18
  * CLDR order for `plural()`. Unknown keys leave the object untouched.
19
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"keyOrderings.d.ts","names":[],"sources":["../../src/keyOrderings.ts"],"mappings":";;;;YAOY,eAAe;;qBASd,qBAAqB;;;;;qBAOrB,yBAA0B,sCAK7B,iBAAiB;;qBAWd,uBACX,qCACC;;qBAOU;;;;qBAYA,uBAAuB;;;;;;;;qBA0GvB,4BAA4B;;;;;;;qBAyC5B,kBAAkB"}
1
+ {"version":3,"file":"keyOrderings.d.ts","names":[],"sources":["../../src/keyOrderings.ts"],"mappings":";;;;YAOY,eAAe;;qBASd,qBAAqB;;;;;qBAOrB,yBAAsB,sCAAoC,iBAK9C;;qBAWZ,uBAAoB,qCAE9B;;qBAOU;;;;qBAYA,uBAAuB;;;;;;;;qBA0GvB,4BAA4B;;;;;;;qBAyC5B,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"sortContentKeys.d.ts","names":[],"sources":["../../src/sortContentKeys.ts"],"mappings":";qBA0Ba,gBAAiB;;;;;qBA2FjB,uBAAwB"}
1
+ {"version":3,"file":"sortContentKeys.d.ts","names":[],"sources":["../../src/sortContentKeys.ts"],"mappings":";qBA0Ba,gBAAa;;;;;qBA2Fb,uBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"sortContentNodes.d.ts","names":[],"sources":["../../src/sortContentNodes.ts"],"mappings":";;;;;YAYY;EACV;GACC;;;KAIE;qBA6BQ,YAAa,mBAAiB,SAAS;qBAKvC,qBAAsB,kBAAgB,QAAQ;;;;;qBAoB9C,mBAAoB,UAAU;qBAW9B,kBAAmB,sBAAoB,YAAY;;;;;;qBAYnD,uBACX,YAAY,SACZ,WAAW;;qBA2BA,uBACX,MAAM;EACH,UAAU;EAAgB,SAAS;;;;;;qBA8B3B,2BACX,MAAM;EACH,UAAU;EAAgB,SAAS;;;;;;;qBAsB3B,wBACX,mBACA"}
1
+ {"version":3,"file":"sortContentNodes.d.ts","names":[],"sources":["../../src/sortContentNodes.ts"],"mappings":";;;;;YAYY;EACV;GACC;;;KAIE;qBA6BQ,YAAS,mBAAqB,SAAS;qBAKvC,qBAAkB,kBAAoB,QAAQ;;;;;qBAoB9C,mBAAgB,UAAc;qBAW9B,kBAAe,sBAAwB,YAAY;;;;;;qBAYnD,uBAAoB,YACnB,SAAO,WACR;;qBA2BA,uBAAoB,MACzB;EACH,UAAU;EAAgB,SAAS;;;;;;qBA8B3B,2BAAwB,MAC7B;EACH,UAAU;EAAgB,SAAS;;;;;;;qBAsB3B,wBAAqB,mBACf"}
package/package.json CHANGED
@@ -1,25 +1,21 @@
1
1
  {
2
2
  "name": "prettier-plugin-intlayer",
3
- "version": "9.7.1",
3
+ "version": "9.7.2",
4
4
  "private": false,
5
5
  "description": "Prettier plugin for Intlayer. Sorts t() locales alphabetically (pinned locales first), plural() categories in CLDR order and enu() conditions by threshold.",
6
6
  "keywords": [
7
+ "format",
8
+ "i18n",
9
+ "internationalization",
7
10
  "intlayer",
8
11
  "prettier",
9
12
  "prettier-plugin",
10
- "i18n",
11
- "internationalization",
12
- "format",
13
13
  "sort"
14
14
  ],
15
15
  "homepage": "https://intlayer.org",
16
16
  "bugs": {
17
17
  "url": "https://github.com/aymericzip/intlayer/issues"
18
18
  },
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/aymericzip/intlayer.git"
22
- },
23
19
  "license": "Apache-2.0",
24
20
  "author": {
25
21
  "name": "Aymeric PINEAU",
@@ -32,15 +28,15 @@
32
28
  "url": "https://github.com/aymericzip"
33
29
  }
34
30
  ],
35
- "sideEffects": false,
36
- "exports": {
37
- ".": {
38
- "types": "./dist/types/index.d.ts",
39
- "require": "./dist/cjs/index.cjs",
40
- "import": "./dist/esm/index.mjs"
41
- },
42
- "./package.json": "./package.json"
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/aymericzip/intlayer.git"
43
34
  },
35
+ "files": [
36
+ "./dist",
37
+ "./package.json"
38
+ ],
39
+ "sideEffects": false,
44
40
  "main": "dist/cjs/index.cjs",
45
41
  "module": "dist/esm/index.mjs",
46
42
  "types": "dist/types/index.d.ts",
@@ -54,19 +50,23 @@
54
50
  ]
55
51
  }
56
52
  },
57
- "files": [
58
- "./dist",
59
- "./package.json"
60
- ],
53
+ "exports": {
54
+ ".": {
55
+ "types": "./dist/types/index.d.ts",
56
+ "require": "./dist/cjs/index.cjs",
57
+ "import": "./dist/esm/index.mjs"
58
+ },
59
+ "./package.json": "./package.json"
60
+ },
61
61
  "scripts": {
62
62
  "build": "bun --bun tsdown --config tsdown.config.ts",
63
63
  "build:ci": "bun --bun tsdown --config tsdown.config.ts",
64
64
  "clean": "bun --bun rimraf ./dist .turbo",
65
65
  "dev": "bun --bun tsdown --config tsdown.config.ts --watch",
66
- "format": "bun --bun biome format . --check",
67
- "format:fix": "bun --bun biome format --write .",
68
- "lint": "bun --bun biome lint .",
69
- "lint:fix": "bun --bun biome lint --write .",
66
+ "format": "oxfmt --check .",
67
+ "format:fix": "oxfmt .",
68
+ "lint": "oxlint .",
69
+ "lint:fix": "oxlint --fix .",
70
70
  "publish": "bun publish || true",
71
71
  "publish:canary": "bun publish --access public --tag canary || true",
72
72
  "publish:ci": "bun ../../scripts/publish-package.mjs",
@@ -76,15 +76,15 @@
76
76
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
77
77
  },
78
78
  "devDependencies": {
79
- "@intlayer/core": "9.7.1",
79
+ "@intlayer/core": "9.7.2",
80
80
  "@types/node": "^26",
81
81
  "@utils/ts-config": "1.0.4",
82
82
  "@utils/ts-config-types": "1.0.4",
83
83
  "@utils/tsdown-config": "1.0.4",
84
84
  "prettier": "3.9.10",
85
- "rimraf": "6.1.3",
86
- "tsdown": "0.23.4",
87
- "typescript": "6.0.3",
85
+ "rimraf": "6.1.4",
86
+ "tsdown": "0.23.7",
87
+ "typescript": "7.0.2",
88
88
  "vitest": "5.1.0"
89
89
  },
90
90
  "peerDependencies": {