svelte-command 1.1.51 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-command",
3
- "version": "1.1.51",
3
+ "version": "2.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -40,6 +40,7 @@
40
40
  "devDependencies": {
41
41
  "@semantic-release/commit-analyzer": "^12.0.0",
42
42
  "@semantic-release/exec": "^6.0.3",
43
+ "@semantic-release/github": "^10.0.4",
43
44
  "@semantic-release/release-notes-generator": "^13.0.0",
44
45
  "@sveltejs/vite-plugin-svelte": "^3.1.0",
45
46
  "ava": "^6.1.3",
@@ -53,7 +54,7 @@
53
54
  "vite-plugin-compression2": "^1.1.0"
54
55
  },
55
56
  "peerDependencies": {
56
- "svelte": "^4.0.0 || ^5.0.0-next.0"
57
+ "svelte": "^5.0.0-next.0"
57
58
  },
58
59
  "optionalDependencies": {
59
60
  "mf-hosting-cloudflare": "^1.0.6",
@@ -1,14 +1,14 @@
1
1
  <script>
2
2
  export let command;
3
3
 
4
- function handleKeydown(event) {
4
+ function onkeydown(event) {
5
5
  if (command.matchesKeydown?.(event)) {
6
6
  command.start();
7
7
  }
8
8
  }
9
9
  </script>
10
10
 
11
- <svelte:window on:keydown={handleKeydown} />
11
+ <svelte:window {onkeydown} />
12
12
 
13
13
  <button
14
14
  disabled={$command.disabled}
@@ -1,7 +1,7 @@
1
1
  import { BasicCommand } from "./command.mjs";
2
2
 
3
3
  /**
4
- * Ask for confirmation before esxecution a given Command.
4
+ * Ask for confirmation before execution a given Command.
5
5
  */
6
6
  export class ConfirmCommand extends BasicCommand {
7
7
  constructor(command) {