Skip to content

Commit

Permalink
Release 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Jan 31, 2025
1 parent a937889 commit f4635bc
Show file tree
Hide file tree
Showing 5 changed files with 754 additions and 1,317 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ The results above are of a benchmark of handling a 3 keys sequence 1000 times. [

# Changelog

**1.0.6 (January 31th 2025)**

- Add named export to avoid default export issues with CommonJS.
- Replaced `parcel` with `tsup`.

**1.0.5 (January 31th 2025)**

- Fix issue of 2 defautl exports.
Expand Down
18 changes: 3 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ctrl-keys",
"version": "1.0.5",
"version": "1.0.6",
"author": "Amine Ben hammou",
"description": "A tiny, super fast, typescript library to handle keybindings efficiently.",
"keywords": [
Expand All @@ -22,16 +22,6 @@
"default": "./dist/index.js"
}
},
"optimize": true,
"targets": {
"types": {
"includeNodeModules": {
"just-types": true
},
"isLibrary": true,
"distDir": "./dist"
}
},
"files": [
"dist"
],
Expand All @@ -40,22 +30,20 @@
},
"scripts": {
"bench": "cd benchmark && yarn && yarn build",
"build": "parcel build",
"build": "tsup",
"test": "jest",
"test-coverage": "jest --coverage"
},
"devDependencies": {
"@parcel/packager-ts": "2.13.3",
"@parcel/transformer-typescript-types": "2.13.3",
"@testing-library/dom": "^10.4.0",
"@testing-library/user-event": "^14.6.1",
"@types/jest": "^29.5.14",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"just-types": "^2.0.0-alpha.3",
"parcel": "^2.13.3",
"ts-jest": "^29.2.5",
"tslib": "^2.8.1",
"tsup": "8.0.1",
"typescript": "^5.7.3"
}
}
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import {createState} from './state'

export * from './types'

export default function keys() {
export function keys() {
return new Handler(createState())
}

export default keys
16 changes: 16 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: {
resolve: true,
entry: 'src/index.ts'
},
clean: true,
minify: true,
sourcemap: true,
target: 'es2018',
outDir: 'dist',
noExternal: ['just-types']
})
Loading

0 comments on commit f4635bc

Please sign in to comment.