Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/keyboard

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/keyboard - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/index.js

@@ -1,3 +0,1 @@

"use strict";
// src/index.ts

@@ -4,0 +2,0 @@ import { makeEventListener } from "@solid-primitives/event-listener";

@@ -1,3 +0,1 @@

"use strict";
// src/server.ts

@@ -4,0 +2,0 @@ import { noop } from "@solid-primitives/utils";

38

package.json
{
"name": "@solid-primitives/keyboard",
"version": "1.0.0",
"version": "1.0.1",
"description": "A library of reactive promitives helping handling user's keyboard input.",

@@ -18,3 +18,3 @@ "author": "Damian Tarnwski <gthetarnav@gmail.com>",

"name": "keyboard",
"stage": 0,
"stage": 1,
"list": [

@@ -46,9 +46,2 @@ "useKeyDownList",

],
"scripts": {
"start": "vite serve dev --host",
"dev": "npm run start",
"build": "tsup",
"test": "vitest run test",
"test:watch": "vitest watch test"
},
"keywords": [

@@ -64,10 +57,10 @@ "solid",

"prettier": "^2.7.1",
"solid-js": "^1.4.4",
"solid-js": "^1.4.8",
"tslib": "^2.4.0",
"tsup": "^6.1.2",
"tsup": "^6.1.3",
"typescript": "^4.7.4",
"unocss": "0.39.0",
"vite": "2.9.12",
"vite-plugin-solid": "2.2.6",
"vitest": "^0.18.0"
"unocss": "^0.44.7",
"vite": "^3.0.2",
"vite-plugin-solid": "^2.3.0",
"vitest": "^0.18.1"
},

@@ -78,6 +71,13 @@ "peerDependencies": {

"dependencies": {
"@solid-primitives/event-listener": "^2.2.0",
"@solid-primitives/rootless": "^1.1.0",
"@solid-primitives/utils": "^2.1.1"
"@solid-primitives/event-listener": "^2.2.1",
"@solid-primitives/rootless": "^1.1.2",
"@solid-primitives/utils": "^3.0.0"
},
"scripts": {
"start": "vite serve dev --host",
"dev": "npm run start",
"build": "tsup",
"test": "vitest run test",
"test:watch": "vitest watch test"
}
}
}

@@ -10,3 +10,3 @@ <p>

[![version](https://img.shields.io/npm/v/@solid-primitives/keyboard?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/keyboard)
[![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-0.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)
[![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-1.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)

@@ -99,3 +99,3 @@ A library of reactive promitives helping handling user's keyboard input.

Provides a `boolean` signal indicating if provided {@link key} is currently being held down.
Provides a `boolean` signal indicating if provided key is currently being held down.

@@ -152,23 +152,10 @@ Holding multiple keys at the same time will return `false` — holding only the specified one will return `true`.

## Changelog
## DEMO
<details>
<summary><b>Expand Changelog</b></summary>
Working demo of some of the primitives in keyboard package:
0.0.100
https://codesandbox.io/s/solid-primitives-keyboard-demo-s2l84k?file=/index.tsx
Initial release as a Stage-0 primitive.
## Changelog
1.0.0
[PR#159](https://github.com/solidjs-community/solid-primitives/pull/159)
General package refactor. The single initial `makeKeyHoldListener` primitive has been replaced by:
- `useKeyDownList`,
- `useCurrentlyHeldKey`,
- `useKeyDownSequence`,
- `createKeyHold`,
- `createShortcut`
</details>
See [CHANGELOG.md](./CHANGELOG.md)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc