prettier 4.0.0-alpha.10 → 4.0.0-alpha.11

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/bin/prettier.cjs CHANGED
@@ -53,6 +53,10 @@ var require_please_upgrade_node = __commonJS({
53
53
  });
54
54
 
55
55
  // bin/prettier.cjs
56
+ var nodeModule = require("module");
57
+ if (typeof nodeModule.enableCompileCache === "function") {
58
+ nodeModule.enableCompileCache();
59
+ }
56
60
  var pleaseUpgradeNode = require_please_upgrade_node();
57
61
  var packageJson = require("../package.json");
58
62
  pleaseUpgradeNode(packageJson);
package/doc.d.ts CHANGED
@@ -192,7 +192,18 @@ export namespace printer {
192
192
  options: Options,
193
193
  ): {
194
194
  formatted: string;
195
+ /**
196
+ * This property is a misnomer, and has been since the changes in
197
+ * https://github.com/prettier/prettier/pull/15709.
198
+ * The region of the document indicated by `cursorNodeStart` and `cursorNodeText` will
199
+ * sometimes actually be what lies BETWEEN a pair of leaf nodes in the AST, rather than a node.
200
+ */
195
201
  cursorNodeStart?: number | undefined;
202
+
203
+ /**
204
+ * Note that, like cursorNodeStart, this is a misnomer and may actually be the text between two
205
+ * leaf nodes in the AST instead of the text of a node.
206
+ */
196
207
  cursorNodeText?: string | undefined;
197
208
  };
198
209
  interface Options {