Skip to content

Commit dd7ad77

Browse files
committed
patch: upgrade dependencies
1 parent b1e577a commit dd7ad77

28 files changed

+1059
-1060
lines changed

.eslintignore

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

.eslintrc.js

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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ tmp/
4646

4747
yarn.lock
4848
package-lock.json
49+
50+
**/.spruce/*cache.json

.vscode/settings.json

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"debug.node.autoAttach": "on",
33
"git.ignoreLimitWarning": true,
44
"javascript.validate.enable": false,
5-
"editor.formatOnSave": true,
65
"files.watcherExclude": {
76
"**/.git/objects/**": true,
87
"**/.git/subtree-cache/**": true,
@@ -15,13 +14,6 @@
1514
"**/.next/**": true
1615
},
1716
"editor.maxTokenizationLineLength": 20000000,
18-
"eslint.enable": true,
19-
"eslint.validate": [
20-
"javascript",
21-
"javascriptreact",
22-
"typescript",
23-
"typescriptreact"
24-
],
2517
"[javascript]": {
2618
"editor.formatOnSave": false
2719
},
@@ -37,18 +29,7 @@
3729
"[handlebars]": {
3830
"editor.formatOnSave": false
3931
},
40-
"eslint.options": {
41-
"extensions": [
42-
".js",
43-
".jsx",
44-
".ts",
45-
".tsx"
46-
]
47-
},
4832
"typescript.tsdk": "node_modules/typescript/lib",
49-
"editor.codeActionsOnSave": {
50-
"source.fixAll.eslint": "explicit"
51-
},
5233
"cSpell.ignorePaths": [
5334
"**/package-lock.json",
5435
"**/node_modules/**",
@@ -66,5 +47,21 @@
6647
],
6748
"debug.javascript.unmapMissingSources": true,
6849
"javascript.preferences.importModuleSpecifier": "relative",
69-
"typescript.preferences.importModuleSpecifier": "relative"
50+
"typescript.preferences.importModuleSpecifier": "relative",
51+
"eslint.experimental.useFlatConfig": true,
52+
"eslint.enable": true,
53+
"eslint.validate": [
54+
"javascript",
55+
"javascriptreact",
56+
"typescript",
57+
"typescriptreact"
58+
],
59+
"eslint.workingDirectories": [
60+
"./"
61+
],
62+
"typescript.validate.enable": false,
63+
"editor.formatOnSave": false,
64+
"editor.codeActionsOnSave": {
65+
"source.fixAll.eslint": "always"
66+
}
7067
}

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import eslintConfigSpruce from 'eslint-config-spruce'
2+
3+
export default eslintConfigSpruce

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
{
22
"name": "@neurodevs/node-signal-processing",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"main": "build/index.js",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/neurodevs/node-signal-processing.git"
88
},
99
"scripts": {
10-
"build.ci": "yarn build.tsc && yarn build.resolve-paths && yarn lint",
11-
"build.dev": "yarn build.tsc --sourceMap ; yarn resolve-paths.lint",
10+
"build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
11+
"build.dev": "yarn run build.tsc --sourceMap ; yarn run resolve-paths.lint",
1212
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
1313
"build.resolve-paths": "resolve-path-aliases --target build --patterns '**/*.js,**/*.d.ts'",
14-
"build.tsc": "yarn build.copy-files && tsc",
15-
"clean": "yarn clean.build",
16-
"clean.all": "yarn clean.dependencies && yarn clean.build",
14+
"build.tsc": "yarn run build.copy-files && tsc",
15+
"clean": "yarn run clean.build",
16+
"clean.all": "yarn run clean.dependencies && yarn run clean.build",
1717
"clean.build": "rm -rf build/",
1818
"clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock",
1919
"fix.lint": "eslint --fix --cache '**/*.ts'",
2020
"lint": "eslint --cache '**/*.ts'",
2121
"lint.tsc": "tsc -p . --noEmit",
22-
"post.watch.build": "yarn build.copy-files && yarn build.resolve-paths",
23-
"rebuild": "yarn clean.all && yarn && yarn build.dev",
24-
"update.dependencies": "yarn clean.dependencies && yarn",
25-
"resolve-paths.lint": "yarn build.resolve-paths ; yarn lint",
22+
"post.watch.build": "yarn run build.copy-files && yarn run build.resolve-paths",
23+
"rebuild": "yarn run clean.all && yarn install && yarn run build.dev",
24+
"update.dependencies": "yarn run clean.dependencies && yarn",
25+
"resolve-paths.lint": "yarn run build.resolve-paths ; yarn run lint",
2626
"test": "jest",
27-
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn post.watch.build'",
27+
"watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn run post.watch.build'",
2828
"watch.lint": "concurrently 'yarn lint' \"chokidar 'src/**/*' -c 'yarn lint.tsc'\"",
29-
"watch.rebuild": "yarn clean.all && yarn && yarn watch.build.dev",
29+
"watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev",
3030
"watch.tsc": "tsc -w"
3131
},
3232
"devDependencies": {
33-
"@sprucelabs/jest-json-reporter": "^7.0.197",
34-
"@sprucelabs/resolve-path-aliases": "^1.1.298",
35-
"@sprucelabs/spruce-test-fixtures": "^61.1.13",
36-
"@sprucelabs/test": "^8.0.49",
37-
"@sprucelabs/test-utils": "^4.0.141",
38-
"@types/node": "^20.11.30",
33+
"@sprucelabs/jest-json-reporter": "^8.0.14",
34+
"@sprucelabs/resolve-path-aliases": "^2.0.14",
35+
"@sprucelabs/spruce-test-fixtures": "^62.0.2",
36+
"@sprucelabs/test": "^9.0.10",
37+
"@sprucelabs/test-utils": "^5.0.12",
38+
"@types/node": "^20.12.7",
3939
"chokidar-cli": "^3.0.0",
4040
"concurrently": "^8.2.2",
41-
"eslint": "^8.57.0",
42-
"eslint-config-spruce": "^10.13.6",
41+
"eslint": "^9.1.1",
42+
"eslint-config-spruce": "^11.2.14",
4343
"jest": "^29.7.0",
4444
"jest-circus": "^29.7.0",
4545
"prettier": "^3.2.5",
4646
"ts-node": "^10.9.2",
4747
"tsc-watch": "^6.2.0",
48-
"typescript": "^5.4.3"
48+
"typescript": "^5.4.5"
4949
},
5050
"description": "A TypeScript library for digital signal processing",
5151
"skill": {
@@ -71,9 +71,9 @@
7171
},
7272
"dependencies": {
7373
"@neurodevs/fili": "^2.0.4",
74-
"@sprucelabs/error": "^5.1.94",
75-
"@sprucelabs/schema": "^29.4.43",
76-
"@sprucelabs/spruce-core-schemas": "^39.0.277",
77-
"@sprucelabs/spruce-skill-utils": "^30.4.10"
74+
"@sprucelabs/error": "^6.0.13",
75+
"@sprucelabs/schema": "^30.0.17",
76+
"@sprucelabs/spruce-core-schemas": "^40.0.13",
77+
"@sprucelabs/spruce-skill-utils": "^31.0.17"
7878
}
79-
}
79+
}

src/.spruce/errors/errors.types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-namespace */
2-
/* eslint-disable no-redeclare */
3-
41
import { default as SchemaEntity } from '@sprucelabs/schema'
52
import * as SpruceSchema from '@sprucelabs/schema'
63

src/Fft.ts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,44 @@ import { assertOptions } from '@sprucelabs/schema'
22
import { Fft as FiliFft, FiliFftClass } from '@neurodevs/fili'
33
import { assertValidDataLength, assertValidRadix } from './assertions'
44
import {
5-
FastFourierTransform,
6-
FftOptions,
7-
ComplexNumbers,
5+
FastFourierTransform,
6+
FftOptions,
7+
ComplexNumbers,
88
} from './types/nodeSignalProcessing.types'
99

1010
export default class Fft implements FastFourierTransform {
11-
private radix: number
11+
private radix: number
1212

13-
public static FiliFftClass: FiliFftClass = FiliFft
14-
private filiFft: FiliFft
13+
public static FiliFftClass: FiliFftClass = FiliFft
14+
private filiFft: FiliFft
1515

16-
public constructor(options: FftOptions) {
17-
const { radix } = assertOptions(options, ['radix'])
18-
assertValidRadix(radix)
19-
this.radix = radix
20-
this.filiFft = this.load()
21-
}
16+
public constructor(options: FftOptions) {
17+
const { radix } = assertOptions(options, ['radix'])
18+
assertValidRadix(radix)
19+
this.radix = radix
20+
this.filiFft = this.load()
21+
}
2222

23-
public forward(data: number[]) {
24-
assertValidDataLength(data, this.radix)
25-
const result = this.filiFft.forward(data, 'none')
26-
return {
27-
real: result.re,
28-
imaginary: result.im,
29-
}
30-
}
23+
public forward(data: number[]) {
24+
assertValidDataLength(data, this.radix)
25+
const result = this.filiFft.forward(data, 'none')
26+
return {
27+
real: result.re,
28+
imaginary: result.im,
29+
}
30+
}
3131

32-
public inverse(data: ComplexNumbers) {
33-
assertValidDataLength(data.real, this.radix)
34-
assertValidDataLength(data.imaginary, this.radix)
35-
const result = this.filiFft.inverse(data.real, data.imaginary)
36-
return {
37-
real: result.re,
38-
imaginary: result.im,
39-
}
40-
}
32+
public inverse(data: ComplexNumbers) {
33+
assertValidDataLength(data.real, this.radix)
34+
assertValidDataLength(data.imaginary, this.radix)
35+
const result = this.filiFft.inverse(data.real, data.imaginary)
36+
return {
37+
real: result.re,
38+
imaginary: result.im,
39+
}
40+
}
4141

42-
protected load() {
43-
return new Fft.FiliFftClass(this.radix)
44-
}
42+
protected load() {
43+
return new Fft.FiliFftClass(this.radix)
44+
}
4545
}

0 commit comments

Comments
 (0)