@permaweb/libs 0.0.36 → 0.0.37

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.
@@ -6,14 +6,16 @@ export declare const AO: {
6
6
  asset: string;
7
7
  collection: string;
8
8
  collectionActivity: string;
9
- profile: string;
10
- zone: string;
9
+ zone: {
10
+ id: string;
11
+ version: string;
12
+ };
11
13
  };
12
14
  collectionRegistry: string;
13
15
  profileRegistry: string;
14
16
  };
15
17
  export declare const HB: {
16
- node: string;
18
+ defaultRouter: string;
17
19
  };
18
20
  export declare const CONTENT_TYPES: {
19
21
  [key: string]: {
@@ -2,6 +2,7 @@ import * as Common from './common/index.ts';
2
2
  import * as Helpers from './helpers/index.ts';
3
3
  import * as Services from './services/index.ts';
4
4
  export * as Types from './helpers/types.ts';
5
+ export declare const CurrentZoneVersion: string;
5
6
  declare function init(deps: Helpers.DependencyType): {
6
7
  createZone: (args: {
7
8
  data?: any;
@@ -23,8 +24,14 @@ declare function init(deps: Helpers.DependencyType): {
23
24
  zoneToJoinId: string;
24
25
  path?: string;
25
26
  }, zoneId: string) => Promise<string | null>;
27
+ updateZoneVersion: (args: {
28
+ zoneId: string;
29
+ }) => Promise<string | null>;
26
30
  createProfile: (args: Helpers.ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
27
31
  updateProfile: (args: Helpers.ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
32
+ updateProfileVersion: (args: {
33
+ profileId: string;
34
+ }) => Promise<string | null>;
28
35
  getProfileById: (profileId: string) => Promise<Helpers.ProfileType | null>;
29
36
  getProfileByWalletAddress: (walletAddress: string) => Promise<(Helpers.ProfileType & any) | null>;
30
37
  createAtomicAsset: (args: Helpers.AssetCreateArgsType, callback?: (status: any) => void) => Promise<string>;
@@ -68,7 +75,6 @@ declare function init(deps: Helpers.DependencyType): {
68
75
  createProcess: (args: Helpers.ProcessCreateType, statusCB?: (status: any) => void) => Promise<string>;
69
76
  readProcess: (args: Helpers.MessageSendType) => Promise<any>;
70
77
  sendMessage: (args: Helpers.MessageSendType) => Promise<string>;
71
- waitForProcess: typeof Common.waitForProcess;
72
78
  mapFromProcessCase: typeof Helpers.mapFromProcessCase;
73
79
  mapToProcessCase: typeof Helpers.mapToProcessCase;
74
80
  };
@@ -1,5 +1,8 @@
1
1
  import { DependencyType, ProfileArgsType, ProfileType } from '../helpers/types.ts';
2
2
  export declare function createProfileWith(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
3
3
  export declare function updateProfileWith(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
4
+ export declare function updateProfileVersionWith(deps: DependencyType): (args: {
5
+ profileId: string;
6
+ }) => Promise<string | null>;
4
7
  export declare function getProfileByIdWith(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
5
8
  export declare function getProfileByWalletAddressWith(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
@@ -8,7 +8,6 @@ export declare function addToZoneWith(deps: DependencyType): (args: {
8
8
  path: string;
9
9
  data: object;
10
10
  }, zoneId: string) => Promise<string | null>;
11
- export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
12
11
  export declare function setZoneRolesWith(deps: DependencyType): (args: {
13
12
  granteeId: string;
14
13
  roles: string[];
@@ -19,3 +18,7 @@ export declare function joinZoneWith(deps: DependencyType): (args: {
19
18
  zoneToJoinId: string;
20
19
  path?: string;
21
20
  }, zoneId: string) => Promise<string | null>;
21
+ export declare function updateZoneVersionWith(deps: DependencyType): (args: {
22
+ zoneId: string;
23
+ }) => Promise<string | null>;
24
+ export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permaweb/libs",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -41,33 +41,23 @@
41
41
  "format": "eslint --fix . && npx prettier --write .",
42
42
  "build": "node build.js"
43
43
  },
44
- "dependencies": {
45
- "@ardrive/turbo-sdk": "^1.23.1",
46
- "@permaweb/arx": "^1.0.0",
47
- "arweave": "^1.15.5",
48
- "buffer": "^6.0.3",
49
- "crypto-browserify": "^3.12.1",
50
- "esbuild-plugin-alias": "^0.2.1",
51
- "esbuild-plugin-polyfill-node": "^0.3.0",
52
- "os-browserify": "^0.3.0",
53
- "process": "^0.11.10",
54
- "stream-browserify": "^3.0.0",
55
- "tsc-alias": "^1.8.10",
56
- "web-streams-polyfill": "^4.1.0"
57
- },
58
44
  "devDependencies": {
59
- "@types/async-retry": "^1.4.9",
60
45
  "@types/node": "^22.10.4",
61
46
  "@typescript-eslint/eslint-plugin": "^5.57.1",
62
47
  "@typescript-eslint/parser": "^5.57.1",
48
+ "crypto-browserify": "^3.12.1",
63
49
  "esbuild": "^0.24.2",
50
+ "esbuild-plugin-alias": "^0.2.1",
64
51
  "esbuild-plugin-d.ts": "^1.3.1",
52
+ "esbuild-plugin-polyfill-node": "^0.3.0",
65
53
  "eslint": "^8.35.0",
66
54
  "eslint-plugin-import": "^2.27.5",
67
55
  "eslint-plugin-simple-import-sort": "^10.0.0",
68
- "ts-loader": "^9.5.1",
56
+ "os-browserify": "^0.3.0",
57
+ "process": "^0.11.10",
58
+ "stream-browserify": "^3.0.0",
59
+ "tsc-alias": "^1.8.10",
69
60
  "typescript": "^5.7.2",
70
- "webpack": "^5.97.1",
71
- "webpack-cli": "^6.0.1"
61
+ "web-streams-polyfill": "^4.1.0"
72
62
  }
73
63
  }