@vokril/ui-solid 0.23.0 → 0.24.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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to `@vokril/ui-solid` are listed here. Versions follow
5
5
  contain breaking changes. From 0.1.1 on, entries are written by Changesets
6
6
  (`npm run release:version`) above the previous release.
7
7
 
8
+ ## 0.24.0
9
+
10
+ ### Minor Changes
11
+
12
+ - 3e55221: **Breaking:** `ParameterPattern` is declared instead of written as a regular expression: `{ kind: 'enclosed', open, close, enabled }` — an opening and a closing delimiter with the parameter's name between them (`${name}`, `$(name)`, `#{name}`, `{{name}}`, `%(name)s`). The name is the text up to the first `close` (at least one character, no line break, no `open`). The `{ pattern, enabled }` regular-expression shape of 0.23.0 is removed; consumers declare their default patterns in the new shape.
13
+
8
14
  ## 0.23.0
9
15
 
10
16
  ### Minor Changes
@@ -448,15 +448,21 @@ export type MainMenuDisplayMode = 'traditional' | 'modern' | 'system';
448
448
  */
449
449
  export type ScriptErrorAction = 'ask' | 'stop' | 'continue';
450
450
  /**
451
- * A user parameter pattern: a placeholder syntax that SQL pasted from application code carries,
452
- * such as `${name}` or `#{name}`. `pattern` is a regular expression in the language server's own
453
- * flavour; the name is its `name` group, else its first group, else the whole match. A disabled
454
- * pattern is kept in the list but not matched.
451
+ * A user parameter pattern: a placeholder syntax that SQL pasted from application code carries.
452
+ * It is declared, not written as a regular expression: an `enclosed` pattern is an opening and a
453
+ * closing delimiter with the parameter's name between them — `${name}`, `$(name)`, `#{name}`,
454
+ * `{{name}}`, `%(name)s`. The name is the text up to the first `close`: at least one character, no
455
+ * line break, no `open`. A disabled pattern is kept in the list but not matched.
456
+ *
457
+ * A union with one kind for now: a prefix form (`:name`, `@name`, `&name`) is left out on purpose —
458
+ * those spellings already mean a bind variable, a SQL*Plus substitution or a server variable.
455
459
  */
456
- export interface ParameterPattern {
457
- readonly pattern: string;
460
+ export type ParameterPattern = {
461
+ readonly kind: 'enclosed';
462
+ readonly open: string;
463
+ readonly close: string;
458
464
  readonly enabled: boolean;
459
- }
465
+ };
460
466
  export interface QueryExecutionSettings {
461
467
  useBlankLineDelimiter: boolean;
462
468
  queryTimeoutMs: number;
@@ -448,15 +448,21 @@ export type MainMenuDisplayMode = 'traditional' | 'modern' | 'system';
448
448
  */
449
449
  export type ScriptErrorAction = 'ask' | 'stop' | 'continue';
450
450
  /**
451
- * A user parameter pattern: a placeholder syntax that SQL pasted from application code carries,
452
- * such as `${name}` or `#{name}`. `pattern` is a regular expression in the language server's own
453
- * flavour; the name is its `name` group, else its first group, else the whole match. A disabled
454
- * pattern is kept in the list but not matched.
451
+ * A user parameter pattern: a placeholder syntax that SQL pasted from application code carries.
452
+ * It is declared, not written as a regular expression: an `enclosed` pattern is an opening and a
453
+ * closing delimiter with the parameter's name between them — `${name}`, `$(name)`, `#{name}`,
454
+ * `{{name}}`, `%(name)s`. The name is the text up to the first `close`: at least one character, no
455
+ * line break, no `open`. A disabled pattern is kept in the list but not matched.
456
+ *
457
+ * A union with one kind for now: a prefix form (`:name`, `@name`, `&name`) is left out on purpose —
458
+ * those spellings already mean a bind variable, a SQL*Plus substitution or a server variable.
455
459
  */
456
- export interface ParameterPattern {
457
- readonly pattern: string;
460
+ export type ParameterPattern = {
461
+ readonly kind: 'enclosed';
462
+ readonly open: string;
463
+ readonly close: string;
458
464
  readonly enabled: boolean;
459
- }
465
+ };
460
466
  export interface QueryExecutionSettings {
461
467
  useBlankLineDelimiter: boolean;
462
468
  queryTimeoutMs: number;