Skip to content

Commit

Permalink
Upgrade @meeco/sd-jwt to version 1.2.1 (#30)
Browse files Browse the repository at this point in the history
* ## 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]>
  • Loading branch information
linasi and Linas Išganaitis authored Oct 8, 2024
1 parent 356ee84 commit e8f49c0
Show file tree
Hide file tree
Showing 11 changed files with 1,022 additions and 1,019 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

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

## 1.3.0 - 2024-10-07

### Security

- Upgrade `@meeco/sd-jwt` to version `1.2.1`
- Upgrade development dependencies

## 1.2.2 - 2024-05-15

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions demo/holder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { KeyBindingVerifier, Signer, base64encode, decodeJWT } from '@meeco/sd-jwt';
import { JWK, JWTHeaderParameters, KeyBindingVerifier, Signer, base64encode, decodeJWT } from '@meeco/sd-jwt';
import { createHash } from 'crypto';
import { JWK, JWTHeaderParameters, JWTPayload, KeyLike, SignJWT, importJWK, jwtVerify } from 'jose';
import { JWTPayload, KeyLike, SignJWT, importJWK, jwtVerify } from 'jose';
import { Holder, SDJWTVCError, SignerConfig, supportedAlgorithm } from '../dev/src';

const signerCallbackFn = function (privateKey: Uint8Array | KeyLike): Signer {
Expand Down
4 changes: 2 additions & 2 deletions demo/issuer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DisclosureFrame, Hasher, Signer, base64encode } from '@meeco/sd-jwt';
import { DisclosureFrame, Hasher, JWTHeaderParameters, JWTPayload, Signer, base64encode } from '@meeco/sd-jwt';
import { createHash } from 'crypto';
import { JWTHeaderParameters, JWTPayload, KeyLike, SignJWT, importJWK } from 'jose';
import { KeyLike, SignJWT, importJWK } from 'jose';
import {
CreateSDJWTPayload,
HasherConfig,
Expand Down
58 changes: 58 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import typescriptEslintEslintPlugin from '@typescript-eslint/eslint-plugin';
import prettier from 'eslint-plugin-prettier';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
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', '**/.eslint.config.mjs', '**/*.json', 'demo'],
},
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'),
{
plugins: {
'@typescript-eslint': typescriptEslintEslintPlugin,
prettier,
},
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
parser: tsParser,
ecmaVersion: 5,
sourceType: 'module',
parserOptions: {
project: 'tsconfig.json',
},
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'no-return-await': 'error',
'prefer-const': 'warn',
},
},
];
Loading

0 comments on commit e8f49c0

Please sign in to comment.