Skip to content

Commit

Permalink
Merge pull request #77 from silverbucket/upgrade-pnpm
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
silverbucket authored Dec 23, 2024
2 parents eea216f + d419ee3 commit e321435
Show file tree
Hide file tree
Showing 10 changed files with 1,390 additions and 1,133 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

47 changes: 0 additions & 47 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [18, 20]
node-version: [20, 22]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
node-version: [18, 20]
node-version: [20, 22]

steps:
- uses: actions/checkout@v4
Expand All @@ -42,7 +42,7 @@ jobs:

strategy:
matrix:
node-version: [18, 20]
node-version: [20, 22]
redis-version: [6, 7]

steps:
Expand Down
7 changes: 7 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extensions": ["ts"],
"node-option": [
"experimental-specifier-resolution=node",
"loader=ts-node/esm"
]
}
56 changes: 56 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import securityNode from "eslint-plugin-security-node";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: [
"**/dist",
"**/node_modules",
"**/test",
"**/pnpm-lock.yaml",
"**/coverage",
],
},
...compat.extends(
"eslint:recommended",
"plugin:security-node/recommended",
"plugin:@typescript-eslint/recommended",
),
{
plugins: {
"security-node": securityNode,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.mocha,
},

ecmaVersion: 2021,
sourceType: "module",

parserOptions: {
ecmaFeatures: {
jsx: false,
},
},
},
},
{
files: ["**/*.test.ts"],
},
];
38 changes: 22 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "secure-store-redis",
"version": "3.0.6",
"version": "3.0.7",
"description": "A simple wrapper to encrypt and decrypt data stored in Redis",
"license": "MIT",
"private": false,
"type": "module",
"packageManager": "[email protected]",
"engines": {
"node": ">=16",
"pnpm": ">=8"
"pnpm": ">=9"
},
"keywords": [
"redis",
Expand All @@ -30,30 +31,35 @@
],
"scripts": {
"preinstall": "npx only-allow pnpm",
"test": "mocha -r ts-node/register src/*.test.ts",
"test": "pnpm test:ts && pnpm build && pnpm test:js",
"test:ts": "mocha -r ts-node/register src/*.test.ts",
"test:js": "mocha dist/*.test.js",
"lint": "prettier --check . && eslint --max-warnings 0 .",
"lint:fix": "prettier --write .",
"build": "tsc"
},
"dependencies": {
"redis": "4.6.13"
"redis": "4.7.0"
},
"devDependencies": {
"@types/chai": "4.3.14",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.17.0",
"@types/chai": "4.3.20",
"@types/debug": "4.1.12",
"@types/eslint": "8.56.6",
"@types/mocha": "10.0.6",
"@types/node": "20.12.2",
"@typescript-eslint/eslint-plugin": "7.4.0",
"@typescript-eslint/parser": "7.4.0",
"chai": "4.4.1",
"debug": "4.3.4",
"eslint": "8.57.0",
"@types/eslint": "9.6.1",
"@types/mocha": "10.0.10",
"@types/node": "22.10.2",
"@typescript-eslint/eslint-plugin": "8.18.1",
"@typescript-eslint/parser": "8.18.1",
"chai": "4.5.0",
"debug": "4.4.0",
"eslint": "9.17.0",
"eslint-plugin-security-node": "1.1.4",
"mocha": "10.4.0",
"prettier": "3.2.5",
"globals": "^15.14.0",
"mocha": "11.0.1",
"prettier": "3.4.2",
"ts-node": "10.9.2",
"typescript": "5.4.3"
"typescript": "5.7.2"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit e321435

Please sign in to comment.