eslint-plugin-react-hooks-extra
Advanced tools
Comparing version 1.5.5 to 1.5.6-beta.0
@@ -18,3 +18,3 @@ 'use strict'; | ||
var name = "eslint-plugin-react-hooks-extra"; | ||
var version = "1.5.5"; | ||
var version = "1.5.6-beta.0"; | ||
var createRule = shared.createRuleForPlugin("hooks-extra"); | ||
@@ -60,3 +60,3 @@ | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Function.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Function.js | ||
var Function_exports = {}; | ||
@@ -236,7 +236,8 @@ __export(Function_exports, { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/version.js | ||
var moduleVersion = "2.3.6"; | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/internal/version.js | ||
var moduleVersion = "2.4.0"; | ||
var getCurrentVersion = () => moduleVersion; | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/GlobalValue.js | ||
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${moduleVersion}`); | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/GlobalValue.js | ||
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`); | ||
if (!(globalStoreId in globalThis)) { | ||
@@ -253,3 +254,3 @@ globalThis[globalStoreId] = /* @__PURE__ */ new Map(); | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Predicate.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Predicate.js | ||
var isFunction2 = isFunction; | ||
@@ -261,3 +262,3 @@ var isRecordOrArray = (input) => typeof input === "object" && input !== null; | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Utils.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Utils.js | ||
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind"); | ||
@@ -482,3 +483,3 @@ var GenKindImpl = class { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Hash.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Hash.js | ||
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap()); | ||
@@ -545,4 +546,27 @@ var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom()); | ||
}; | ||
var cached = function() { | ||
if (arguments.length === 1) { | ||
const self2 = arguments[0]; | ||
return function(hash3) { | ||
Object.defineProperty(self2, symbol, { | ||
value() { | ||
return hash3; | ||
}, | ||
enumerable: false | ||
}); | ||
return hash3; | ||
}; | ||
} | ||
const self = arguments[0]; | ||
const hash2 = arguments[1]; | ||
Object.defineProperty(self, symbol, { | ||
value() { | ||
return hash2; | ||
}, | ||
enumerable: false | ||
}); | ||
return hash2; | ||
}; | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Equal.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Equal.js | ||
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal"); | ||
@@ -571,8 +595,8 @@ function equals() { | ||
var isEqual = (u2) => hasProperty(u2, symbol2); | ||
var equivalence = () => (self, that) => equals(self, that); | ||
var equivalence = () => equals; | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Equivalence.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Equivalence.js | ||
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that); | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Inspectable.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Inspectable.js | ||
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"); | ||
@@ -589,3 +613,3 @@ var toJSON = (x2) => { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Option.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Option.js | ||
var Option_exports = {}; | ||
@@ -652,3 +676,3 @@ __export(Option_exports, { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Pipeable.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Pipeable.js | ||
var pipeArguments = (self, args) => { | ||
@@ -684,3 +708,3 @@ switch (args.length) { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/effectable.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/internal/effectable.js | ||
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect"); | ||
@@ -697,3 +721,3 @@ var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream"); | ||
_A: (_) => _, | ||
_V: moduleVersion | ||
_V: /* @__PURE__ */ getCurrentVersion() | ||
}; | ||
@@ -737,3 +761,3 @@ var sinkVariance = { | ||
[symbol]() { | ||
return random(this); | ||
return cached(this, random(this)); | ||
}, | ||
@@ -745,3 +769,3 @@ pipe() { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/option.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/internal/option.js | ||
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option"); | ||
@@ -767,3 +791,3 @@ var CommonProto = { | ||
[symbol]() { | ||
return combine(hash(this._tag))(hash(this.value)); | ||
return cached(this, combine(hash(this._tag))(hash(this.value))); | ||
}, | ||
@@ -778,2 +802,3 @@ toJSON() { | ||
}); | ||
var NoneHash = /* @__PURE__ */ hash("None"); | ||
var NoneProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(CommonProto), { | ||
@@ -786,3 +811,3 @@ _tag: "None", | ||
[symbol]() { | ||
return combine(hash(this._tag)); | ||
return NoneHash; | ||
}, | ||
@@ -806,3 +831,3 @@ toJSON() { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/internal/either.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/internal/either.js | ||
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either"); | ||
@@ -812,3 +837,3 @@ var CommonProto2 = { | ||
[TypeId2]: { | ||
_A: (_) => _ | ||
_R: (_) => _ | ||
}, | ||
@@ -872,6 +897,6 @@ [NodeInspectSymbol]() { | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Order.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Order.js | ||
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that); | ||
// ../../../node_modules/.pnpm/effect@2.3.6/node_modules/effect/dist/esm/Option.js | ||
// ../../../node_modules/.pnpm/effect@2.4.0/node_modules/effect/dist/esm/Option.js | ||
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option"); | ||
@@ -878,0 +903,0 @@ var none2 = () => none; |
{ | ||
"name": "eslint-plugin-react-hooks-extra", | ||
"version": "1.5.5", | ||
"version": "1.5.6-beta.0", | ||
"description": "ESLint React's ESLint plugin for React Hooks related rules.", | ||
@@ -38,21 +38,21 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"dependencies": { | ||
"@typescript-eslint/parser": ">=7.0.1", | ||
"@typescript-eslint/scope-manager": ">=7.0.1", | ||
"@typescript-eslint/type-utils": ">=7.0.1", | ||
"@typescript-eslint/types": ">=7.0.1", | ||
"@typescript-eslint/utils": ">=7.0.1", | ||
"string-ts": "2.0.0", | ||
"@eslint-react/ast": "1.5.5", | ||
"@eslint-react/jsx": "1.5.5", | ||
"@eslint-react/shared": "1.5.5", | ||
"@eslint-react/tools": "1.5.5", | ||
"@eslint-react/types": "1.5.5", | ||
"@eslint-react/var": "1.5.5", | ||
"@eslint-react/core": "1.5.5" | ||
"@eslint-react/ast": "1.5.6-next.0", | ||
"@eslint-react/core": "1.5.6-next.0", | ||
"@eslint-react/jsx": "1.5.6-next.0", | ||
"@eslint-react/shared": "1.5.6-next.0", | ||
"@eslint-react/tools": "1.5.6-next.0", | ||
"@eslint-react/types": "1.5.6-next.0", | ||
"@eslint-react/var": "1.5.6-next.0", | ||
"@typescript-eslint/parser": ">=7.1.0", | ||
"@typescript-eslint/scope-manager": ">=7.1.0", | ||
"@typescript-eslint/type-utils": ">=7.1.0", | ||
"@typescript-eslint/types": ">=7.1.0", | ||
"@typescript-eslint/utils": ">=7.1.0", | ||
"string-ts": "2.0.0" | ||
}, | ||
"devDependencies": { | ||
"effect": "2.3.6" | ||
"effect": "2.4.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=8.56.0", | ||
"eslint": ">=8.57.0", | ||
"typescript": ">=5.3.3" | ||
@@ -59,0 +59,0 @@ }, |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
90221
2730
1
+ Added@eslint-react/ast@1.5.6-next.0(transitive)
+ Added@eslint-react/core@1.5.6-next.0(transitive)
+ Added@eslint-react/jsx@1.5.6-next.0(transitive)
+ Added@eslint-react/shared@1.5.6-next.0(transitive)
+ Added@eslint-react/tools@1.5.6-next.0(transitive)
+ Added@eslint-react/types@1.5.6-next.0(transitive)
+ Added@eslint-react/var@1.5.6-next.0(transitive)
- Removed@eslint-react/ast@1.5.5(transitive)
- Removed@eslint-react/core@1.5.5(transitive)
- Removed@eslint-react/jsx@1.5.5(transitive)
- Removed@eslint-react/shared@1.5.5(transitive)
- Removed@eslint-react/tools@1.5.5(transitive)
- Removed@eslint-react/types@1.5.5(transitive)
- Removed@eslint-react/var@1.5.5(transitive)