browser-haptic 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +0 -12
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -58,18 +58,6 @@ You can also use named imports if you prefer: `import { light, success, isSuppor
58
58
 
59
59
  On iOS Safari 17.4+, `isSupported()` is `true` but `hasVibration()` is `false`; the library uses a hidden native switch toggle.
60
60
 
61
- ## Test
62
-
63
- ```bash
64
- bun test
65
- ```
66
-
67
- Coverage (enforces 80% lines and functions):
68
-
69
- ```bash
70
- bun run coverage
71
- ```
72
-
73
61
  ## Contributing
74
62
 
75
63
  Contributions are welcome. To get started:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-haptic",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Lightweight haptic feedback for JS (Vibration API + iOS Safari switch fallback). No deps.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,11 @@
21
21
  "coverage": "bun test --coverage",
22
22
  "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
23
23
  "build": "bun run clean && tsc",
24
- "prepublishOnly": "bun run build"
24
+ "prepublishOnly": "bun run build",
25
+ "version:patch": "bun scripts/bump.js patch",
26
+ "version:minor": "bun scripts/bump.js minor",
27
+ "version:major": "bun scripts/bump.js major",
28
+ "tag": "node -e \"const v=require('./package.json').version; require('child_process').execSync('git tag -a v'+v+' -m \\\"Release v'+v+'\\\"', {stdio:'inherit'})\""
25
29
  },
26
30
  "packageManager": "bun",
27
31
  "keywords": [