@vokril/ui-solid 0.20.2 → 0.21.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.21.0
9
+
10
+ ### Minor Changes
11
+
12
+ - **Breaking:** `QueryExecutionSettings.stopOnError` is replaced by `onError: ScriptErrorAction` (`'ask' | 'stop' | 'continue'`): what a run of several statements does when one fails — wait for the user's decision, stop at the failure, or report it and go on with the next statement. The per-connection override follows: `ConnectionWorkspacePreferences.executionOverrides.stopOnError` is `onError`. `QueryExecutionSettings.runSelectionOnly` and `EditorBehaviorSettings.codeLens` are removed — the first never did what its name says and nothing provided the second.
13
+
8
14
  ## 0.20.2
9
15
 
10
16
  ### Patch Changes
@@ -222,8 +222,6 @@ export interface EditorBehaviorSettings {
222
222
  suggestPreview: boolean;
223
223
  /** Where built-in SQL snippets rank in the completion list. */
224
224
  snippetSuggestions: EditorSnippetSuggestions;
225
- /** Show CodeLens (per-statement Run, CTE references) above the code. */
226
- codeLens: boolean;
227
225
  /** Show inlay hints (implicit JOIN/ORDER BY defaults) inline. */
228
226
  inlayHints: boolean;
229
227
  /** Zoom the editor font with Ctrl/Cmd + mouse wheel. */
@@ -442,8 +440,14 @@ export type WorkspaceTabBarPlacement = 'top' | 'statusbar' | 'menu';
442
440
  * would have NO menu — the settings UI guards against picking this on non-mac).
443
441
  */
444
442
  export type MainMenuDisplayMode = 'traditional' | 'modern' | 'system';
443
+ /**
444
+ * What a run of several statements does when one of them fails: `ask` waits for the user's
445
+ * decision (stop, run the statement again, skip it, or skip every later failure of the run),
446
+ * `stop` ends the run at the failure, `continue` reports the failure and goes on with the next
447
+ * statement. A run of a single statement has nothing left to decide and is never asked about.
448
+ */
449
+ export type ScriptErrorAction = 'ask' | 'stop' | 'continue';
445
450
  export interface QueryExecutionSettings {
446
- runSelectionOnly: boolean;
447
451
  useBlankLineDelimiter: boolean;
448
452
  queryTimeoutMs: number;
449
453
  confirmDestructive: boolean;
@@ -457,7 +461,7 @@ export interface QueryExecutionSettings {
457
461
  */
458
462
  destructiveConfirmDelaySeconds: number;
459
463
  safeMode: boolean;
460
- stopOnError: boolean;
464
+ onError: ScriptErrorAction;
461
465
  /**
462
466
  * Per-editor result-history retention. Each successful SELECT pushes a new
463
467
  * entry into the editor's output history; older entries are evicted FIFO
@@ -1319,14 +1323,14 @@ export interface ConnectionWorkspacePreferences {
1319
1323
  * Per-connection SAFETY overrides for query execution. Each field, when
1320
1324
  * present, overrides the GLOBAL default (`queryExecutionSettings`) for THIS
1321
1325
  * connection only; absent = inherit global. Follows established DB-tool
1322
- * best practice, where read-only / confirm-destructive / safe-mode are
1323
- * per-data-source. Cosmetic
1326
+ * best practice, where read-only / confirm-destructive / safe-mode and what a script does
1327
+ * on an error are per-data-source. Cosmetic
1324
1328
  * execution fields (timeout, history limit, …) stay global and are never overridden.
1325
1329
  */
1326
1330
  executionOverrides?: {
1327
1331
  safeMode?: boolean;
1328
1332
  confirmDestructive?: boolean;
1329
- stopOnError?: boolean;
1333
+ onError?: ScriptErrorAction;
1330
1334
  };
1331
1335
  /**
1332
1336
  * The monitoring page's RAC instance filter — the id of the instance shown; `null`/absent = all
@@ -222,8 +222,6 @@ export interface EditorBehaviorSettings {
222
222
  suggestPreview: boolean;
223
223
  /** Where built-in SQL snippets rank in the completion list. */
224
224
  snippetSuggestions: EditorSnippetSuggestions;
225
- /** Show CodeLens (per-statement Run, CTE references) above the code. */
226
- codeLens: boolean;
227
225
  /** Show inlay hints (implicit JOIN/ORDER BY defaults) inline. */
228
226
  inlayHints: boolean;
229
227
  /** Zoom the editor font with Ctrl/Cmd + mouse wheel. */
@@ -442,8 +440,14 @@ export type WorkspaceTabBarPlacement = 'top' | 'statusbar' | 'menu';
442
440
  * would have NO menu — the settings UI guards against picking this on non-mac).
443
441
  */
444
442
  export type MainMenuDisplayMode = 'traditional' | 'modern' | 'system';
443
+ /**
444
+ * What a run of several statements does when one of them fails: `ask` waits for the user's
445
+ * decision (stop, run the statement again, skip it, or skip every later failure of the run),
446
+ * `stop` ends the run at the failure, `continue` reports the failure and goes on with the next
447
+ * statement. A run of a single statement has nothing left to decide and is never asked about.
448
+ */
449
+ export type ScriptErrorAction = 'ask' | 'stop' | 'continue';
445
450
  export interface QueryExecutionSettings {
446
- runSelectionOnly: boolean;
447
451
  useBlankLineDelimiter: boolean;
448
452
  queryTimeoutMs: number;
449
453
  confirmDestructive: boolean;
@@ -457,7 +461,7 @@ export interface QueryExecutionSettings {
457
461
  */
458
462
  destructiveConfirmDelaySeconds: number;
459
463
  safeMode: boolean;
460
- stopOnError: boolean;
464
+ onError: ScriptErrorAction;
461
465
  /**
462
466
  * Per-editor result-history retention. Each successful SELECT pushes a new
463
467
  * entry into the editor's output history; older entries are evicted FIFO
@@ -1319,14 +1323,14 @@ export interface ConnectionWorkspacePreferences {
1319
1323
  * Per-connection SAFETY overrides for query execution. Each field, when
1320
1324
  * present, overrides the GLOBAL default (`queryExecutionSettings`) for THIS
1321
1325
  * connection only; absent = inherit global. Follows established DB-tool
1322
- * best practice, where read-only / confirm-destructive / safe-mode are
1323
- * per-data-source. Cosmetic
1326
+ * best practice, where read-only / confirm-destructive / safe-mode and what a script does
1327
+ * on an error are per-data-source. Cosmetic
1324
1328
  * execution fields (timeout, history limit, …) stay global and are never overridden.
1325
1329
  */
1326
1330
  executionOverrides?: {
1327
1331
  safeMode?: boolean;
1328
1332
  confirmDestructive?: boolean;
1329
- stopOnError?: boolean;
1333
+ onError?: ScriptErrorAction;
1330
1334
  };
1331
1335
  /**
1332
1336
  * The monitoring page's RAC instance filter — the id of the instance shown; `null`/absent = all