@lingo.dev/_spec 0.30.3 → 0.32.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/build/index.mjs CHANGED
@@ -331,7 +331,8 @@ var bucketTypes = [
331
331
  "vtt",
332
332
  "php",
333
333
  "po",
334
- "vue-json"
334
+ "vue-json",
335
+ "typescript"
335
336
  ];
336
337
  var bucketTypeSchema = Z2.enum(bucketTypes);
337
338
 
@@ -552,7 +553,26 @@ var configV1_6Definition = extendConfigDefinition(configV1_5Definition, {
552
553
  version: 1.6
553
554
  })
554
555
  });
555
- var LATEST_CONFIG_DEFINITION = configV1_6Definition;
556
+ var bucketValueSchemaV1_7 = bucketValueSchemaV1_6.extend({
557
+ lockedPatterns: Z3.array(Z3.string()).default([]).optional()
558
+ });
559
+ var configV1_7Definition = extendConfigDefinition(configV1_6Definition, {
560
+ createSchema: (baseSchema) => baseSchema.extend({
561
+ buckets: Z3.record(
562
+ bucketTypeSchema,
563
+ bucketValueSchemaV1_7
564
+ ).default({})
565
+ }),
566
+ createDefaultValue: (baseDefaultValue) => ({
567
+ ...baseDefaultValue,
568
+ version: 1.7
569
+ }),
570
+ createUpgrader: (oldConfig) => ({
571
+ ...oldConfig,
572
+ version: 1.7
573
+ })
574
+ });
575
+ var LATEST_CONFIG_DEFINITION = configV1_7Definition;
556
576
  function parseI18nConfig(rawConfig) {
557
577
  try {
558
578
  const result = LATEST_CONFIG_DEFINITION.parse(rawConfig);
@@ -569,6 +589,7 @@ export {
569
589
  bucketTypes,
570
590
  bucketValueSchemaV1_3,
571
591
  bucketValueSchemaV1_6,
592
+ bucketValueSchemaV1_7,
572
593
  configV0Definition,
573
594
  configV1Definition,
574
595
  configV1_1Definition,
@@ -577,6 +598,7 @@ export {
577
598
  configV1_4Definition,
578
599
  configV1_5Definition,
579
600
  configV1_6Definition,
601
+ configV1_7Definition,
580
602
  defaultConfig,
581
603
  getLocaleCodeDelimiter,
582
604
  localeCodeSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingo.dev/_spec",
3
- "version": "0.30.3",
3
+ "version": "0.32.0",
4
4
  "description": "Lingo.dev open specification",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -24,7 +24,7 @@
24
24
  "devDependencies": {
25
25
  "@types/node": "^22.13.5",
26
26
  "tsup": "^8.3.5",
27
- "typescript": "^5.7.2",
27
+ "typescript": "^5.8.3",
28
28
  "vitest": "^3.1.2"
29
29
  },
30
30
  "scripts": {