svelte-command 2.0.0 → 3.0.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Svelte v4](https://img.shields.io/badge/svelte-v4-orange.svg)](https://svelte.dev)
1
+ [![Svelte v5](https://img.shields.io/badge/svelte-v5-orange.svg)](https://svelte.dev)
2
2
  [![npm](https://img.shields.io/npm/v/svelte-command.svg)](https://www.npmjs.com/package/svelte-command)
3
3
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
4
4
  [![bundlejs](https://deno.bundlejs.com/?q=svelte-command\&badge=detailed)](https://bundlejs.com/?q=svelte-command)
@@ -72,7 +72,7 @@ general command execution handling for svelte components
72
72
 
73
73
  **Extends BasicCommand**
74
74
 
75
- Ask for confirmation before esxecution a given Command.
75
+ Ask for confirmation before execution a given Command.
76
76
 
77
77
  ### Parameters
78
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-command",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -38,27 +38,27 @@
38
38
  "preview": "vite preview"
39
39
  },
40
40
  "devDependencies": {
41
- "@semantic-release/commit-analyzer": "^12.0.0",
41
+ "@semantic-release/commit-analyzer": "^13.0.0",
42
42
  "@semantic-release/exec": "^6.0.3",
43
- "@semantic-release/github": "^10.0.4",
44
- "@semantic-release/release-notes-generator": "^13.0.0",
45
- "@sveltejs/vite-plugin-svelte": "^3.1.0",
43
+ "@semantic-release/github": "^10.1.3",
44
+ "@semantic-release/release-notes-generator": "^14.0.1",
45
+ "@sveltejs/vite-plugin-svelte": "^3.1.1",
46
46
  "ava": "^6.1.3",
47
47
  "documentation": "^14.0.3",
48
- "mf-styling": "^3.1.6",
49
- "npm-pkgbuild": "^15.3.14",
50
- "semantic-release": "^23.1.1",
51
- "svelte": "^5.0.0-next.136",
52
- "testcafe": "^3.6.0",
53
- "vite": "^5.2.11",
54
- "vite-plugin-compression2": "^1.1.0"
48
+ "mf-styling": "^3.1.7",
49
+ "npm-pkgbuild": "^15.3.27",
50
+ "semantic-release": "^24.0.0",
51
+ "svelte": "^5.0.0-next.202",
52
+ "testcafe": "^3.6.2",
53
+ "vite": "^5.3.5",
54
+ "vite-plugin-compression2": "^1.1.3"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "svelte": "^5.0.0-next.0"
58
58
  },
59
59
  "optionalDependencies": {
60
60
  "mf-hosting-cloudflare": "^1.0.6",
61
- "mf-hosting-frontend": "^3.0.3"
61
+ "mf-hosting-frontend": "^3.2.1"
62
62
  },
63
63
  "repository": {
64
64
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  <script>
2
- export let command;
2
+ let { command } = $props();
3
3
 
4
4
  function onkeydown(event) {
5
5
  if (command.matchesKeydown?.(event)) {
@@ -15,7 +15,7 @@
15
15
  aria-keyshortcuts={$command.disabled ? undefined : $command.shortcuts}
16
16
  class:active={$command.active}
17
17
  class:failed={$command.failed}
18
- on:click|preventDefault={() => command.start()}>
18
+ onclick={() => command.start()}>
19
19
  {#if $command.title !== undefined}
20
20
  {$command.title}
21
21
  {$command.shortcutDefinition}