Skip to content

Commit 116c753

Browse files
Merge pull request #121 from egilchrist-godaddy/bump-deps
update: npm dependencies
2 parents 5d5c669 + fcd7caa commit 116c753

7 files changed

Lines changed: 1243 additions & 1198 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ jobs:
4646
INDEX (created)
4747
);"
4848
- name: Setup Go environment
49-
uses: actions/setup-go@v5.0.1
49+
uses: actions/setup-go@v5
5050
with:
51-
go-version: 1.22.3
51+
go-version: 1.24.0
52+
check-latest: true
5253
- name: Test Cross-Language
5354
env:
5455
TEST_DB_NAME: ${{ env.MYSQL_DATABASE }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ bower_components
3636

3737
# Compiled binary addons (https://nodejs.org/api/addons.html)
3838
build/Release
39+
build
3940

4041
# Dependency directories
4142
node_modules/

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# asherah-node
2+
13
Asherah envelope encryption and key rotation library
24

35
This is a wrapper of the Asherah Go implementation using the Cobhan FFI library
@@ -168,3 +170,7 @@ The `awsEnv.json` file would look like this (spelling errors intentional):
168170
### Go and Alpine / musl libc
169171

170172
The Golang compiler when creating shared libraries (.so) uses a Thread Local Storage model of init-exec. This model is inheriently incompatible with loading libraries at runtime with dlopen(), unless your libc reserves some space for dlopen()'ed libraries which is something of a hack. The most common libc, glibc does in fact reserve space for dlopen()'ed libraries that use init-exec model. The libc provided with Alpine is musl libc, and it does not participate in this hack / workaround of reserving space. Most compilers generate libraries with a Thread Local Storage model of global-dynamic which does not require this workaround, and the authors of musl libc do not feel that workaround should exist.
173+
174+
## Updating npm packages
175+
176+
To update packages, run `npm run update`. This command uses [npm-check-updates](https://github.com/raineorshine/npm-check-updates) to bring all npm packages to their latest version. This command also runs `npm install` and `npm audit fix` for you.

eslint.config.mjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default [
18+
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
19+
{
20+
plugins: {
21+
"@typescript-eslint": typescriptEslint,
22+
},
23+
24+
languageOptions: {
25+
globals: {
26+
...globals.commonjs,
27+
...globals.node,
28+
},
29+
30+
parser: tsParser,
31+
ecmaVersion: "latest",
32+
sourceType: "commonjs",
33+
},
34+
35+
rules: {
36+
"@typescript-eslint/no-explicit-any": "off",
37+
"@typescript-eslint/no-var-requires": "off",
38+
},
39+
},
40+
];

0 commit comments

Comments
 (0)