react-usectx 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { useCtx as default } from "./context";
2
- export { getCtx, useReducer, updateCtx } from "./context";
1
+ export { useCtx as default, useCtx as useGlobalState } from "./context";
2
+ export { getCtx, useReducer, updateCtx, getCtx as getGlobalState, useReducer as useGlobalReducer, updateCtx as updateGlobalState } from "./context";
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "react-usectx",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/alexanderfcd/React-Context.git"
9
9
  },
10
- "keywords": [
10
+ "keywords": [
11
11
  "react",
12
12
  "context",
13
13
  "state",
@@ -37,4 +37,4 @@
37
37
  "undici": "^7.11.0",
38
38
  "undici-types": "^7.11.0"
39
39
  }
40
- }
40
+ }
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { useCtx as default } from "./context";
2
- export { getCtx, useReducer, updateCtx } from "./context";
1
+ export { useCtx as default, useCtx as useGlobalState } from "./context";
2
+ export { getCtx, useReducer, updateCtx, getCtx as getGlobalState, useReducer as useGlobalReducer, updateCtx as updateGlobalState } from "./context";