Skip to content

Commit

Permalink
Rename package scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
robknight committed Sep 14, 2024
1 parent 70e92e9 commit 9412aab
Show file tree
Hide file tree
Showing 35 changed files with 83 additions and 83 deletions.
8 changes: 4 additions & 4 deletions apps/client-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"preview": "vite preview"
},
"dependencies": {
"@parcnet/client-helpers": "workspace:*",
"@parcnet/client-rpc": "workspace:*",
"@parcnet/podspec": "workspace:*",
"@parcnet-js/client-helpers": "workspace:*",
"@parcnet-js/client-rpc": "workspace:*",
"@parcnet-js/podspec": "workspace:*",
"@pcd/gpc": "0.0.6",
"@pcd/pod": "0.1.5",
"@pcd/proto-pod-gpc-artifacts": "^0.5.0",
Expand All @@ -23,7 +23,7 @@
"vite-plugin-node-polyfills": "^0.22.0"
},
"devDependencies": {
"@parcnet/eslint-config": "workspace:*",
"@parcnet-js/eslint-config": "workspace:*",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
Expand Down
6 changes: 3 additions & 3 deletions apps/client-web/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { listen } from "@parcnet/client-helpers/connection/iframe";
import { Zapp } from "@parcnet/client-rpc";
import { EntriesSchema, PODSchema, proofRequest } from "@parcnet/podspec";
import { listen } from "@parcnet-js/client-helpers/connection/iframe";
import { Zapp } from "@parcnet-js/client-rpc";
import { EntriesSchema, PODSchema, proofRequest } from "@parcnet-js/podspec";
import { gpcProve } from "@pcd/gpc";
import { POD, POD_INT_MAX, POD_INT_MIN } from "@pcd/pod";
import {
Expand Down
4 changes: 2 additions & 2 deletions apps/client-web/src/client/client.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ConnectorAdvice } from "@parcnet/client-helpers";
import { ConnectorAdvice } from "@parcnet-js/client-helpers";
import {
ParcnetGPCRPC,
ParcnetIdentityRPC,
ParcnetPODRPC,
ParcnetRPC
} from "@parcnet/client-rpc";
} from "@parcnet-js/client-rpc";
import { Identity } from "@semaphore-protocol/identity";
import { Dispatch } from "react";
import { ClientAction } from "../state.js";
Expand Down
6 changes: 3 additions & 3 deletions apps/client-web/src/client/gpc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConnectorAdvice } from "@parcnet/client-helpers";
import { ParcnetGPCRPC, ProveResult } from "@parcnet/client-rpc";
import { PodspecProofRequest, proofRequest } from "@parcnet/podspec";
import { ConnectorAdvice } from "@parcnet-js/client-helpers";
import { ParcnetGPCRPC, ProveResult } from "@parcnet-js/client-rpc";
import { PodspecProofRequest, proofRequest } from "@parcnet-js/podspec";
import {
GPCBoundConfig,
GPCProof,
Expand Down
2 changes: 1 addition & 1 deletion apps/client-web/src/client/identity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParcnetIdentityRPC } from "@parcnet/client-rpc";
import { ParcnetIdentityRPC } from "@parcnet-js/client-rpc";

export class ParcnetIdentityProcessor implements ParcnetIdentityRPC {
async getSemaphoreV3Commitment(): Promise<bigint> {
Expand Down
2 changes: 1 addition & 1 deletion apps/client-web/src/client/pod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParcnetPODRPC, PODQuery } from "@parcnet/client-rpc";
import { ParcnetPODRPC, PODQuery } from "@parcnet-js/client-rpc";
import { encodePrivateKey, POD, PODEntries } from "@pcd/pod";
import { Identity } from "@semaphore-protocol/identity";
import { PODCollection } from "./pod_collection.js";
Expand Down
2 changes: 1 addition & 1 deletion apps/client-web/src/client/pod_collection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as p from "@parcnet/podspec";
import * as p from "@parcnet-js/podspec";
import { POD } from "@pcd/pod";
import { EventEmitter } from "eventemitter3";

Expand Down
6 changes: 3 additions & 3 deletions apps/client-web/src/client/query_subscriptions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SubscriptionUpdateResult } from "@parcnet/client-rpc";
import * as p from "@parcnet/podspec";
import { EntriesSchema, PODSchema, PodSpec } from "@parcnet/podspec";
import { SubscriptionUpdateResult } from "@parcnet-js/client-rpc";
import * as p from "@parcnet-js/podspec";
import { EntriesSchema, PODSchema, PodSpec } from "@parcnet-js/podspec";
import { EventEmitter } from "eventemitter3";
import { PODCollection } from "./pod_collection.js";

Expand Down
6 changes: 3 additions & 3 deletions apps/client-web/src/state.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConnectorAdvice } from "@parcnet/client-helpers";
import { ProveResult, Zapp } from "@parcnet/client-rpc";
import { PodspecProofRequest } from "@parcnet/podspec";
import { ConnectorAdvice } from "@parcnet-js/client-helpers";
import { ProveResult, Zapp } from "@parcnet-js/client-rpc";
import { PodspecProofRequest } from "@parcnet-js/podspec";
import { POD } from "@pcd/pod";
import { Identity } from "@semaphore-protocol/identity";

Expand Down
6 changes: 3 additions & 3 deletions examples/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@parcnet/app-connector": "workspace:*",
"@parcnet/podspec": "workspace:*",
"@parcnet-js/app-connector": "workspace:*",
"@parcnet-js/podspec": "workspace:*",
"@pcd/pod": "0.1.5",
"json-bigint": "^1.0.0",
"lodash": "^4.17.21",
Expand All @@ -21,7 +21,7 @@
"vite-plugin-node-polyfills": "^0.22.0"
},
"devDependencies": {
"@parcnet/eslint-config": "workspace:*",
"@parcnet-js/eslint-config": "workspace:*",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.14",
"@types/json-bigint": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/test-app/src/apis/GPC.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PodspecProofRequest } from "@parcnet/podspec";
import { PodspecProofRequest } from "@parcnet-js/podspec";
import JSONBig from "json-bigint";
import { ReactNode, useState } from "react";
import { ProveResult } from "../../../../packages/client-rpc/src";
Expand Down
4 changes: 2 additions & 2 deletions examples/test-app/src/apis/PODSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ParcnetAPI, Subscription } from "@parcnet/app-connector";
import * as p from "@parcnet/podspec";
import { ParcnetAPI, Subscription } from "@parcnet-js/app-connector";
import * as p from "@parcnet-js/podspec";
import { POD, POD_INT_MAX, POD_INT_MIN, PODEntries, PODValue } from "@pcd/pod";
import JSONBig from "json-bigint";
import {
Expand Down
2 changes: 1 addition & 1 deletion examples/test-app/src/hooks/useParcnetClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
connectWebsocket,
ParcnetAPI,
Zapp
} from "@parcnet/app-connector";
} from "@parcnet-js/app-connector";
import {
createContext,
ReactNode,
Expand Down
10 changes: 5 additions & 5 deletions packages/app-connector/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@parcnet/app-connector",
"name": "@parcnet-js/app-connector",
"private": false,
"version": "0.0.2",
"license": "GPL-3.0-or-later",
Expand All @@ -19,17 +19,17 @@
],
"dependencies": {
"@brenoroosevelt/toast": "^2.0.3",
"@parcnet/client-rpc": "workspace:*",
"@parcnet/podspec": "workspace:*",
"@parcnet-js/client-rpc": "workspace:*",
"@parcnet-js/podspec": "workspace:*",
"@pcd/gpc": "0.0.6",
"@pcd/pod": "0.1.5",
"eventemitter3": "^5.0.1",
"json-bigint": "^1.0.0",
"zod": "^3.22.4"
},
"devDependencies": {
"@parcnet/eslint-config": "workspace:*",
"@parcnet/typescript-config": "workspace:*",
"@parcnet-js/eslint-config": "workspace:*",
"@parcnet-js/typescript-config": "workspace:*",
"@types/json-bigint": "^1.0.1",
"@types/node": "^22.5.4",
"tsup": "^8.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/app-connector/src/adapters/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
InitializationMessageType,
RPCMessage,
Zapp
} from "@parcnet/client-rpc";
} from "@parcnet-js/client-rpc";
import { ParcnetAPI } from "../api_wrapper.js";
import { ParcnetRPCConnector } from "../rpc_client.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/app-connector/src/adapters/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
InitializationMessage,
InitializationMessageType,
Zapp
} from "@parcnet/client-rpc";
} from "@parcnet-js/client-rpc";
import JSONBig from "json-bigint";
import { ParcnetAPI } from "../api_wrapper.js";
import { ParcnetRPCConnector } from "../rpc_client.js";
Expand Down
4 changes: 2 additions & 2 deletions packages/app-connector/src/api_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
ParcnetIdentityRPC,
ParcnetRPC,
ProveResult
} from "@parcnet/client-rpc";
import * as p from "@parcnet/podspec";
} from "@parcnet-js/client-rpc";
import * as p from "@parcnet-js/podspec";
import { GPCBoundConfig, GPCProof, GPCRevealedClaims } from "@pcd/gpc";
import { POD, PODEntries } from "@pcd/pod";
import { EventEmitter } from "eventemitter3";
Expand Down
2 changes: 1 addition & 1 deletion packages/app-connector/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export * from "./api_wrapper.js";
export * from "./rpc_client.js";
export * from "./utils.js";
export { Zapp };
import { type Zapp } from "@parcnet/client-rpc";
import { type Zapp } from "@parcnet-js/client-rpc";
4 changes: 2 additions & 2 deletions packages/app-connector/src/rpc_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
RPCMessageSchema,
RPCMessageType,
SubscriptionUpdateResult
} from "@parcnet/client-rpc";
import { PodspecProofRequest } from "@parcnet/podspec";
} from "@parcnet-js/client-rpc";
import { PodspecProofRequest } from "@parcnet-js/podspec";
import { GPCBoundConfig, GPCProof, GPCRevealedClaims } from "@pcd/gpc";
import { PODEntries } from "@pcd/pod";
import { EventEmitter } from "eventemitter3";
Expand Down
4 changes: 2 additions & 2 deletions packages/app-connector/test/parcnet-connector.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
RPCMessageSchema,
RPCMessageType,
SubscriptionUpdateResult
} from "@parcnet/client-rpc";
import * as p from "@parcnet/podspec";
} from "@parcnet-js/client-rpc";
import * as p from "@parcnet-js/podspec";
import { POD } from "@pcd/pod";
import crypto from "crypto";
import { assert, describe, expect, it } from "vitest";
Expand Down
2 changes: 1 addition & 1 deletion packages/app-connector/test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RPCMessageType } from "@parcnet/client-rpc";
import { RPCMessageType } from "@parcnet-js/client-rpc";
import { expect } from "vitest";
import { DialogController, postRPCMessage } from "../src/index.js";
import { ParcnetRPCConnector } from "../src/rpc_client.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/app-connector/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@parcnet/typescript-config/base.json",
"extends": "@parcnet-js/typescript-config/base.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/client-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@parcnet/client-helpers",
"name": "@parcnet-js/client-helpers",
"version": "0.0.1",
"private": false,
"type": "module",
Expand Down Expand Up @@ -33,13 +33,13 @@
"LICENSE"
],
"dependencies": {
"@parcnet/client-rpc": "workspace:*",
"@parcnet-js/client-rpc": "workspace:*",
"json-bigint": "^1.0.0",
"ws": "^8.18.0"
},
"devDependencies": {
"@parcnet/eslint-config": "workspace:*",
"@parcnet/typescript-config": "workspace:*",
"@parcnet-js/eslint-config": "workspace:*",
"@parcnet-js/typescript-config": "workspace:*",
"@types/json-bigint": "^1.0.1",
"@types/node": "^20.11.24",
"@types/ws": "^8.5.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-helpers/src/connection/advice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParcnetRPC, SubscriptionUpdateResult } from "@parcnet/client-rpc";
import { ParcnetRPC, SubscriptionUpdateResult } from "@parcnet-js/client-rpc";

/**
* ConnectorAdvice is a set of methods that a client can call to advise the
Expand Down
2 changes: 1 addition & 1 deletion packages/client-helpers/src/connection/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
RPCMessageType,
SubscriptionUpdateResult,
Zapp
} from "@parcnet/client-rpc";
} from "@parcnet-js/client-rpc";
import { ConnectorAdvice } from "./advice.js";

export class AdviceChannel implements ConnectorAdvice {
Expand Down
2 changes: 1 addition & 1 deletion packages/client-helpers/src/connection/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
RPCMessageType,
SubscriptionUpdateResult,
Zapp
} from "@parcnet/client-rpc";
} from "@parcnet-js/client-rpc";
import JSONBig from "json-bigint";
import type { MessageEvent, WebSocket } from "ws";
import { ConnectorAdvice } from "./advice.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/client-helpers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@parcnet/typescript-config/base.json",
"extends": "@parcnet-js/typescript-config/base.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/client-rpc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@parcnet/client-rpc",
"name": "@parcnet-js/client-rpc",
"private": false,
"type": "module",
"version": "0.0.1",
Expand All @@ -17,14 +17,14 @@
"LICENSE"
],
"dependencies": {
"@parcnet/podspec": "workspace:*",
"@parcnet-js/podspec": "workspace:*",
"@pcd/gpc": "0.0.6",
"@pcd/pod": "0.1.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@parcnet/eslint-config": "workspace:*",
"@parcnet/typescript-config": "workspace:*",
"@parcnet-js/eslint-config": "workspace:*",
"@parcnet-js/typescript-config": "workspace:*",
"@types/snarkjs": "^0.7.8",
"tsup": "^8.2.4",
"typescript": "^5.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/client-rpc/src/rpc_interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
EntriesSchema,
PODSchema,
PodspecProofRequest
} from "@parcnet/podspec";
} from "@parcnet-js/podspec";
import { GPCBoundConfig, GPCProof, GPCRevealedClaims } from "@pcd/gpc";
import { PODEntries } from "@pcd/pod";

Expand Down
2 changes: 1 addition & 1 deletion packages/client-rpc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@parcnet/typescript-config/base.json",
"extends": "@parcnet-js/typescript-config/base.json",
"compilerOptions": {
"outDir": "dist",
"strict": true
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@parcnet/eslint-config",
"name": "@parcnet-js/eslint-config",
"version": "0.0.0",
"private": true,
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions packages/podspec/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@parcnet/podspec",
"name": "@parcnet-js/podspec",
"private": true,
"version": "0.0.2",
"license": "GPL-3.0-or-later",
Expand All @@ -23,8 +23,8 @@
"@pcd/pod": "0.1.5"
},
"devDependencies": {
"@parcnet/eslint-config": "workspace:*",
"@parcnet/typescript-config": "workspace:*",
"@parcnet-js/eslint-config": "workspace:*",
"@parcnet-js/typescript-config": "workspace:*",
"@pcd/proto-pod-gpc-artifacts": "^0.5.0",
"@types/uuid": "^9.0.0",
"@zk-kit/eddsa-poseidon": "1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/podspec/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@parcnet/typescript-config/base.json",
"extends": "@parcnet-js/typescript-config/base.json",
"compilerOptions": {
"outDir": "dist"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@parcnet/typescript-config",
"name": "@parcnet-js/typescript-config",
"version": "0.0.0",
"private": true,
"license": "MIT",
Expand Down
Loading

0 comments on commit 9412aab

Please sign in to comment.