Skip to content

Commit e8f49c0

Browse files
linasiLinas Išganaitis
andauthored
Upgrade @meeco/sd-jwt to version 1.2.1 (#30)
* ## 1.3.0 ### Security - Upgrade `@meeco/sd-jwt` to version `1.2.1` - Upgrade development dependencies * Test fixes * Lint fixes --------- Co-authored-by: Linas Išganaitis <[email protected]>
1 parent 356ee84 commit e8f49c0

File tree

11 files changed

+1022
-1019
lines changed

11 files changed

+1022
-1019
lines changed

.eslintrc.js

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

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project (loosely) adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 1.3.0 - 2024-10-07
9+
10+
### Security
11+
12+
- Upgrade `@meeco/sd-jwt` to version `1.2.1`
13+
- Upgrade development dependencies
14+
815
## 1.2.2 - 2024-05-15
916

1017
### Fixed

demo/holder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { KeyBindingVerifier, Signer, base64encode, decodeJWT } from '@meeco/sd-jwt';
1+
import { JWK, JWTHeaderParameters, KeyBindingVerifier, Signer, base64encode, decodeJWT } from '@meeco/sd-jwt';
22
import { createHash } from 'crypto';
3-
import { JWK, JWTHeaderParameters, JWTPayload, KeyLike, SignJWT, importJWK, jwtVerify } from 'jose';
3+
import { JWTPayload, KeyLike, SignJWT, importJWK, jwtVerify } from 'jose';
44
import { Holder, SDJWTVCError, SignerConfig, supportedAlgorithm } from '../dev/src';
55

66
const signerCallbackFn = function (privateKey: Uint8Array | KeyLike): Signer {

demo/issuer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { DisclosureFrame, Hasher, Signer, base64encode } from '@meeco/sd-jwt';
1+
import { DisclosureFrame, Hasher, JWTHeaderParameters, JWTPayload, Signer, base64encode } from '@meeco/sd-jwt';
22
import { createHash } from 'crypto';
3-
import { JWTHeaderParameters, JWTPayload, KeyLike, SignJWT, importJWK } from 'jose';
3+
import { KeyLike, SignJWT, importJWK } from 'jose';
44
import {
55
CreateSDJWTPayload,
66
HasherConfig,

eslint.config.mjs

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import typescriptEslintEslintPlugin from '@typescript-eslint/eslint-plugin';
2+
import prettier from 'eslint-plugin-prettier';
3+
import globals from 'globals';
4+
import tsParser from '@typescript-eslint/parser';
5+
import path from 'node:path';
6+
import { fileURLToPath } from 'node:url';
7+
import js from '@eslint/js';
8+
import { FlatCompat } from '@eslint/eslintrc';
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all,
16+
});
17+
18+
export default [
19+
{
20+
ignores: ['dist', '**/.eslint.config.mjs', '**/*.json', 'demo'],
21+
},
22+
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'),
23+
{
24+
plugins: {
25+
'@typescript-eslint': typescriptEslintEslintPlugin,
26+
prettier,
27+
},
28+
languageOptions: {
29+
globals: {
30+
...globals.node,
31+
...globals.jest,
32+
},
33+
parser: tsParser,
34+
ecmaVersion: 5,
35+
sourceType: 'module',
36+
parserOptions: {
37+
project: 'tsconfig.json',
38+
},
39+
},
40+
rules: {
41+
'@typescript-eslint/interface-name-prefix': 'off',
42+
'@typescript-eslint/explicit-function-return-type': 'off',
43+
'@typescript-eslint/explicit-module-boundary-types': 'off',
44+
'@typescript-eslint/no-explicit-any': 'off',
45+
'@typescript-eslint/require-await': 'warn',
46+
'@typescript-eslint/no-unused-vars': [
47+
'warn',
48+
{
49+
argsIgnorePattern: '^_',
50+
varsIgnorePattern: '^_',
51+
caughtErrorsIgnorePattern: '^_',
52+
},
53+
],
54+
'no-return-await': 'error',
55+
'prefer-const': 'warn',
56+
},
57+
},
58+
];

0 commit comments

Comments
 (0)