@vokril/ui-solid 0.22.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,18 @@ 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
+
14
+ ## 0.23.0
15
+
16
+ ### Minor Changes
17
+
18
+ - **Breaking:** `QueryExecutionSettings` gains `parameterPatterns: readonly ParameterPattern[]` and `parametersInStrings: boolean`. A `ParameterPattern` (`{ pattern, enabled }`) is a placeholder syntax that SQL pasted from application code carries, such as `${name}` or `#{name}`: a regular expression in the language server's flavour whose `name` group (else first group, else whole match) names the parameter. Matches are never taken inside comments or quoted identifiers, and inside string literals only when `parametersInStrings` is on; the value is written into the statement text as typed. Consumers supply both fields in their settings defaults.
19
+
8
20
  ## 0.22.0
9
21
 
10
22
  ### Minor Changes
@@ -447,6 +447,22 @@ export type MainMenuDisplayMode = 'traditional' | 'modern' | 'system';
447
447
  * statement. A run of a single statement has nothing left to decide and is never asked about.
448
448
  */
449
449
  export type ScriptErrorAction = 'ask' | 'stop' | 'continue';
450
+ /**
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.
459
+ */
460
+ export type ParameterPattern = {
461
+ readonly kind: 'enclosed';
462
+ readonly open: string;
463
+ readonly close: string;
464
+ readonly enabled: boolean;
465
+ };
450
466
  export interface QueryExecutionSettings {
451
467
  useBlankLineDelimiter: boolean;
452
468
  queryTimeoutMs: number;
@@ -469,6 +485,14 @@ export interface QueryExecutionSettings {
469
485
  * behaviour: every new result discards the previous one).
470
486
  */
471
487
  outputHistoryLimit: number;
488
+ /**
489
+ * User parameter patterns, in matching order. A match is never taken inside a comment or a quoted
490
+ * identifier; inside a string literal only when `parametersInStrings` is on. Its value is written
491
+ * into the statement text as typed — unlike a bind variable, it is not sent as a typed value.
492
+ */
493
+ parameterPatterns: readonly ParameterPattern[];
494
+ /** Whether user parameter patterns are also matched inside string literals. */
495
+ parametersInStrings: boolean;
472
496
  }
473
497
  /**
474
498
  * HOW A VALUE IS SHOWN — the only settings family that can be overridden per connection.
@@ -447,6 +447,22 @@ export type MainMenuDisplayMode = 'traditional' | 'modern' | 'system';
447
447
  * statement. A run of a single statement has nothing left to decide and is never asked about.
448
448
  */
449
449
  export type ScriptErrorAction = 'ask' | 'stop' | 'continue';
450
+ /**
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.
459
+ */
460
+ export type ParameterPattern = {
461
+ readonly kind: 'enclosed';
462
+ readonly open: string;
463
+ readonly close: string;
464
+ readonly enabled: boolean;
465
+ };
450
466
  export interface QueryExecutionSettings {
451
467
  useBlankLineDelimiter: boolean;
452
468
  queryTimeoutMs: number;
@@ -469,6 +485,14 @@ export interface QueryExecutionSettings {
469
485
  * behaviour: every new result discards the previous one).
470
486
  */
471
487
  outputHistoryLimit: number;
488
+ /**
489
+ * User parameter patterns, in matching order. A match is never taken inside a comment or a quoted
490
+ * identifier; inside a string literal only when `parametersInStrings` is on. Its value is written
491
+ * into the statement text as typed — unlike a bind variable, it is not sent as a typed value.
492
+ */
493
+ parameterPatterns: readonly ParameterPattern[];
494
+ /** Whether user parameter patterns are also matched inside string literals. */
495
+ parametersInStrings: boolean;
472
496
  }
473
497
  /**
474
498
  * HOW A VALUE IS SHOWN — the only settings family that can be overridden per connection.