@worldcoin/idkit 4.0.7 → 4.0.8

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/README.md CHANGED
@@ -21,6 +21,7 @@ npm install @worldcoin/idkit
21
21
  import {
22
22
  useIDKitRequest,
23
23
  orbLegacy,
24
+ deviceLegacy,
24
25
  selfieCheckLegacy,
25
26
  } from "@worldcoin/idkit";
26
27
 
@@ -43,7 +44,7 @@ function Example() {
43
44
  }
44
45
  ```
45
46
 
46
- Use `selfieCheckLegacy({ signal })` for selfie-check preset requests.
47
+ Use `deviceLegacy({ signal })` for orb-or-device legacy requests and `selfieCheckLegacy({ signal })` for selfie-check preset requests.
47
48
 
48
49
  ```tsx
49
50
  import type { IDKitRequestHookConfig } from "@worldcoin/idkit";
package/dist/index.cjs CHANGED
@@ -1731,6 +1731,10 @@ Object.defineProperty(exports, "IDKitErrorCodes", {
1731
1731
  enumerable: true,
1732
1732
  get: function () { return idkitCore.IDKitErrorCodes; }
1733
1733
  });
1734
+ Object.defineProperty(exports, "deviceLegacy", {
1735
+ enumerable: true,
1736
+ get: function () { return idkitCore.deviceLegacy; }
1737
+ });
1734
1738
  Object.defineProperty(exports, "documentLegacy", {
1735
1739
  enumerable: true,
1736
1740
  get: function () { return idkitCore.documentLegacy; }
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDKitErrorCodes, IDKitRequestConfig, Preset, IDKitResult } from '@worldcoin/idkit-core';
2
- export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, signRequest } from '@worldcoin/idkit-core';
2
+ export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, deviceLegacy, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, signRequest } from '@worldcoin/idkit-core';
3
3
  import { ReactElement } from 'react';
4
4
 
5
5
  type PollingConfig = {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDKitErrorCodes, IDKitRequestConfig, Preset, IDKitResult } from '@worldcoin/idkit-core';
2
- export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, signRequest } from '@worldcoin/idkit-core';
2
+ export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, deviceLegacy, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, signRequest } from '@worldcoin/idkit-core';
3
3
  import { ReactElement } from 'react';
4
4
 
5
5
  type PollingConfig = {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDKitErrorCodes, IDKit } from '@worldcoin/idkit-core';
2
- export { IDKit, IDKitErrorCodes, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, signRequest } from '@worldcoin/idkit-core';
2
+ export { IDKit, IDKitErrorCodes, deviceLegacy, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, signRequest } from '@worldcoin/idkit-core';
3
3
  import { memo, useMemo, useState, useRef, useEffect, useCallback } from 'react';
4
4
  import { createPortal } from 'react-dom';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldcoin/idkit",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "description": "React SDK for World ID built on @worldcoin/idkit-core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -52,7 +52,7 @@
52
52
  "react-dom": ">=18"
53
53
  },
54
54
  "dependencies": {
55
- "@worldcoin/idkit-core": "4.0.10",
55
+ "@worldcoin/idkit-core": "4.0.11",
56
56
  "qrcode": "^1.5.4"
57
57
  },
58
58
  "devDependencies": {