@typespec/compiler 1.7.0-dev.3 → 1.7.0-dev.5

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/dist/manifest.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export default {
2
- "version": "1.7.0-dev.3",
3
- "commit": "b5719ee0e8954584125a631e1cf4010e1299aa26"
2
+ "version": "1.7.0-dev.5",
3
+ "commit": "5c6d6b3a7c747af9c791f3d40af22fd63bceea24"
4
4
  };
@@ -1,5 +1,3 @@
1
1
  import { checkbox as inquirerCheckbox } from "@inquirer/prompts";
2
- export declare function checkbox<Value>(config: Parameters<typeof inquirerCheckbox<Value>>[0]): Promise<Value[]> & {
3
- cancel: () => void;
4
- };
2
+ export declare function checkbox<Value>(config: Parameters<typeof inquirerCheckbox<Value>>[0]): Promise<Value[]>;
5
3
  //# sourceMappingURL=prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/init/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGjE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;;EAcpF"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/init/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGjE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,oBAgBpF"}
@@ -3,9 +3,11 @@ import pc from "picocolors";
3
3
  export function checkbox(config) {
4
4
  return inquirerCheckbox({
5
5
  ...config,
6
- instructions: pc.gray(` (Press ${pc.cyan("space")} to select, ${pc.cyan("a")} to toggle all, ${pc.cyan("i")} to invert selection and ${pc.cyan("enter")} to proceed.)`),
7
6
  theme: {
8
7
  ...config.theme,
8
+ style: {
9
+ keysHelpTip: pc.gray(` (Press ${pc.cyan("space")} to select, ${pc.cyan("a")} to toggle all, ${pc.cyan("i")} to invert selection and ${pc.cyan("enter")} to proceed.)`),
10
+ },
9
11
  icon: {
10
12
  unchecked: pc.cyan(" ◯"),
11
13
  checked: pc.green(" ◉"),
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/init/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,MAAM,UAAU,QAAQ,CAAQ,MAAqD;IACnF,OAAO,gBAAgB,CAAC;QACtB,GAAG,MAAM;QACT,YAAY,EAAE,EAAE,CAAC,IAAI,CACnB,WAAW,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,4BAA4B,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CACjJ;QACD,KAAK,EAAE;YACL,GAAG,MAAM,CAAC,KAAK;YACf,IAAI,EAAE;gBACJ,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;gBACxB,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;aACxB;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/init/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,MAAM,UAAU,QAAQ,CAAQ,MAAqD;IACnF,OAAO,gBAAgB,CAAC;QACtB,GAAG,MAAM;QACT,KAAK,EAAE;YACL,GAAG,MAAM,CAAC,KAAK;YACf,KAAK,EAAE;gBACL,WAAW,EAAE,EAAE,CAAC,IAAI,CAClB,WAAW,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,4BAA4B,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CACjJ;aACF;YACD,IAAI,EAAE;gBACJ,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;gBACxB,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;aACxB;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -531,11 +531,37 @@ enum BytesKnownEncoding {
531
531
  * Encoding for serializing arrays
532
532
  */
533
533
  enum ArrayEncoding {
534
- /** Each values of the array is separated by a | */
534
+ /**
535
+ * Each value of the array is separated by a pipe character (|).
536
+ * Values can only contain | if the underlying protocol supports encoding them.
537
+ * - json -> error
538
+ * - http -> %7C
539
+ */
535
540
  pipeDelimited,
536
541
 
537
- /** Each values of the array is separated by a <space> */
542
+ /**
543
+ * Each value of the array is separated by a space character.
544
+ * Values can only contain spaces if the underlying protocol supports encoding them.
545
+ * - json -> error
546
+ * - http -> %20
547
+ */
538
548
  spaceDelimited,
549
+
550
+ /**
551
+ * Each value of the array is separated by a comma (,).
552
+ * Values can only contain commas if the underlying protocol supports encoding them.
553
+ * - json -> error
554
+ * - http -> %2C
555
+ */
556
+ commaDelimited,
557
+
558
+ /**
559
+ * Each value of the array is separated by a newline character (\n).
560
+ * Values can only contain newlines if the underlying protocol supports encoding them.
561
+ * - json -> error
562
+ * - http -> %0A
563
+ */
564
+ newlineDelimited,
539
565
  }
540
566
 
541
567
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typespec/compiler",
3
- "version": "1.7.0-dev.3",
3
+ "version": "1.7.0-dev.5",
4
4
  "description": "TypeSpec Compiler Preview",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",
@@ -84,11 +84,11 @@
84
84
  ],
85
85
  "dependencies": {
86
86
  "@babel/code-frame": "~7.27.1",
87
- "@inquirer/prompts": "^7.4.0",
87
+ "@inquirer/prompts": "^8.0.1",
88
88
  "ajv": "~8.17.1",
89
89
  "change-case": "~5.4.4",
90
90
  "env-paths": "^3.0.0",
91
- "globby": "~15.0.0",
91
+ "globby": "~16.0.0",
92
92
  "is-unicode-supported": "^2.1.0",
93
93
  "mustache": "~4.2.0",
94
94
  "picocolors": "~1.1.1",
@@ -104,7 +104,7 @@
104
104
  "devDependencies": {
105
105
  "@types/babel__code-frame": "~7.0.6",
106
106
  "@types/mustache": "~4.2.5",
107
- "@types/node": "~24.9.1",
107
+ "@types/node": "~24.10.1",
108
108
  "@types/semver": "^7.5.8",
109
109
  "@types/yargs": "~17.0.33",
110
110
  "@typespec/internal-build-utils": "^0.76.0 || >=0.77.0-dev <0.77.0",
@@ -113,7 +113,7 @@
113
113
  "c8": "^10.1.3",
114
114
  "grammarkdown": "~3.3.2",
115
115
  "pathe": "^2.0.3",
116
- "rimraf": "~6.0.1",
116
+ "rimraf": "~6.1.2",
117
117
  "source-map-support": "~0.5.21",
118
118
  "tmlanguage-generator": "^0.6.5 || >=0.7.0-dev <0.7.0",
119
119
  "typescript": "~5.9.2",