Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Update all development Yarn dependencies (2023-10-22) (#37)
Browse files Browse the repository at this point in the history
This is your weekly update of **all development** Yarn dependencies.
Please take a good look at what changed and the test results before
merging this pull request.

### What changed?

✳️ @graphql-codegen/cli (3.3.1 → 5.0.0, major) ·
[Repo](https://github.com/dotansimha/graphql-code-generator) ·
[Changelog](https://github.com/dotansimha/graphql-code-generator/blob/master/CHANGELOG.md)

✳️ @graphql-codegen/typescript-resolvers (3.2.1 → 4.0.1, major) ·
[Repo](https://github.com/dotansimha/graphql-code-generator) ·
[Changelog](https://github.com/dotansimha/graphql-code-generator/blob/master/CHANGELOG.md)

✳️ @graphql-tools/schema (9.0.19 → 10.0.0, major) ·
[Repo](https://github.com/ardatan/graphql-tools) ·
[Changelog](https://github.com/ardatan/graphql-tools/blob/master/CHANGELOG.md)

✳️ @neuledge/tsconfig (2.0.0 → 3.0.0, major) ·
[Repo](https://github.com/neuledge/utils-js) ·
[Changelog](https://github.com/neuledge/utils-js/blob/main/packages/tsconfig/CHANGELOG.md)

✳️ @types/node (18.16.3 → 20.6.3, major) ·
[Repo](https://github.com/DefinitelyTyped/DefinitelyTyped)

✳️ prettier (2.8.8 → 3.0.3, major) ·
[Repo](https://github.com/prettier/prettier) ·
[Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
· [Release](https://github.com/prettier/prettier/releases/tag/3.0.3) ·
[Diff](prettier/prettier@1b7fad5...d5f3171)

✳️ tsup (6.7.0 → 7.2.0, major)

✳️ @neuledge/eslint-config (1.0.1 → 1.2.0, minor) ·
[Repo](https://github.com/neuledge/utils-js) ·
[Changelog](https://github.com/neuledge/utils-js/blob/main/packages/eslint-config/CHANGELOG.md)

✳️ @types/pluralize (0.0.29 → 0.0.31, minor) ·
[Repo](https://github.com/DefinitelyTyped/DefinitelyTyped)

✳️ @vscode/vsce (2.19.0 → 2.21.1, minor) ·
[Repo](https://github.com/microsoft/vscode-vsce) ·
[Diff](microsoft/vscode-vsce@c2e71d5...2e474b4)

✳️ eslint (8.39.0 → 8.51.0, minor) ·
[Repo](https://github.com/eslint/eslint) ·
[Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) ·
[Release](https://github.com/eslint/eslint/releases/tag/v8.51.0) ·
[Diff](eslint/eslint@560e812...f079382)

✳️ jest (29.5.0 → 29.7.0, minor) ·
[Repo](https://github.com/jestjs/jest) ·
[Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) ·
[Release](https://github.com/jestjs/jest/releases/tag/v29.7.0) ·
[Diff](jestjs/jest@39f3bed...4e56991)

✳️ turbo (1.9.3 → 1.10.15, minor) ·
[Repo](https://github.com/turborepo/turbo)

✳️ typescript (5.0.4 → 5.2.2, minor) ·
[Repo](https://github.com/Microsoft/TypeScript) ·
[Release](https://github.com/microsoft/TypeScript/releases/tag/v5.2.2) ·
[Diff](microsoft/TypeScript@3b45f4d...9684ba6)

✳️ @changesets/cli (2.26.1 → 2.26.2, patch) ·
[Repo](https://github.com/changesets/changesets/tree/main/packages/cli)
·
[Changelog](https://github.com/changesets/changesets/blob/main/packages/cli/CHANGELOG.md)

✳️ @neuledge/jest-ts-preset (1.0.0 → 1.0.1, patch) ·
[Repo](https://github.com/neuledge/utils-js) ·
[Changelog](https://github.com/neuledge/utils-js/blob/main/packages/jest-ts-preset/CHANGELOG.md)

✳️ @swc/core (1.3.56 → 1.3.92, patch) ·
[Repo](https://github.com/swc-project/swc) ·
[Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md) ·
[Release](https://github.com/swc-project/swc/releases/tag/v1.3.92) ·
[Diff](swc-project/swc@fee0ec4...28af875)

✳️ @types/jest (29.5.1 → 29.5.5, patch) ·
[Repo](https://github.com/DefinitelyTyped/DefinitelyTyped)

✳️ rimraf (5.0.0 → 5.0.5, patch) ·
[Repo](https://github.com/isaacs/rimraf) ·
[Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md) ·
[Diff](isaacs/rimraf@98ee1e9...3cc9222)

✳️ tsc-alias (1.8.6 → 1.8.8, patch) ·
[Repo](https://github.com/justkey007/tsc-alias) ·
[Release](https://github.com/justkey007/tsc-alias/releases/tag/v1.8.8) ·
[Diff](justkey007/tsc-alias@02bffdf...47c162f)




---
![Depfu
Status](https://depfu.com/badges/2c05ca219e802269062aac09ed69994b/stats.svg)

[Depfu](https://depfu.com) will only send you the next scheduled PR once
you merge or close this one.

<details><summary>All Depfu comment commands</summary>
<blockquote><dl>
<dt>@​depfu refresh</dt><dd>Rebases against your default branch and
redoes this update</dd>
<dt>@​depfu recreate</dt><dd>Recreates this PR, overwriting any edits
that you've made to it</dd>
<dt>@​depfu merge</dt><dd>Merges this PR once your tests are passing and
conflicts are resolved</dd>
<dt>@​depfu cancel merge</dt><dd>Cancels automatic merging of this
PR</dd>
<dt>@​depfu close</dt><dd>Closes this PR and deletes the branch</dd>
<dt>@​depfu reopen</dt><dd>Restores the branch and reopens this PR (if
it's closed)</dd>
</dl></blockquote>
</details>

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Moshe Simantov <me@moshe.io>
  • Loading branch information
depfu[bot] and moshest authored Oct 22, 2023
1 parent a386455 commit 2bd1448
Show file tree
Hide file tree
Showing 24 changed files with 2,057 additions and 1,711 deletions.
13 changes: 13 additions & 0 deletions .changeset/heavy-nails-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@neuledge/typescript-states': patch
'@neuledge/mongodb-store': patch
'@neuledge/states-parser': patch
'vscode-neuledge-states': patch
'@neuledge/states-cli': patch
'@neuledge/scalars': patch
'@neuledge/engine': patch
'@neuledge/store': patch
'@neuledge/states': patch
---

dependencies update
6 changes: 3 additions & 3 deletions examples/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"mercurius": "^13.1.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^3.3.1",
"@graphql-codegen/typescript-resolvers": "^3.2.1",
"@graphql-tools/schema": "^9.0.19",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/typescript-resolvers": "^4.0.1",
"@graphql-tools/schema": "^10.0.0",
"@neuledge/states-cli": "^0.1.3"
}
}
2 changes: 2 additions & 0 deletions examples/graphql/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "@neuledge/tsconfig/base.json",
"compilerOptions": {
"module": "es2022",
"moduleResolution": "Node",
"baseUrl": "src",
"rootDir": "src",
"outDir": "dist"
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@
"release": "yarn release:build && yarn release:version && yarn release:publish && yarn release:github-publish && yarn release:push"
},
"devDependencies": {
"@changesets/cli": "^2.26.0",
"@neuledge/eslint-config": "^1.0.1",
"@neuledge/jest-ts-preset": "^1.0.0",
"@neuledge/tsconfig": "^2.0.0",
"@swc/core": "^1.3.56",
"@types/jest": "^29.5.1",
"@types/node": "^18.16.3",
"eslint": "^8.39.0",
"@changesets/cli": "^2.26.2",
"@neuledge/eslint-config": "^1.2.0",
"@neuledge/jest-ts-preset": "^1.0.1",
"@neuledge/tsconfig": "^3.0.0",
"@swc/core": "^1.3.92",
"@types/jest": "^29.5.5",
"@types/node": "^20.6.3",
"eslint": "^8.51.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"ts-node": "^10.9.1",
"tsc-alias": "^1.8.6",
"tsup": "^6.6.3",
"turbo": "^1.9.3",
"typescript": "^5.0.4"
"tsc-alias": "^1.8.8",
"tsup": "^7.2.0",
"turbo": "^1.10.15",
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"pluralize": "^8.0.0"
},
"devDependencies": {
"@types/pluralize": "^0.0.29",
"@types/pluralize": "^0.0.31",
"@neuledge/states-cli": "^0.1.3",
"@neuledge/store": "^0.2.1"
},
Expand Down
11 changes: 9 additions & 2 deletions packages/engine/src/definitions/state/find/comparable.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
export type ComparableFilters<V> =
export type ComparableFilters<V> = (
| WhereLowerThenFilter<V>
| WhereLowerThenEqualFilter<V>
| WhereGreaterThenFilter<V>
| WhereGreaterThenEqualFilter<V>;
| WhereGreaterThenEqualFilter<V>
) &
Partial<
| WhereLowerThenFilter<V>
| WhereLowerThenEqualFilter<V>
| WhereGreaterThenFilter<V>
| WhereGreaterThenEqualFilter<V>
>;

interface WhereLowerThenFilter<V> {
$lt: V;
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/src/engine/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ const setEntityValue = (obj: object, path: string, value: unknown): void => {
: (obj[key as never] = {} as never);
}

obj[pathKeys[pathKeys.length - 1] as never] = value as never;
obj[pathKeys.at(-1) as never] = value as never;
};
5 changes: 4 additions & 1 deletion packages/engine/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ export class NeuledgeError extends Error {
return error;
}

constructor(public readonly code: NeuledgeError.Code, message: string) {
constructor(
public readonly code: NeuledgeError.Code,
message: string,
) {
super(message);
this.name = 'NeuledgeError';
}
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/src/metadata/names/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ const suggestStatesCollectionNames = (
* For example: ['user', 'profile'] -> 'user_profiles'
*/
const formatCollectionName = (words: string[]): string =>
[...words.slice(0, -1), pluralize.plural(words[words.length - 1])].join('_');
[...words.slice(0, -1), pluralize.plural(words.at(-1) as string)].join('_');
2 changes: 1 addition & 1 deletion packages/engine/src/metadata/names/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ const generateFieldMap = <
};

export const toSnakeCase = (str: string): string =>
str.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
str.replaceAll(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
4 changes: 3 additions & 1 deletion packages/engine/src/mutations/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { Query, QueryMode, QueryOptions, QueryType } from '@/queries';
import { Mutation, MutationType } from './mutation';

export interface MutationGeneratorMethod {
(...args: Record<string, never>[]): Query<
(
...args: Record<string, never>[]
): Query<
QueryMode,
StateDefinition,
StateDefinition,
Expand Down
9 changes: 5 additions & 4 deletions packages/engine/src/queries/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ import { QueryOptions, QueryType } from './query';
import { NeuledgeError } from '@/error';

export class QueryClass<
T extends QueryType,
I extends StateDefinition,
O extends StateDefinition,
> implements
T extends QueryType,
I extends StateDefinition,
O extends StateDefinition,
>
implements
ReturnQuery<any, I, O>, // eslint-disable-line @typescript-eslint/no-explicit-any
SelectQuery<any, I, O, any>, // eslint-disable-line @typescript-eslint/no-explicit-any
ExpandQuery<any, I, O, any, any>, // eslint-disable-line @typescript-eslint/no-explicit-any
Expand Down
2 changes: 1 addition & 1 deletion packages/mongodb-store/src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ const filterTerm = (
};

const escapeRegExp = (string: string): string =>
string.replace(/[$()*+.?[\\\]^{|}]/g, '\\$&'); // $& means the whole matched string
string.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&'); // $& means the whole matched string
2 changes: 1 addition & 1 deletion packages/scalars/src/commons/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const URLScalar = createCallableScalar(

if (domain != null) {
const regex = new RegExp(
`://([a-z0-9]+(-[a-z0-9]+)*\\.)*${domain.replace(/\./g, '\\.')}/`,
`://([a-z0-9]+(-[a-z0-9]+)*\\.)*${domain.replaceAll('.', '\\.')}/`,
'i',
);

Expand Down
2 changes: 2 additions & 0 deletions packages/states-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "@neuledge/tsconfig/base.json",
"compilerOptions": {
"module": "es2022",
"moduleResolution": "Node",
"baseUrl": "src",
"rootDir": "src",
"outDir": "dist"
Expand Down
6 changes: 3 additions & 3 deletions packages/states-parser/src/tokens/tokenize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const tokenize = (content: string, path?: string): Token[] => {
column = 1;
}

column += lines[lines.length - 1].length;
column += lines.at(-1)?.length ?? 0;
position += value.length;

if (isComment && value.includes('\n')) {
Expand Down Expand Up @@ -130,12 +130,12 @@ const parseStringToken = (
value: raw
.slice(3, -3)
.trim()
.replace(/[\t ]*\r?\n[\t ]*/g, '\n'),
.replaceAll(/[\t ]*\r?\n[\t ]*/g, '\n'),
};
}

return {
kind: kind as '"' | "'",
value: raw.slice(1, -1).replace(/\\(.)/g, '$1'),
value: raw.slice(1, -1).replaceAll(/\\(.)/g, '$1'),
};
};
5 changes: 4 additions & 1 deletion packages/store/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export namespace StoreError {
export class StoreError extends Error {
static Code = StoreErrorCode;

constructor(public readonly code: StoreErrorCode, message: string) {
constructor(
public readonly code: StoreErrorCode,
message: string,
) {
super(message);
this.name = 'StoreError';
}
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-states/src/generate/arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export const generateArguments = (
};

const generateArgumentName = (name: string): string =>
/^\w+$/.test(name) ? name : `'${name.replace(/(['\\])/g, '\\$1')}'`;
/^\w+$/.test(name) ? name : `'${name.replaceAll(/(['\\])/g, '\\$1')}'`;
10 changes: 5 additions & 5 deletions packages/typescript-states/src/generate/comments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ export const generateDescriptionComment = (
const deprecationReason = deprecated === true ? '' : deprecated || null;

return description
? `/**\n${indent} * ${description.replace(/\n/g, `\n${indent} * `)}${
? `/**\n${indent} * ${description.replaceAll('\n', `\n${indent} * `)}${
deprecationReason
? `\n${indent} *\n${indent} * @deprecated ${deprecationReason.replace(
/\n/g,
? `\n${indent} *\n${indent} * @deprecated ${deprecationReason.replaceAll(
'\n',
`\n${indent} * `,
)}`
: ''
}\n${indent} */\n${indent}`
: deprecationReason
? `/**\n${indent} * @deprecated ${deprecationReason.replace(
/\n/g,
? `/**\n${indent} * @deprecated ${deprecationReason.replaceAll(
'\n',
`\n${indent} * `,
)}\n${indent} */\n${indent}`
: '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export const generateMemberExpression = (
const generatePropertyExpression = (expression: PropertyExpression): string =>
/^\w+$/.test(expression.name)
? `.${expression.name}`
: `['${expression.name.replace(/(['\\])/g, '\\$1')}']`;
: `['${expression.name.replaceAll(/(['\\])/g, '\\$1')}']`;
5 changes: 4 additions & 1 deletion packages/typescript-states/src/generate/state/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export const generateStateOptionalRelations = (
item.as.entity,
)}${item.as.list ? ', list: true' : ''}${
item.type === 'RelationField' && item.referenceField
? `, reference: '${item.referenceField.replace(/('|\\)/g, '\\$1')}'`
? `, reference: '${item.referenceField.replaceAll(
/('|\\)/g,
'\\$1',
)}'`
: ''
} } as const,`,
)
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-states/src/generate/state/indexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const generateStateOptionalIndexes = (
`\n${indent} ${
/^\w+$/.test(index.name)
? index.name
: `'${index.name.replace(/['\\]/g, '\\$1')}'`
: `'${index.name.replaceAll(/['\\]/g, '\\$1')}'`
}: { fields: [${Object.entries(index.fields)
.map(([field, sort]) => `'${sort === 'asc' ? `+` : '-'}${field}'`)
.join(', ')}]${index.unique ? ', unique: true' : ''} } as const,`,
Expand Down
2 changes: 1 addition & 1 deletion plugins/vscode-states/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
},
"devDependencies": {
"@vscode/vsce": "^2.19.0"
"@vscode/vsce": "^2.21.1"
}
}
Loading

0 comments on commit 2bd1448

Please sign in to comment.