Socket
Socket
Sign inDemoInstall

rq-state

Package Overview
Dependencies
29
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.11 to 0.2.12

dist/rq-state.cjs.development.js

7

dist/index.d.ts

@@ -1,2 +0,1 @@

/// <reference types="react" />
export * from './state';

@@ -6,7 +5,3 @@ export * from './StateProvider';

export * from './types';
export * from './plugins/updateBailout';
export * from './plugins/partialUpdates';
export * from './plugins/updateBailout';
export * from './plugins/persist';
export * from './plugins/persist/store';
export * from './plugins/persist/WithPersistState';
export declare const Thing: () => JSX.Element;

@@ -5,5 +5,5 @@

if (process.env.NODE_ENV === 'production') {
module.exports = require('./index.cjs.production.min.js')
module.exports = require('./rq-state.cjs.production.min.js')
} else {
module.exports = require('./index.cjs.development.js')
module.exports = require('./rq-state.cjs.development.js')
}
import { ReactNode } from 'react';
import { AnyObject } from './types.private';
import { AnyObject } from './types';
export declare function useInitialState(key: string): any;

@@ -4,0 +4,0 @@ declare type StateProviderProps = {

import { UseQueryOptions } from 'react-query';
export declare type AnyObject = {
[key: string]: any;
};
export declare type StateQueryOptions<K extends string> = Omit<UseQueryOptions<unknown, unknown, unknown, K>, 'queryKey' | 'queryFn'> | undefined;

@@ -3,0 +6,0 @@ export declare type StatePlugin = {

{
"name": "rq-state",
"description": "Quick and light global state management built on top of react-query",
"version": "0.2.11",
"version": "0.2.12",
"license": "MIT",
"author": "Ifeanyi Isitor",
"author": "Ifeanyi Isitor <ifeanyi.isitor@flute.io>",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"module": "dist/rq-state.esm.js",
"typings": "dist/index.d.ts",
"exports": {
"./*": "./dist/*.cjs.development.js"
},
"typesVersions": {
"*": {
"*": [
"dist/*.d.ts"
]
}
},
"__exports": {
".": "./dist/index.cjs.development.js",
"./state": "./dist/state.cjs.development.js",
"./StateProvider": "./dist/StateProvider.cjs.development.js",
"./LocalStateRoot": "./dist/LocalStateRoot.cjs.development.js",
"./plugins/partialUpdates": "./dist/plugins/partialUpdates.cjs.development.js"
},
"__typesVersions": {
"*": {
"state": [
"dist/state.state.d.ts"
],
"StateProvider": [
"dist/StateProvider.d.ts"
],
"LocalStateRoot": [
"dist/LocalStateRoot.d.ts"
],
"plugins/partialUpdates": [
"dist/plugins/partialUpdates.d.ts"
]
}
},
"sideEffects": false,
"files": [

@@ -47,3 +14,2 @@ "dist",

],
"sideEffects": false,
"repository": {

@@ -63,10 +29,8 @@ "type": "git",

"analyze": "size-limit --why",
"build": "./scripts/build.sh",
"lint": "dts lint",
"prepare": "./scripts/build.sh",
"build": "dts build",
"build:watch": "dts watch",
"lint": "dts lint src",
"prepare": "dts build",
"size": "size-limit",
"start": "dts watch",
"test": "dts test --passWithNoTests",
"format": "prettier --write .",
"check:format": "prettier --check ."
"test": "dts test --passWithNoTests"
},

@@ -90,7 +54,7 @@ "husky": {

{
"path": "dist/index.cjs.production.min.js",
"path": "dist/rq-state.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/index.esm.js",
"path": "dist/rq-state.esm.js",
"limit": "10 KB"

@@ -105,3 +69,3 @@ }

"@types/react-dom": "^18.0.1",
"dts-cli": "^1.5.0",
"@types/shallowequal": "^1.1.1",
"husky": "^7.0.4",

@@ -116,5 +80,4 @@ "react": "^18.0.0",

"dependencies": {
"fast-equals": "^3.0.1",
"pascal-case": "^3.1.2"
"shallowequal": "^1.1.0"
}
}
import { UseQueryOptions } from 'react-query'
export type AnyObject = {
[key: string]: any
}
export type StateQueryOptions<K extends string> =

@@ -4,0 +8,0 @@ | Omit<UseQueryOptions<unknown, unknown, unknown, K>, 'queryKey' | 'queryFn'>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc