@vokril/ui-solid 0.22.0 → 0.23.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.23.0
9
+
10
+ ### Minor Changes
11
+
12
+ - **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.
13
+
8
14
  ## 0.22.0
9
15
 
10
16
  ### Minor Changes
@@ -447,6 +447,16 @@ 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
+ * 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.
455
+ */
456
+ export interface ParameterPattern {
457
+ readonly pattern: string;
458
+ readonly enabled: boolean;
459
+ }
450
460
  export interface QueryExecutionSettings {
451
461
  useBlankLineDelimiter: boolean;
452
462
  queryTimeoutMs: number;
@@ -469,6 +479,14 @@ export interface QueryExecutionSettings {
469
479
  * behaviour: every new result discards the previous one).
470
480
  */
471
481
  outputHistoryLimit: number;
482
+ /**
483
+ * User parameter patterns, in matching order. A match is never taken inside a comment or a quoted
484
+ * identifier; inside a string literal only when `parametersInStrings` is on. Its value is written
485
+ * into the statement text as typed — unlike a bind variable, it is not sent as a typed value.
486
+ */
487
+ parameterPatterns: readonly ParameterPattern[];
488
+ /** Whether user parameter patterns are also matched inside string literals. */
489
+ parametersInStrings: boolean;
472
490
  }
473
491
  /**
474
492
  * HOW A VALUE IS SHOWN — the only settings family that can be overridden per connection.
@@ -447,6 +447,16 @@ 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
+ * 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.
455
+ */
456
+ export interface ParameterPattern {
457
+ readonly pattern: string;
458
+ readonly enabled: boolean;
459
+ }
450
460
  export interface QueryExecutionSettings {
451
461
  useBlankLineDelimiter: boolean;
452
462
  queryTimeoutMs: number;
@@ -469,6 +479,14 @@ export interface QueryExecutionSettings {
469
479
  * behaviour: every new result discards the previous one).
470
480
  */
471
481
  outputHistoryLimit: number;
482
+ /**
483
+ * User parameter patterns, in matching order. A match is never taken inside a comment or a quoted
484
+ * identifier; inside a string literal only when `parametersInStrings` is on. Its value is written
485
+ * into the statement text as typed — unlike a bind variable, it is not sent as a typed value.
486
+ */
487
+ parameterPatterns: readonly ParameterPattern[];
488
+ /** Whether user parameter patterns are also matched inside string literals. */
489
+ parametersInStrings: boolean;
472
490
  }
473
491
  /**
474
492
  * HOW A VALUE IS SHOWN — the only settings family that can be overridden per connection.