Skip to content

Commit 1d4e12c

Browse files
pkg: Update validation packages (#3295)
* pkg: Update validation packages * internal: Formatting --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathaniel Tucker <[email protected]>
1 parent febac62 commit 1d4e12c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+131
-150
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"devDependencies": {
4848
"@anansi/babel-preset": "6.0.9",
4949
"@anansi/browserslist-config": "1.5.1",
50-
"@anansi/eslint-plugin": "1.0.17",
50+
"@anansi/eslint-plugin": "1.0.18",
5151
"@anansi/jest-preset": "0.11.8",
5252
"@babel/cli": "7.25.9",
5353
"@babel/core": "7.26.0",
@@ -62,7 +62,7 @@
6262
"@react-navigation/native-stack": "^7.0.0",
6363
"@testing-library/react": "16.0.1",
6464
"@testing-library/react-hooks": "8.0.1",
65-
"@testing-library/react-native": "12.8.1",
65+
"@testing-library/react-native": "12.9.0",
6666
"@types/jest": "29.5.14",
6767
"@types/node": "22.10.1",
6868
"@types/react": "npm:[email protected]",
@@ -77,7 +77,7 @@
7777
"cpy-cli": "5.0.0",
7878
"cross-fetch": "^4.0.0",
7979
"downlevel-dts": "^0.10.0",
80-
"eslint": "9.15.0",
80+
"eslint": "9.16.0",
8181
"globals": "^15.9.0",
8282
"ignore-styles": "^5.0.1",
8383
"jest": "29.7.0",
@@ -86,7 +86,7 @@
8686
"nock": "13.3.1",
8787
"node-fetch": "^3.3.0",
8888
"npm-run-all": "^4.1.5",
89-
"prettier": "3.3.3",
89+
"prettier": "3.4.1",
9090
"react": "^19.0.0-rc.1",
9191
"react-dom": "^19.0.0-rc.1",
9292
"react-native": "0.76.3",

packages/core/src/controller/Controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ export default class Controller<
464464
}
465465

466466
// second argument is false if any entities are missing
467-
// eslint-disable-next-line prefer-const
467+
468468
const { data, paths } = this.memo.denormalize(
469469
schema,
470470
input,

packages/core/src/manager/DevtoolsManager.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-inner-declarations */
21
import type { DevToolsConfig } from './devtoolsTypes.js';
32
import type { Controller, EndpointInterface } from '../index.js';
43
import type { Middleware } from '../middlewareTypes.js';
@@ -90,10 +89,10 @@ if (process.env.NODE_ENV !== 'production') {
9089
*/
9190
export default class DevToolsManager implements Manager {
9291
declare middleware: Middleware;
93-
protected declare devTools: undefined | any;
92+
declare protected devTools: undefined | any;
9493
protected started = false;
9594
protected actions: [ActionTypes, State<unknown>][] = [];
96-
protected declare controller: Controller;
95+
declare protected controller: Controller;
9796
declare skipLogging?: (action: ActionTypes) => boolean;
9897
maxBufferLength = 100;
9998

packages/core/src/manager/PollingSubscription.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ import type { SubscribeAction } from '../types.js';
1414
* @see https://dataclient.io/docs/api/PollingSubscription
1515
*/
1616
export default class PollingSubscription implements Subscription {
17-
protected declare readonly endpoint: EndpointInterface;
18-
protected declare readonly args: readonly any[];
19-
protected declare readonly key: string;
20-
protected declare frequency: number;
17+
declare protected readonly endpoint: EndpointInterface;
18+
declare protected readonly args: readonly any[];
19+
declare protected readonly key: string;
20+
declare protected frequency: number;
2121
protected frequencyHistogram: Map<number, number> = new Map();
22-
protected declare controller: Controller;
23-
protected declare intervalId?: ReturnType<typeof setInterval>;
24-
protected declare lastIntervalId?: ReturnType<typeof setInterval>;
25-
protected declare startId?: ReturnType<typeof setTimeout>;
26-
private declare connectionListener: ConnectionListener;
22+
declare protected controller: Controller;
23+
declare protected intervalId?: ReturnType<typeof setInterval>;
24+
declare protected lastIntervalId?: ReturnType<typeof setInterval>;
25+
declare protected startId?: ReturnType<typeof setTimeout>;
26+
declare private connectionListener: ConnectionListener;
2727

2828
constructor(
2929
action: Omit<SubscribeAction, 'type'>,

packages/core/src/manager/SubscriptionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class SubscriptionManager<
4040
[key: string]: InstanceType<S>;
4141
} = {};
4242

43-
protected declare readonly Subscription: S;
43+
declare protected readonly Subscription: S;
4444
protected controller: Controller = new Controller();
4545

4646
constructor(Subscription: S) {

packages/endpoint/src/__tests__/endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Entity from '../schemas/Entity';
77
describe.each([true, false])(`Endpoint (CSP %s)`, mockCSP => {
88
jest.resetModules();
99
jest.mock('../CSP', () => ({ CSP: mockCSP }));
10-
// eslint-disable-next-line @typescript-eslint/no-var-requires
10+
1111
const Endpoint: typeof TEndpoint = require('../endpoint').default;
1212
afterAll(() => {
1313
jest.clearAllMocks();

packages/endpoint/src/__tests__/validateRequired.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import validateRequired from '../validateRequired';
99
let dateSpy: jest.SpyInstance;
1010
beforeAll(() => {
1111
dateSpy = jest
12-
// eslint-disable-next-line no-undef
12+
1313
.spyOn(global.Date, 'now')
1414
.mockImplementation(() => new Date('2019-05-14T11:01:58.135Z').valueOf());
1515
});

packages/endpoint/src/schemas/Collection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export default class CollectionSchema<
2424
Args extends any[] = DefaultArgs,
2525
Parent = any,
2626
> {
27-
protected declare nestKey: (parent: any, key: string) => Record<string, any>;
27+
declare protected nestKey: (parent: any, key: string) => Record<string, any>;
2828

29-
protected declare argsKey?: (...args: any) => Record<string, any>;
29+
declare protected argsKey?: (...args: any) => Record<string, any>;
3030

3131
declare readonly schema: S;
3232

packages/endpoint/src/schemas/Entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default abstract class Entity extends EntityMixin(EmptyBase) {
2222
*
2323
* Note: this only applies to non-nested members.
2424
*/
25-
protected declare static automaticValidation?: 'warn' | 'silent';
25+
declare protected static automaticValidation?: 'warn' | 'silent';
2626

2727
/** Factory method to convert from Plain JS Objects.
2828
*

packages/endpoint/src/schemas/Invalidate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
21
import type { EntityInterface, SchemaSimple } from '../interface.js';
32
import type { AbstractInstanceType } from '../normal.js';
43
import { INVALID } from '../special.js';
@@ -16,7 +15,7 @@ export default class Invalidate<
1615
},
1716
> implements SchemaSimple
1817
{
19-
protected declare _entity: E;
18+
declare protected _entity: E;
2019

2120
/**
2221
* Marks entity as Invalid.

0 commit comments

Comments
 (0)