From fa81c4f83a83df96495789b1effa388baab37d87 Mon Sep 17 00:00:00 2001 From: Lar Van Der Jagt Date: Fri, 4 Apr 2025 22:19:04 -0400 Subject: [PATCH] chore: rename npm packages --- lerna.json | 2 +- package.json | 10 +- packages/create-wundergraph-app/package.json | 12 +- packages/create-wundergraph-app/src/index.ts | 2 +- packages/golang-client/package.json | 20 ++-- packages/golang-client/src/index.ts | 8 +- packages/metro-config/package.json | 14 +-- packages/metro-config/src/metro-config.ts | 8 +- .../metro-config/transformer/package.json | 2 +- packages/nextjs/package.json | 22 ++-- packages/nextjs/src/create-wundergraph.ts | 4 +- packages/nextjs/src/handlebar.template.ts | 4 +- packages/nextjs/src/index.ts | 2 +- packages/nextjs/src/integration.ts | 2 +- packages/nextjs/src/ssr-middleware.ts | 2 +- packages/nextjs/src/template.ts | 8 +- packages/nextjs/src/types.ts | 2 +- packages/nextjs/src/with-wundergraph.test.tsx | 6 +- packages/nextjs/src/with-wundergraph.tsx | 4 +- packages/orm/package.json | 14 +-- packages/protobuf/package.json | 14 +-- packages/react-query/package.json | 18 +-- packages/react-query/src/hooks.ts | 4 +- packages/react-query/src/types.ts | 4 +- packages/react-query/tests/hooks.test.tsx | 2 +- packages/react-query/tests/index.test-d.ts | 2 +- packages/react-relay/package.json | 18 +-- .../src/createWunderGraphRelayApp.tsx | 2 +- packages/react-relay/tests/index.test-d.ts | 2 +- packages/react-relay/tests/lib/TestClient.ts | 2 +- packages/rust-client/index.ts | 10 +- packages/rust-client/package.json | 20 ++-- packages/sdk/package.json | 22 ++-- packages/sdk/src/codegen/index.test.ts | 2 +- .../templates/markdown/authentication.ts | 2 +- .../__snapshots__/index.test.ts.snap | 8 +- .../templates/typescript/client.template.ts | 4 +- .../codegen/templates/typescript/client.ts | 2 +- .../src/codegen/templates/typescript/forms.ts | 2 +- .../typescript/forms.tsx.template.ts | 2 +- .../codegen/templates/typescript/helpers.ts | 2 +- .../templates/typescript/hooks.template.ts | 2 +- .../src/codegen/templates/typescript/hooks.ts | 2 +- .../src/codegen/templates/typescript/index.ts | 6 +- .../internal.operations.client.template.ts | 4 +- .../typescript/internal.operations.client.ts | 2 +- .../templates/typescript/jsonschema.ts | 2 +- .../typescript/operations.template.ts | 4 +- .../templates/typescript/operations.ts | 2 +- .../templates/typescript/orm.template.ts | 2 +- .../src/codegen/templates/typescript/orm.ts | 2 +- .../typescript/react.hooks.template.ts | 4 +- .../react.native.provider.template.ts | 6 +- .../typescript/react.provider.template.ts | 6 +- .../src/codegen/templates/typescript/react.ts | 8 +- .../templates/typescript/server.template.ts | 4 +- .../templates/typescript/testing.template.ts | 2 +- .../ts-operation-errors.template.ts | 2 +- .../typescript/ts-operation-errors.ts | 2 +- .../typescript/web.client.template.ts | 4 +- .../templates/typescript/web.client.ts | 2 +- .../templates/typescript/webhooks.template.ts | 4 +- packages/sdk/src/configure/authentication.ts | 2 +- packages/sdk/src/configure/index.ts | 4 +- packages/sdk/src/configure/options.ts | 2 +- packages/sdk/src/configure/variables.ts | 2 +- packages/sdk/src/db/introspection.ts | 2 +- .../src/definition/database-introspection.ts | 2 +- .../src/definition/graphql-introspection.ts | 2 +- .../sdk/src/definition/headers-builder.ts | 2 +- packages/sdk/src/definition/index.ts | 2 +- .../sdk/src/definition/introspection-cache.ts | 2 +- packages/sdk/src/definition/merge.test.ts | 2 +- packages/sdk/src/definition/merge.ts | 2 +- .../sdk/src/definition/namespacing.test.ts | 2 +- packages/sdk/src/definition/namespacing.ts | 2 +- .../src/definition/nats-kv-introspection.ts | 7 +- .../src/definition/openapi-introspection.ts | 2 +- .../advanced-hooks/codegen.template.ts | 2 +- .../sdk/src/graphql/configuration.test.ts | 2 +- packages/sdk/src/graphql/configuration.ts | 2 +- packages/sdk/src/graphql/operations.test.ts | 2 +- packages/sdk/src/graphql/operations.ts | 2 +- packages/sdk/src/logger/index.ts | 8 +- packages/sdk/src/openapibuilder/index.test.ts | 2 +- packages/sdk/src/openapibuilder/index.ts | 2 +- packages/sdk/src/orm/executor.ts | 4 +- packages/sdk/src/orm/index.ts | 2 +- packages/sdk/src/postman/builder.test.ts | 2 +- packages/sdk/src/postman/builder.ts | 2 +- packages/sdk/src/server/plugins/functions.ts | 2 +- packages/sdk/src/server/plugins/hooks.test.ts | 2 +- packages/sdk/src/server/plugins/hooks.ts | 2 +- packages/sdk/src/server/plugins/webhooks.ts | 4 +- packages/sdk/src/server/server.ts | 6 +- packages/sdk/src/server/trace/config.ts | 2 +- packages/sdk/src/server/types.ts | 4 +- .../sdk/src/transformations/index.test.ts | 2 +- .../transformations/replaceCustomScalars.ts | 2 +- packages/sdk/src/v2openapi/index.ts | 2 +- packages/sdk/src/webhooks/verifiers.ts | 2 +- packages/sdk/src/wunderctl/bin/run.ts | 2 +- packages/sdk/src/wunderctlexec/index.ts | 2 +- packages/solid-query/package.json | 18 +-- packages/solid-query/src/hooks.ts | 4 +- packages/solid-query/src/types.ts | 4 +- packages/solid-query/tests/hooks.test.tsx | 2 +- packages/solid-query/tests/index.test-d.ts | 2 +- packages/svelte-query/package.json | 18 +-- .../src/lib/createSvelteClient.ts | 4 +- packages/svelte-query/src/lib/types.ts | 2 +- .../svelte-query/tests/queryUtils.test.ts | 2 +- .../svelte-query/tests/svelte-query.test-d.ts | 4 +- packages/swr/package.json | 18 +-- packages/swr/src/hooks.ts | 4 +- packages/swr/src/types.ts | 6 +- packages/swr/tests/hooks.test.tsx | 6 +- packages/swr/tests/swr.test-d.ts | 2 +- .../.wundergraph/wundergraph.config.ts | 6 +- .../.wundergraph/wundergraph.server.ts | 2 +- .../auth/.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../auth/.wundergraph/wundergraph.server.ts | 2 +- packages/testsuite/apps/auth/auth.test.ts | 2 +- .../apps/basic/.wundergraph/errors/errors.ts | 2 +- .../basic/.wundergraph/webhooks/operations.ts | 2 +- .../webhooks/simple-with-input.ts | 2 +- .../basic/.wundergraph/webhooks/simple.ts | 2 +- .../basic/.wundergraph/webhooks/verified.ts | 2 +- .../basic/.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.generate.ts | 4 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../basic/.wundergraph/wundergraph.server.ts | 4 +- .../testsuite/apps/basic/json-schema.test.ts | 2 +- .../hooks/.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../hooks/.wundergraph/wundergraph.server.ts | 4 +- .../.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- .../mock/.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../mock/.wundergraph/wundergraph.server.ts | 2 +- .../apps/mock/test/start-stop-servers.test.ts | 2 +- packages/testsuite/apps/mock/types.ts | 2 +- .../.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- .../.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 4 +- .../testsuite/apps/openapi/openapi.test.ts | 2 +- .../.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- .../apps/orm/.wundergraph/webhooks/country.ts | 2 +- .../orm/.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../orm/.wundergraph/wundergraph.server.ts | 2 +- .../.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- packages/testsuite/package.json | 8 +- packages/testsuite/setup/generate.ts | 2 +- packages/vue-query/package.json | 18 +-- packages/vue-query/src/hooks.ts | 4 +- packages/vue-query/src/types.ts | 4 +- packages/vue-query/tests/hooks.test.ts | 2 +- packages/vue-query/tests/index.test-d.ts | 2 +- packages/wunderctl/package.json | 14 +-- pkg/codegeneration/application.go | 2 +- pkg/operations/operations.go | 6 +- pnpm-lock.yaml | 112 +++++++++--------- .../default/.wundergraph/webhooks/github.ts | 2 +- .../default/.wundergraph/webhooks/stripe.ts | 2 +- .../.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.generate.ts | 4 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- testapps/default/package.json | 14 +-- .../expo/.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../expo/.wundergraph/wundergraph.server.ts | 2 +- testapps/expo/lib/wundergraph.ts | 2 +- testapps/expo/metro.config.js | 2 +- testapps/expo/package.json | 8 +- .../.wundergraph/wundergraph.config.ts | 4 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- testapps/nextauth/package.json | 6 +- testapps/nextjs-integrations/package.json | 16 +-- .../wundergraph/wundergraph.config.ts | 12 +- .../wundergraph/wundergraph.server.ts | 2 +- .../.wundergraph/wundergraph.config.ts | 4 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- .../lib/createWunderGraphRelayApp.ts | 2 +- testapps/nextjs-relay/package.json | 20 ++-- .../.wundergraph/operations/users/get.ts | 2 +- .../operations/users/subscribe.ts | 2 +- .../operations/users/subscribe_no_input.ts | 2 +- .../users/subscribe_without_schema.ts | 2 +- .../nextjs/.wundergraph/webhooks/stripe.ts | 2 +- .../nextjs/.wundergraph/wundergraph.config.ts | 4 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../nextjs/.wundergraph/wundergraph.server.ts | 6 +- testapps/nextjs/lib/react-query.ts | 2 +- testapps/nextjs/package.json | 18 +-- .../.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../.wundergraph/wundergraph.server.ts | 2 +- testapps/postgres/package.json | 4 +- .../rust/.wundergraph/wundergraph.config.ts | 2 +- .../rust/.wundergraph/wundergraph.generate.ts | 4 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../rust/.wundergraph/wundergraph.server.ts | 2 +- testapps/rust/package.json | 14 +-- .../simple/.wundergraph/weather-datasource.ts | 4 +- .../simple/.wundergraph/webhooks/simple.ts | 2 +- .../simple/.wundergraph/wundergraph.config.ts | 6 +- .../simple/.wundergraph/wundergraph.server.ts | 2 +- testapps/simple/errors/errors.ts | 2 +- testapps/simple/package.json | 12 +- .../vite/.wundergraph/wundergraph.config.ts | 2 +- .../.wundergraph/wundergraph.operations.ts | 2 +- .../vite/.wundergraph/wundergraph.server.ts | 2 +- testapps/vite/package.json | 4 +- testapps/vite/src/lib/wundergraph.ts | 2 +- testapps/vite/vite.config.ts | 4 +- 229 files changed, 545 insertions(+), 534 deletions(-) diff --git a/lerna.json b/lerna.json index cd41f7668..aa322b475 100644 --- a/lerna.json +++ b/lerna.json @@ -15,7 +15,7 @@ "loglevel": "verbose", "changelogPreset": "conventional-changelog-conventionalcommits", "packages": [ - "packages/create-wundergraph-app", + "packages/create-undergraph-app", "packages/golang-client", "packages/nextjs", "packages/orm", diff --git a/package.json b/package.json index 0481807b2..d9da3f9be 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "private": true, "version": "0.180.0", - "name": "wundergraph", + "name": "undergraph", "license": "Apache-2.0", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "repository": { "type": "https", - "url": "https://github.com/wundergraph/wundergraph" + "url": "https://github.com/undergraph-dev/undergraph" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "scripts": { "build": "pnpm -r run --filter='!@test/postgres' --filter='!@test/mtls' --filter='!@test/vite' --filter='!./docs-website' build", "build:libs": "pnpm -r run --filter='./packages/*' --filter='!./docs-website' build", diff --git a/packages/create-wundergraph-app/package.json b/packages/create-wundergraph-app/package.json index a4f85a8be..39b5cb902 100644 --- a/packages/create-wundergraph-app/package.json +++ b/packages/create-wundergraph-app/package.json @@ -1,8 +1,8 @@ { - "name": "create-wundergraph-app", + "name": "create-undergraph-app", "version": "0.6.0", "license": "Apache-2.0", - "description": "Create Wundergraph App CLI command", + "description": "Create Undergraph App CLI command", "main": "dist/src/index.js", "exports": "./dist/src/index.js", "scripts": { @@ -11,11 +11,11 @@ "test": "jest" }, "bin": { - "create-wundergraph-app": "./dist/src/index.js" + "create-undergraph-app": "./dist/src/index.js" }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "publishConfig": { "registry": "https://registry.npmjs.org", @@ -23,8 +23,8 @@ }, "keywords": [], "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "dependencies": { "async-retry": "^1.3.3", diff --git a/packages/create-wundergraph-app/src/index.ts b/packages/create-wundergraph-app/src/index.ts index 0e940d6a1..3977cf009 100644 --- a/packages/create-wundergraph-app/src/index.ts +++ b/packages/create-wundergraph-app/src/index.ts @@ -7,7 +7,7 @@ import packageJson from '../package.json'; let projectName = ''; -const program = new Command('create-wundergraph-app') +const program = new Command('create-undergraph-app') .version(packageJson.version) .arguments('[project-name]') .usage(`${chalk.green('[project-name]')} [options]`) diff --git a/packages/golang-client/package.json b/packages/golang-client/package.json index de85bc648..3ba1da298 100644 --- a/packages/golang-client/package.json +++ b/packages/golang-client/package.json @@ -1,5 +1,5 @@ { - "name": "@wundergraph/golang-client", + "name": "@undergraph-dev/golang-client", "version": "0.8.19", "license": "Apache-2.0", "main": "./dist/index.js", @@ -7,22 +7,22 @@ "files": [ "dist" ], - "description": "WunderGraph Golang Client", + "description": "UnderGraph Golang Client", "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "build": "tsc" @@ -32,14 +32,14 @@ "@types/lodash": "^4.14.178", "@types/node": "^17.0.32", "@types/object-hash": "^1.3.4", - "@wundergraph/sdk": "workspace:^0.184.2", + "@undergraph-dev/sdk": "workspace:^0.184.2", "typescript": "^5.1.6" }, "peerDependencies": { - "@wundergraph/sdk": ">=0.105.1" + "@undergraph-dev/sdk": ">=0.105.1" }, "dependencies": { - "@wundergraph/protobuf": "workspace:^0.118.2", + "@undergraph-dev/protobuf": "workspace:^0.118.2", "execa": "5.1.1", "handlebars": "^4.7.7", "json-schema": "^0.4.0", diff --git a/packages/golang-client/src/index.ts b/packages/golang-client/src/index.ts index 5278a71d9..52130b366 100644 --- a/packages/golang-client/src/index.ts +++ b/packages/golang-client/src/index.ts @@ -1,12 +1,12 @@ -import { CodeGenerationConfig, GraphQLOperation, Template, TemplateOutputFile } from '@wundergraph/sdk'; -import { hasInput, visitJSONSchema } from '@wundergraph/sdk/internal/codegen'; +import { CodeGenerationConfig, GraphQLOperation, Template, TemplateOutputFile } from '@undergraph-dev/sdk'; +import { hasInput, visitJSONSchema } from '@undergraph-dev/sdk/internal/codegen'; import { JSONSchema7 as JSONSchema, JSONSchema7 } from 'json-schema'; import execa from 'execa'; import { capitalize } from 'lodash'; import Handlebars from 'handlebars'; import { clientTemplate } from './client-template'; -import { OperationExecutionEngine, OperationType } from '@wundergraph/protobuf'; -import Logger from '@wundergraph/sdk/internal/logger'; +import { OperationExecutionEngine, OperationType } from '@undergraph-dev/protobuf'; +import Logger from '@undergraph-dev/sdk/internal/logger'; const logger = Logger.child({ plugin: 'golang-client' }); diff --git a/packages/metro-config/package.json b/packages/metro-config/package.json index 537526f18..51d6590c5 100644 --- a/packages/metro-config/package.json +++ b/packages/metro-config/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/metro-config", + "name": "@undergraph-dev/metro-config", "version": "0.0.1", "license": "Apache-2.0", - "description": "WunderGraph Metro Config for React Native and Expo", + "description": "UnderGraph Metro Config for React Native and Expo", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ @@ -17,7 +17,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "dependencies": { "event-source-polyfill": "^1.0.31", @@ -32,14 +32,14 @@ "tsup": "^6.7.0", "typescript": "^5.1.6" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "keywords": [ "expo", - "wundergraph", + "undergraph", "react-native", "metro-config" ] diff --git a/packages/metro-config/src/metro-config.ts b/packages/metro-config/src/metro-config.ts index 4d3969422..68d63c2ba 100644 --- a/packages/metro-config/src/metro-config.ts +++ b/packages/metro-config/src/metro-config.ts @@ -14,12 +14,12 @@ export const wgMetroConfig = (config: MetroConfig) => { ...config.resolver, resolveRequest: (context, moduleName, platform) => { // React Native doesn't support exports field in package.json, so we resolve it manually. - if (moduleName.startsWith('@wundergraph/sdk/client')) { - return context.resolveRequest(context, '@wundergraph/sdk/dist/client', platform); + if (moduleName.startsWith('@undergraph-dev/sdk/client')) { + return context.resolveRequest(context, '@undergraph-dev/sdk/dist/client', platform); } - if (moduleName.startsWith('@wundergraph/sdk/internal')) { - return context.resolveRequest(context, '@wundergraph/sdk/dist/internal', platform); + if (moduleName.startsWith('@undergraph-dev/sdk/internal')) { + return context.resolveRequest(context, '@undergraph-dev/sdk/dist/internal', platform); } if (config.resolver?.resolveRequest) { diff --git a/packages/metro-config/transformer/package.json b/packages/metro-config/transformer/package.json index c4428d8f3..888e6cccf 100644 --- a/packages/metro-config/transformer/package.json +++ b/packages/metro-config/transformer/package.json @@ -1,5 +1,5 @@ { - "name": "wundergraph-metro-transformer", + "name": "undergraph-metro-transformer", "main": "../dist/transformer.js", "types": "../dist/transformer.d.ts" } diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index d36c9eff1..57efb4ef8 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,5 +1,5 @@ { - "name": "@wundergraph/nextjs", + "name": "@undergraph-dev/nextjs", "version": "0.15.9", "license": "Apache-2.0", "main": "./dist/index.js", @@ -43,22 +43,22 @@ "files": [ "dist" ], - "description": "WunderGraph Next.js integration", + "description": "UnderGraph Next.js integration", "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "devDependencies": { "@swc/core": "^1.3.14", @@ -69,7 +69,7 @@ "@types/node": "^17.0.32", "@types/node-fetch": "2.6.2", "@types/react": "^18.0.6", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", "next": "^14.0.1", @@ -82,15 +82,15 @@ "typescript": "^5.1.6" }, "peerDependencies": { - "@wundergraph/sdk": ">=0.110.0", + "@undergraph-dev/sdk": ">=0.110.0", "next": "^12.1.0 || ^13.0.0 || ^14.0.0", "react": "^17.0.2 || ^18.0.0", "react-dom": "^17.0.2 || ^18.0.0", "swr": "^2.2.0" }, "dependencies": { - "@wundergraph/protobuf": "workspace:^0.118.2", - "@wundergraph/swr": "workspace:*", + "@undergraph-dev/protobuf": "workspace:^0.118.2", + "@undergraph-dev/swr": "workspace:*", "handlebars": "^4.7.7", "react-ssr-prepass": "^1.5.0" }, diff --git a/packages/nextjs/src/create-wundergraph.ts b/packages/nextjs/src/create-wundergraph.ts index 075179fb2..ca49ffbd0 100644 --- a/packages/nextjs/src/create-wundergraph.ts +++ b/packages/nextjs/src/create-wundergraph.ts @@ -1,5 +1,5 @@ -import { Client, OperationsDefinition } from '@wundergraph/sdk/client'; -import { createHooks, UseQueryHook, UseSubscriptionHook } from '@wundergraph/swr'; +import { Client, OperationsDefinition } from '@undergraph-dev/sdk/client'; +import { createHooks, UseQueryHook, UseSubscriptionHook } from '@undergraph-dev/swr'; import { WithWunderGraphOptions } from './types'; import { withWunderGraph } from './with-wundergraph'; diff --git a/packages/nextjs/src/handlebar.template.ts b/packages/nextjs/src/handlebar.template.ts index 2bc6954de..ee64e3703 100644 --- a/packages/nextjs/src/handlebar.template.ts +++ b/packages/nextjs/src/handlebar.template.ts @@ -1,7 +1,7 @@ //language=handlebars export const handlebarTemplate = ` -import { createWunderGraphNext as createWunderGraphNextInternal, createHooks, WithWunderGraphOptions, SSRCache } from '@wundergraph/nextjs'; -import { User } from '@wundergraph/sdk/client'; +import { createWunderGraphNext as createWunderGraphNextInternal, createHooks, WithWunderGraphOptions, SSRCache } from '@undergraph-dev/nextjs'; +import { User } from '@undergraph-dev/sdk/client'; import { createClient, Operations, UserRole } from './client'; export interface WunderGraphPageProps { diff --git a/packages/nextjs/src/index.ts b/packages/nextjs/src/index.ts index 9dbd6e941..ccd2146ed 100644 --- a/packages/nextjs/src/index.ts +++ b/packages/nextjs/src/index.ts @@ -2,7 +2,7 @@ export { withWunderGraph } from './with-wundergraph'; export type { WithWunderGraphOptions, SSRCache } from './types'; -export { createHooks } from '@wundergraph/swr'; +export { createHooks } from '@undergraph-dev/swr'; export { createWunderGraphNext } from './create-wundergraph'; diff --git a/packages/nextjs/src/integration.ts b/packages/nextjs/src/integration.ts index 8bebd2ad6..71a162607 100644 --- a/packages/nextjs/src/integration.ts +++ b/packages/nextjs/src/integration.ts @@ -1,4 +1,4 @@ -import { defineIntegration } from '@wundergraph/sdk/integrations'; +import { defineIntegration } from '@undergraph-dev/sdk/integrations'; export interface NextJsIntegrationOptions { /** diff --git a/packages/nextjs/src/ssr-middleware.ts b/packages/nextjs/src/ssr-middleware.ts index 2f4d71fd6..47688251f 100644 --- a/packages/nextjs/src/ssr-middleware.ts +++ b/packages/nextjs/src/ssr-middleware.ts @@ -1,7 +1,7 @@ import { useWunderGraphContext } from './context'; import { Key, Middleware } from 'swr'; import { BareFetcher, PublicConfiguration, SWRHook } from 'swr/_internal'; -import { serialize } from '@wundergraph/sdk/internal'; +import { serialize } from '@undergraph-dev/sdk/internal'; type Operation = { operationName: string; diff --git a/packages/nextjs/src/template.ts b/packages/nextjs/src/template.ts index ebf38fe3f..1b0502c76 100644 --- a/packages/nextjs/src/template.ts +++ b/packages/nextjs/src/template.ts @@ -12,10 +12,10 @@ import { TypeScriptResponseDataModels, TypeScriptResponseModels, TypeScriptEnumModels, -} from '@wundergraph/sdk'; -import { configurationHash, modelImports } from '@wundergraph/sdk/internal/codegen'; -import { OperationType } from '@wundergraph/protobuf'; -import {} from '@wundergraph/sdk/dist/configure'; +} from '@undergraph-dev/sdk'; +import { configurationHash, modelImports } from '@undergraph-dev/sdk/internal/codegen'; +import { OperationType } from '@undergraph-dev/protobuf'; +import {} from '@undergraph-dev/sdk/dist/configure'; export class NextJsTemplate implements Template { generate(generationConfig: CodeGenerationConfig): Promise { diff --git a/packages/nextjs/src/types.ts b/packages/nextjs/src/types.ts index 5870703f3..7eeb6d41d 100644 --- a/packages/nextjs/src/types.ts +++ b/packages/nextjs/src/types.ts @@ -1,4 +1,4 @@ -import { Client, User } from '@wundergraph/sdk/client'; +import { Client, User } from '@undergraph-dev/sdk/client'; import { Middleware } from 'swr'; export type SSRCache = Record; diff --git a/packages/nextjs/src/with-wundergraph.test.tsx b/packages/nextjs/src/with-wundergraph.test.tsx index 73bdef0bb..1aa57541f 100644 --- a/packages/nextjs/src/with-wundergraph.test.tsx +++ b/packages/nextjs/src/with-wundergraph.test.tsx @@ -1,12 +1,12 @@ import { render, screen, waitFor } from '@testing-library/react'; -import { Client, ClientConfig } from '@wundergraph/sdk/client'; +import { Client, ClientConfig } from '@undergraph-dev/sdk/client'; import nock from 'nock'; import fetch from 'node-fetch'; import React from 'react'; -import { serialize } from '@wundergraph/sdk/internal'; -import { userSWRKey } from '@wundergraph/swr'; +import { serialize } from '@undergraph-dev/sdk/internal'; +import { userSWRKey } from '@undergraph-dev/swr'; import { SWRConfig } from 'swr'; import { useWunderGraphContext } from './context'; import { createWunderGraphNext } from './create-wundergraph'; diff --git a/packages/nextjs/src/with-wundergraph.tsx b/packages/nextjs/src/with-wundergraph.tsx index 97abf2840..3e0499ac8 100644 --- a/packages/nextjs/src/with-wundergraph.tsx +++ b/packages/nextjs/src/with-wundergraph.tsx @@ -3,8 +3,8 @@ import ssrPrepass from 'react-ssr-prepass'; import { NextComponentType } from 'next'; import { AppContextType, AppPropsType, NextPageContext } from 'next/dist/shared/lib/utils'; import { NextRouter } from 'next/router'; -import { ResponseError, User } from '@wundergraph/sdk/client'; -import { userSWRKey, SWRConfig } from '@wundergraph/swr'; +import { ResponseError, User } from '@undergraph-dev/sdk/client'; +import { userSWRKey, SWRConfig } from '@undergraph-dev/swr'; import { WithWunderGraphOptions, SSRCache } from './types'; import { WunderGraphProvider } from './context'; import { SSRMiddleWare } from './ssr-middleware'; diff --git a/packages/orm/package.json b/packages/orm/package.json index 6750c9dc1..742ae61cf 100644 --- a/packages/orm/package.json +++ b/packages/orm/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/orm", + "name": "@undergraph-dev/orm", "version": "0.3.1", "license": "Apache-2.0", - "description": "WunderGraph ORM", + "description": "UnderGraph ORM", "main": "./dist/src/index.js", "types": "./dist/src/index.d.ts", "exports": { @@ -40,7 +40,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "dependencies": { "@graphql-tools/utils": "^9.2.1", @@ -63,13 +63,13 @@ "tsd": "^0.24.1", "typescript": "^5.1.6" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "keywords": [ - "wundergraph", + "undergraph", "orm", "graphql" ], diff --git a/packages/protobuf/package.json b/packages/protobuf/package.json index 8cec6e848..4c9105473 100644 --- a/packages/protobuf/package.json +++ b/packages/protobuf/package.json @@ -1,10 +1,10 @@ { - "name": "@wundergraph/protobuf", + "name": "@undergraph-dev/protobuf", "version": "0.118.2", "license": "Apache-2.0", "main": "./dist/wundernode_config.js", "types": "./dist/wundernode_config.d.ts", - "description": "WunderGraph protobuf descriptions", + "description": "UnderGraph protobuf descriptions", "files": [ "dist" ], @@ -14,15 +14,15 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "build": "./generate.sh && tsc" diff --git a/packages/react-query/package.json b/packages/react-query/package.json index 9b258ce41..d4f6ab074 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/react-query", + "name": "@undergraph-dev/react-query", "version": "0.9.33", "license": "Apache-2.0", - "description": "WunderGraph React Query Integration", + "description": "UnderGraph React Query Integration", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -29,11 +29,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "peerDependencies": { "@tanstack/react-query": "^4.29.3", - "@wundergraph/sdk": ">=0.110.0", + "@undergraph-dev/sdk": ">=0.110.0", "react": "^16.8.0 || ^17.0.2 || ^18.0.0", "react-dom": "^16.8.0 || ^17.0.2 || ^18.0.0" }, @@ -47,7 +47,7 @@ "@types/node-fetch": "2.6.2", "@types/react": "^18.0.24", "@types/react-dom": "^18.0.6", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", "nock": "^13.2.9", @@ -58,14 +58,14 @@ "tsup": "^6.7.0", "typescript": "^5.1.6" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "keywords": [ "react-query", - "wundergraph", + "undergraph", "react" ] } diff --git a/packages/react-query/src/hooks.ts b/packages/react-query/src/hooks.ts index 5c22cae0e..e8ab3de0f 100644 --- a/packages/react-query/src/hooks.ts +++ b/packages/react-query/src/hooks.ts @@ -6,8 +6,8 @@ import { QueryFunctionContext, } from '@tanstack/react-query'; -import { OperationsDefinition, LogoutOptions, Client } from '@wundergraph/sdk/client'; -import { serialize } from '@wundergraph/sdk/internal'; +import { OperationsDefinition, LogoutOptions, Client } from '@undergraph-dev/sdk/client'; +import { serialize } from '@undergraph-dev/sdk/internal'; import { QueryFetcher, MutationFetcher, diff --git a/packages/react-query/src/types.ts b/packages/react-query/src/types.ts index f23950bdf..2df1eede7 100644 --- a/packages/react-query/src/types.ts +++ b/packages/react-query/src/types.ts @@ -8,7 +8,7 @@ import { SubscriptionRequestOptions, UploadRequestOptions, WithInput, -} from '@wundergraph/sdk/client'; +} from '@undergraph-dev/sdk/client'; import { UseQueryOptions as UseTanstackQueryOptions, @@ -16,7 +16,7 @@ import { UseQueryResult, UseMutationResult, } from '@tanstack/react-query'; -import { ResponseError } from '@wundergraph/sdk/client'; +import { ResponseError } from '@undergraph-dev/sdk/client'; export type QueryFetcher = { < diff --git a/packages/react-query/tests/hooks.test.tsx b/packages/react-query/tests/hooks.test.tsx index 1aac5e842..b29120edf 100644 --- a/packages/react-query/tests/hooks.test.tsx +++ b/packages/react-query/tests/hooks.test.tsx @@ -2,7 +2,7 @@ import { act, waitFor, screen, render, fireEvent } from '@testing-library/react' import React from 'react'; import { QueryCache, QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/react-query'; -import { Client, ClientConfig, OperationsDefinition, ResponseError } from '@wundergraph/sdk/client'; +import { Client, ClientConfig, OperationsDefinition, ResponseError } from '@undergraph-dev/sdk/client'; import nock from 'nock'; import fetch from 'node-fetch'; diff --git a/packages/react-query/tests/index.test-d.ts b/packages/react-query/tests/index.test-d.ts index 55b69e362..5eafc2b0e 100644 --- a/packages/react-query/tests/index.test-d.ts +++ b/packages/react-query/tests/index.test-d.ts @@ -1,5 +1,5 @@ import { createHooks } from '../src'; -import { Client, ResponseError, OperationsDefinition, User } from '@wundergraph/sdk/client'; +import { Client, ResponseError, OperationsDefinition, User } from '@undergraph-dev/sdk/client'; import { expectType } from 'tsd'; import { UseQueryResult } from '@tanstack/react-query'; diff --git a/packages/react-relay/package.json b/packages/react-relay/package.json index 1bfcefb8e..b4ac5d7ac 100644 --- a/packages/react-relay/package.json +++ b/packages/react-relay/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/react-relay", + "name": "@undergraph-dev/react-relay", "version": "0.4.33", "license": "Apache-2.0", - "description": "WunderGraph Relay Integration", + "description": "UnderGraph Relay Integration", "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { @@ -24,22 +24,22 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "keywords": [ "relay", "react", "react-relay", "nextjs", - "wundergraph" + "undergraph" ], "peerDependencies": { - "@wundergraph/sdk": ">=0.145.1", + "@undergraph-dev/sdk": ">=0.145.1", "react": "^16.9.0 || ^17 || ^18", "react-relay": ">=15.0.0" }, @@ -51,7 +51,7 @@ "@types/react": "^18.0.33", "@types/react-relay": "^14.1.3", "@types/relay-runtime": "^14.1.10", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", "nock": "^13.2.9", diff --git a/packages/react-relay/src/createWunderGraphRelayApp.tsx b/packages/react-relay/src/createWunderGraphRelayApp.tsx index eb2df23bf..17e6867e8 100644 --- a/packages/react-relay/src/createWunderGraphRelayApp.tsx +++ b/packages/react-relay/src/createWunderGraphRelayApp.tsx @@ -1,4 +1,4 @@ -import type { Client, ClientResponse, ResponseError, SubscriptionRequestOptions } from '@wundergraph/sdk/client'; +import type { Client, ClientResponse, ResponseError, SubscriptionRequestOptions } from '@undergraph-dev/sdk/client'; import { useRelayEnvironment, RelayEnvironmentProvider, diff --git a/packages/react-relay/tests/index.test-d.ts b/packages/react-relay/tests/index.test-d.ts index 20c5bf53e..d3b26c7f4 100644 --- a/packages/react-relay/tests/index.test-d.ts +++ b/packages/react-relay/tests/index.test-d.ts @@ -1,4 +1,4 @@ -import { Client, OperationsDefinition, ResponseError } from '@wundergraph/sdk/client'; +import { Client, OperationsDefinition, ResponseError } from '@undergraph-dev/sdk/client'; import { createWunderGraphRelayApp } from '../src'; interface Operations extends OperationsDefinition { diff --git a/packages/react-relay/tests/lib/TestClient.ts b/packages/react-relay/tests/lib/TestClient.ts index 854fefc6b..2fb10185d 100644 --- a/packages/react-relay/tests/lib/TestClient.ts +++ b/packages/react-relay/tests/lib/TestClient.ts @@ -1,4 +1,4 @@ -import { Client, ClientConfig, GraphQLError, OperationsDefinition } from '@wundergraph/sdk/client'; +import { Client, ClientConfig, GraphQLError, OperationsDefinition } from '@undergraph-dev/sdk/client'; import fetch from 'node-fetch'; export type Queries = { diff --git a/packages/rust-client/index.ts b/packages/rust-client/index.ts index d716810d9..e279e5c02 100644 --- a/packages/rust-client/index.ts +++ b/packages/rust-client/index.ts @@ -6,15 +6,15 @@ import Handlebars from 'handlebars'; import { JSONSchema7 as JSONSchema, JSONSchema7Definition } from 'json-schema'; import { capitalize } from 'lodash'; -import { OperationType } from '@wundergraph/protobuf'; -import { CodeGenerationConfig, GraphQLOperation, Template, TemplateOutputFile } from '@wundergraph/sdk'; -import { hasInput } from '@wundergraph/sdk/internal/codegen'; +import { OperationType } from '@undergraph-dev/protobuf'; +import { CodeGenerationConfig, GraphQLOperation, Template, TemplateOutputFile } from '@undergraph-dev/sdk'; +import { hasInput } from '@undergraph-dev/sdk/internal/codegen'; import { configurationHash, operationInputTypename, operationResponseTypename, -} from '@wundergraph/sdk/dist/codegen/templates/typescript/helpers'; -import Logger from '@wundergraph/sdk/internal/logger'; +} from '@undergraph-dev/sdk/dist/codegen/templates/typescript/helpers'; +import Logger from '@undergraph-dev/sdk/internal/logger'; const logger = Logger.child({ plugin: 'rust-client' }); diff --git a/packages/rust-client/package.json b/packages/rust-client/package.json index a31537590..4475b3c2d 100644 --- a/packages/rust-client/package.json +++ b/packages/rust-client/package.json @@ -1,5 +1,5 @@ { - "name": "@wundergraph/rust-client", + "name": "@undergraph-dev/rust-client", "version": "0.4.0", "license": "Apache-2.0", "main": "./dist/index.js", @@ -7,22 +7,22 @@ "files": [ "dist" ], - "description": "WunderGraph Rust Client", + "description": "UnderGraph Rust Client", "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "build": "tsc" @@ -32,14 +32,14 @@ "@types/lodash": "^4.14.178", "@types/node": "^17.0.32", "@types/object-hash": "^1.3.4", - "@wundergraph/sdk": "workspace:^0.184.2", + "@undergraph-dev/sdk": "workspace:^0.184.2", "typescript": "^5.1.6" }, "peerDependencies": { - "@wundergraph/sdk": ">=0.105.1" + "@undergraph-dev/sdk": ">=0.105.1" }, "dependencies": { - "@wundergraph/protobuf": "workspace:^0.118.2", + "@undergraph-dev/protobuf": "workspace:^0.118.2", "execa": "5.1.1", "handlebars": "^4.7.7", "json-schema": "^0.4.0", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 0637553d8..52dcefc17 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,5 +1,5 @@ { - "name": "@wundergraph/sdk", + "name": "@undergraph-dev/sdk", "version": "0.184.2", "license": "Apache-2.0", "exports": { @@ -116,10 +116,10 @@ }, "main": "./dist/index.js", "types": "./dist/index.d.ts", - "description": "WunderGraph SDK", + "description": "UnderGraph SDK", "keywords": [ "graphql", - "wundergraph", + "undergraph", "integration", "openapi", "bff", @@ -140,15 +140,15 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "clean": "rimraf ./dist", @@ -203,10 +203,10 @@ "@opentelemetry/semantic-conventions": "^1.13.0", "@prisma/generator-helper": "^3.9.2", "@whatwg-node/fetch": "^0.9.13", - "@wundergraph/orm": "workspace:*", - "@wundergraph/protobuf": "workspace:^0.118.2", + "@undergraph-dev/orm": "workspace:*", + "@undergraph-dev/protobuf": "workspace:^0.118.2", "@wundergraph/straightforward": "^4.2.5", - "@wundergraph/wunderctl": "workspace:^0.180.0", + "@undergraph-dev/wunderctl": "workspace:^0.180.0", "axios": "^0.26.1", "axios-retry": "^3.3.1", "close-with-grace": "^1.1.0", diff --git a/packages/sdk/src/codegen/index.test.ts b/packages/sdk/src/codegen/index.test.ts index c0d135624..76e36675c 100644 --- a/packages/sdk/src/codegen/index.test.ts +++ b/packages/sdk/src/codegen/index.test.ts @@ -1,7 +1,7 @@ import { CodeGenOutWriter, collectAllTemplates, CodeGenerator, Template, TemplateOutputFile } from './index'; import { Api } from '../definition'; import { CodeGenerationConfig } from '../configure'; -import { ConfigurationVariableKind, OperationExecutionEngine, OperationType } from '@wundergraph/protobuf'; +import { ConfigurationVariableKind, OperationExecutionEngine, OperationType } from '@undergraph-dev/protobuf'; import { mapInputVariable } from '../configure/variables'; class FakeTemplate implements Template { diff --git a/packages/sdk/src/codegen/templates/markdown/authentication.ts b/packages/sdk/src/codegen/templates/markdown/authentication.ts index 1c1c6d5fb..69cb5b01b 100644 --- a/packages/sdk/src/codegen/templates/markdown/authentication.ts +++ b/packages/sdk/src/codegen/templates/markdown/authentication.ts @@ -2,7 +2,7 @@ import { Template, TemplateOutputFile } from '../../index'; import { CodeGenerationConfig } from '../../../configure'; import { template } from './configure_auth_providers.template'; import Handlebars from 'handlebars'; -import { AuthProviderKind } from '@wundergraph/protobuf'; +import { AuthProviderKind } from '@undergraph-dev/protobuf'; export class AuthenticationProviderConfiguration implements Template { generate(generationConfig: CodeGenerationConfig): Promise { diff --git a/packages/sdk/src/codegen/templates/typescript/__snapshots__/index.test.ts.snap b/packages/sdk/src/codegen/templates/typescript/__snapshots__/index.test.ts.snap index 104ee9201..853efd813 100644 --- a/packages/sdk/src/codegen/templates/typescript/__snapshots__/index.test.ts.snap +++ b/packages/sdk/src/codegen/templates/typescript/__snapshots__/index.test.ts.snap @@ -4,7 +4,7 @@ exports[`TypeScriptInputModels 1`] = ` { "generated/models.ts": "// Code generated by wunderctl. DO NOT EDIT. -import type { GraphQLError } from "@wundergraph/sdk/client"; +import type { GraphQLError } from "@undergraph-dev/sdk/client"; export interface db_NodeWhereInput { AND?: db_NodeWhereInput; @@ -59,7 +59,7 @@ export interface MutationWithUnionInputInput { ", "generated/ts-operation-errors.ts": "// Code generated by wunderctl. DO NOT EDIT. -import type { ClientOperationErrors, GraphQLError } from "@wundergraph/sdk/client"; +import type { ClientOperationErrors, GraphQLError } from "@undergraph-dev/sdk/client"; export type OperationErrors = {}; ", @@ -70,7 +70,7 @@ exports[`TypeScriptResponseModels 1`] = ` { "generated/models.ts": "// Code generated by wunderctl. DO NOT EDIT. -import type { GraphQLError } from "@wundergraph/sdk/client"; +import type { GraphQLError } from "@undergraph-dev/sdk/client"; export interface db_NodeWhereInput { AND?: db_NodeWhereInput; @@ -171,7 +171,7 @@ export interface MutationWithUnionInputResponseData { ", "generated/ts-operation-errors.ts": "// Code generated by wunderctl. DO NOT EDIT. -import type { ClientOperationErrors, GraphQLError } from "@wundergraph/sdk/client"; +import type { ClientOperationErrors, GraphQLError } from "@undergraph-dev/sdk/client"; export type OperationErrors = {}; ", diff --git a/packages/sdk/src/codegen/templates/typescript/client.template.ts b/packages/sdk/src/codegen/templates/typescript/client.template.ts index ed826a492..47ac11b53 100644 --- a/packages/sdk/src/codegen/templates/typescript/client.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/client.template.ts @@ -20,10 +20,10 @@ import type { ExtractProfileName, ExtractMeta, GraphQLError -} from "@wundergraph/sdk/client"; +} from "@undergraph-dev/sdk/client"; import { Client, -} from "@wundergraph/sdk/client"; +} from "@undergraph-dev/sdk/client"; import type { OperationErrors } from "./ts-operation-errors"; import type { PublicCustomClaims } from "./claims"; diff --git a/packages/sdk/src/codegen/templates/typescript/client.ts b/packages/sdk/src/codegen/templates/typescript/client.ts index b497bd17e..3b15ce23d 100644 --- a/packages/sdk/src/codegen/templates/typescript/client.ts +++ b/packages/sdk/src/codegen/templates/typescript/client.ts @@ -7,7 +7,7 @@ import { compile as compileJSONSchema } from 'json-schema-to-typescript'; import { handlebarTemplate } from './client.template'; import { Template, TemplateOutputFile } from '../../index'; import { formatTypeScript } from './'; -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import { CodeGenerationConfig } from '../../../configure'; import { liveQueries, modelImports, operations, queries as allQueries, configurationHash } from './helpers'; import templates from '../index'; diff --git a/packages/sdk/src/codegen/templates/typescript/forms.ts b/packages/sdk/src/codegen/templates/typescript/forms.ts index b94a491ce..0fdea5abf 100644 --- a/packages/sdk/src/codegen/templates/typescript/forms.ts +++ b/packages/sdk/src/codegen/templates/typescript/forms.ts @@ -1,7 +1,7 @@ import { doNotEditHeader, Template, TemplateOutputFile } from '../../index'; import { CodeGenerationConfig } from '../../../configure'; import { formatTypeScript } from './index'; -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import Handlebars from 'handlebars'; import { template } from './forms.tsx.template'; import { hasInput, isNotInternal } from './helpers'; diff --git a/packages/sdk/src/codegen/templates/typescript/forms.tsx.template.ts b/packages/sdk/src/codegen/templates/typescript/forms.tsx.template.ts index 69fecbf7e..904bfd14b 100644 --- a/packages/sdk/src/codegen/templates/typescript/forms.tsx.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/forms.tsx.template.ts @@ -1,7 +1,7 @@ //language=handlebars export const template = ` import React, {useEffect, useState} from "react"; -import type { Response } from "@wundergraph/sdk"; +import type { Response } from "@undergraph-dev/sdk"; {{#if hasModelImports}}import { {{modelImports}} } from "./models";{{/if}} {{#if hasHookImports}}import { {{hookImports}} } from "./hooks";{{/if}} import jsonSchema from "./jsonschema"; diff --git a/packages/sdk/src/codegen/templates/typescript/helpers.ts b/packages/sdk/src/codegen/templates/typescript/helpers.ts index d6832b6b0..121e8c54b 100644 --- a/packages/sdk/src/codegen/templates/typescript/helpers.ts +++ b/packages/sdk/src/codegen/templates/typescript/helpers.ts @@ -3,7 +3,7 @@ import crypto from 'crypto'; import type { GraphQLOperation } from '../../../graphql/operations'; import type { ResolvedApplication, ResolvedWunderGraphConfig } from '../../../configure'; -import { OperationExecutionEngine, OperationType } from '@wundergraph/protobuf'; +import { OperationExecutionEngine, OperationType } from '@undergraph-dev/protobuf'; import { deepClone } from '../../../utils/helper'; export const isNotInternal = (op: GraphQLOperation): boolean => !op.Internal; diff --git a/packages/sdk/src/codegen/templates/typescript/hooks.template.ts b/packages/sdk/src/codegen/templates/typescript/hooks.template.ts index 7cf022b68..0aa754d5d 100644 --- a/packages/sdk/src/codegen/templates/typescript/hooks.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/hooks.template.ts @@ -14,7 +14,7 @@ import type { MutationHookWithoutInput, SubscriptionHook, SubscriptionHookWithoutInput, -} from "@wundergraph/sdk/server"; +} from "@undergraph-dev/sdk/server"; import type { User } from "./wundergraph.server" import { InternalOperationsClient } from "./wundergraph.internal.operations.client"; diff --git a/packages/sdk/src/codegen/templates/typescript/hooks.ts b/packages/sdk/src/codegen/templates/typescript/hooks.ts index 9880f0e93..5cf4b22c4 100644 --- a/packages/sdk/src/codegen/templates/typescript/hooks.ts +++ b/packages/sdk/src/codegen/templates/typescript/hooks.ts @@ -2,7 +2,7 @@ import { doNotEditHeader, Template, TemplateOutputFile } from '../../index'; import { CodeGenerationConfig } from '../../../configure'; import Handlebars from 'handlebars'; import { formatTypeScript } from './index'; -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import { filterNodeJSOperations, modelImports, operations } from './helpers'; import { template } from './hooks.template'; import templates from '../index'; diff --git a/packages/sdk/src/codegen/templates/typescript/index.ts b/packages/sdk/src/codegen/templates/typescript/index.ts index 100737487..90d7cf123 100644 --- a/packages/sdk/src/codegen/templates/typescript/index.ts +++ b/packages/sdk/src/codegen/templates/typescript/index.ts @@ -15,7 +15,7 @@ import { import fs from 'fs'; import path from 'path'; import { visitJSONSchema } from '../../jsonschema'; -import { OperationExecutionEngine } from '@wundergraph/protobuf'; +import { OperationExecutionEngine } from '@undergraph-dev/protobuf'; import { GraphQLOperation } from '../../../graphql/operations'; import { TypeScriptOperationErrors } from './ts-operation-errors'; @@ -306,7 +306,7 @@ export class BaseTypeScriptDataModel implements Template { .join('\n\n'); const functionImports = typescriptFunctionsImports(generationConfig); - const graphQLTypeImport = "import type { GraphQLError } from '@wundergraph/sdk/client';"; + const graphQLTypeImport = "import type { GraphQLError } from '@undergraph-dev/sdk/client';"; const imports = functionImports + graphQLTypeImport; const content = '\n' + imports + '\n\n' + models + '\n\n' + typeScriptJsonDefinition + '\n'; @@ -342,7 +342,7 @@ const typescriptFunctionsImports = (generationConfig: CodeGenerationConfig): str const relImport = (op: GraphQLOperation) => path.join(relBasePath, 'operations', op.PathName).replace(/\\/g, '/'); return ( ops.map((op) => `import type function_${op.Name} from '${relImport(op)}';\n`).join('') + - 'import type {ExtractInput,ExtractResponse} from "@wundergraph/sdk/operations";\n' + + 'import type {ExtractInput,ExtractResponse} from "@undergraph-dev/sdk/operations";\n' + 'import type { OperationErrors } from "./ts-operation-errors";\n' ); }; diff --git a/packages/sdk/src/codegen/templates/typescript/internal.operations.client.template.ts b/packages/sdk/src/codegen/templates/typescript/internal.operations.client.template.ts index c0d5919ef..0ebd93862 100644 --- a/packages/sdk/src/codegen/templates/typescript/internal.operations.client.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/internal.operations.client.template.ts @@ -2,8 +2,8 @@ //language=handlebars export const template = ` -import type { OperationsClient, InternalOperationsDefinition } from "@wundergraph/sdk/server"; -import type { ClientOperationErrors } from "@wundergraph/sdk/client"; +import type { OperationsClient, InternalOperationsDefinition } from "@undergraph-dev/sdk/server"; +import type { ClientOperationErrors } from "@undergraph-dev/sdk/client"; import type { OperationErrors } from "./ts-operation-errors"; import { {{ modelImports }} } from "./models" diff --git a/packages/sdk/src/codegen/templates/typescript/internal.operations.client.ts b/packages/sdk/src/codegen/templates/typescript/internal.operations.client.ts index 2ea80c1fd..a65dc6979 100644 --- a/packages/sdk/src/codegen/templates/typescript/internal.operations.client.ts +++ b/packages/sdk/src/codegen/templates/typescript/internal.operations.client.ts @@ -1,5 +1,5 @@ import Handlebars from 'handlebars'; -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import { doNotEditHeader, Template, TemplateOutputFile } from '../../index'; import { CodeGenerationConfig } from '../../../configure'; import { formatTypeScript } from './index'; diff --git a/packages/sdk/src/codegen/templates/typescript/jsonschema.ts b/packages/sdk/src/codegen/templates/typescript/jsonschema.ts index ec18f4aff..72ff65d45 100644 --- a/packages/sdk/src/codegen/templates/typescript/jsonschema.ts +++ b/packages/sdk/src/codegen/templates/typescript/jsonschema.ts @@ -3,7 +3,7 @@ import { CodeGenerationConfig } from '../../../configure'; import { formatTypeScript } from './index'; import Handlebars from 'handlebars'; import { template } from './jsonschema.template'; -import { OperationType, operationTypeToJSON } from '@wundergraph/protobuf'; +import { OperationType, operationTypeToJSON } from '@undergraph-dev/protobuf'; import { GraphQLOperation } from '../../../graphql/operations'; export class JsonSchema implements Template { diff --git a/packages/sdk/src/codegen/templates/typescript/operations.template.ts b/packages/sdk/src/codegen/templates/typescript/operations.template.ts index 73a259c1e..f28b19e60 100644 --- a/packages/sdk/src/codegen/templates/typescript/operations.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/operations.template.ts @@ -12,7 +12,7 @@ import type { SubscriptionConfiguration, MutationConfiguration, WunderGraphOperationsConfig -} from "@wundergraph/sdk" +} from "@undergraph-dev/sdk" export interface OperationsConfiguration { // defaultConfig is the base for all configurations @@ -35,7 +35,7 @@ export interface OperationsConfiguration { } } -declare module "@wundergraph/sdk" { +declare module "@undergraph-dev/sdk" { interface CustomOperationsConfiguration { {{#each operations}} "{{name}}"?: Partial<{{#if isQuery}}QueryConfiguration{{/if}}{{#if isMutation}}MutationConfiguration{{/if}}{{#if isSubscription}}SubscriptionConfiguration{{/if}}>; diff --git a/packages/sdk/src/codegen/templates/typescript/operations.ts b/packages/sdk/src/codegen/templates/typescript/operations.ts index a9e7f9659..4cb472c8b 100644 --- a/packages/sdk/src/codegen/templates/typescript/operations.ts +++ b/packages/sdk/src/codegen/templates/typescript/operations.ts @@ -1,7 +1,7 @@ import { doNotEditHeader, Template, TemplateOutputFile } from '../../index'; import { CodeGenerationConfig } from '../../../configure'; import { formatTypeScript } from './index'; -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import Handlebars from 'handlebars'; import { template } from './operations.template'; import templates from '../index'; diff --git a/packages/sdk/src/codegen/templates/typescript/orm.template.ts b/packages/sdk/src/codegen/templates/typescript/orm.template.ts index 9960a5fae..02b54b26a 100644 --- a/packages/sdk/src/codegen/templates/typescript/orm.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/orm.template.ts @@ -7,7 +7,7 @@ export const schemasTemplate = ` `; export const ormTemplate = ` -import type { ORM as ORMClass } from '@wundergraph/sdk/orm' +import type { ORM as ORMClass } from '@undergraph-dev/sdk/orm' import { {{#each namespaces}} diff --git a/packages/sdk/src/codegen/templates/typescript/orm.ts b/packages/sdk/src/codegen/templates/typescript/orm.ts index cff6d3ae9..2b6ff5566 100644 --- a/packages/sdk/src/codegen/templates/typescript/orm.ts +++ b/packages/sdk/src/codegen/templates/typescript/orm.ts @@ -20,7 +20,7 @@ import { schemasTemplate, ormTemplate, emptyOrm } from './orm.template'; import Handlebars from 'handlebars'; -import { codegen } from '@wundergraph/orm'; +import { codegen } from '@undergraph-dev/orm'; // @todo move to utils or import from existing dependency const toTitleCase = (string: string) => string[0].toUpperCase() + string.substring(1).toLowerCase(); diff --git a/packages/sdk/src/codegen/templates/typescript/react.hooks.template.ts b/packages/sdk/src/codegen/templates/typescript/react.hooks.template.ts index f2783a618..149b54785 100644 --- a/packages/sdk/src/codegen/templates/typescript/react.hooks.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/react.hooks.template.ts @@ -2,11 +2,11 @@ export const template = ` import {useCallback, useContext, useEffect, useMemo, useState} from "react"; import {WunderGraphContext} from "./provider"; -import { RequestOptions, MutateRequestOptions, SubscriptionRequestOptions, Response} from "@wundergraph/sdk" +import { RequestOptions, MutateRequestOptions, SubscriptionRequestOptions, Response} from "@undergraph-dev/sdk" {{#if hasImports}}import { {{imports}} } from "./models";{{/if}} /** - * @deprecated Use @wundergraph/swr instead + * @deprecated Use @undergraph-dev/swr instead */ export const useWunderGraph = () => { const ctx = useContext(WunderGraphContext) diff --git a/packages/sdk/src/codegen/templates/typescript/react.native.provider.template.ts b/packages/sdk/src/codegen/templates/typescript/react.native.provider.template.ts index c7ec73e1e..b7fe1d104 100644 --- a/packages/sdk/src/codegen/templates/typescript/react.native.provider.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/react.native.provider.template.ts @@ -1,7 +1,7 @@ //language=handlebars export const template = ` -import type { UserListener } from "@wundergraph/sdk"; -import type { OperationMetadata } from "@wundergraph/sdk/client"; +import type { UserListener } from "@undergraph-dev/sdk"; +import type { OperationMetadata } from "@undergraph-dev/sdk/client"; import { Client } from "./wundergraph.client"; import type { User } from "./wundergraph.server"; import React, { createContext, FunctionComponent, useMemo, useEffect, useState, Dispatch, SetStateAction } from "react"; @@ -40,7 +40,7 @@ export interface Props { } /** - * @deprecated Use @wundergraph/swr instead + * @deprecated Use @undergraph-dev/swr instead */ export const WunderGraphProvider: FunctionComponent = ({ endpoint = 'http://10.0.2.2:9991', diff --git a/packages/sdk/src/codegen/templates/typescript/react.provider.template.ts b/packages/sdk/src/codegen/templates/typescript/react.provider.template.ts index fe4e48d5e..9611ef746 100644 --- a/packages/sdk/src/codegen/templates/typescript/react.provider.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/react.provider.template.ts @@ -1,8 +1,8 @@ //language=handlebars export const template = ` import { Client } from "./wundergraph.client"; -import type { UserListener } from "@wundergraph/sdk"; -import type { OperationMetadata } from "@wundergraph/sdk/client"; +import type { UserListener } from "@undergraph-dev/sdk"; +import type { OperationMetadata } from "@undergraph-dev/sdk/client"; import type { User } from "./wundergraph.server"; import React, { createContext, FunctionComponent, useMemo, useEffect, useState, Dispatch, SetStateAction } from "react"; @@ -41,7 +41,7 @@ export interface Props { } /** - * @deprecated Use @wundergraph/swr instead + * @deprecated Use @undergraph-dev/swr instead */ export const WunderGraphProvider: FunctionComponent = ({ endpoint, extraHeaders, customFetch, children }) => { const [initialized, setInitialized] = useState(false); diff --git a/packages/sdk/src/codegen/templates/typescript/react.ts b/packages/sdk/src/codegen/templates/typescript/react.ts index d7827ae4e..104d9777d 100644 --- a/packages/sdk/src/codegen/templates/typescript/react.ts +++ b/packages/sdk/src/codegen/templates/typescript/react.ts @@ -3,14 +3,14 @@ import { CodeGenerationConfig, ResolvedApplication } from '../../../configure'; import { formatTypeScript } from './index'; import Handlebars from 'handlebars'; import { GraphQLOperation } from '../../../graphql/operations'; -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import { template as providerTemplate } from './react.provider.template'; import { template as reactNativeProviderTemplate } from './react.native.provider.template'; import { template as hooksTemplate } from './react.hooks.template'; import { hasInput, isNotInternal, queries as allQueries } from './helpers'; /** - * @deprecated Use @wundergraph/swr instead + * @deprecated Use @undergraph-dev/swr instead */ export class TypescriptReactProvider implements Template { generate(generationConfig: CodeGenerationConfig): Promise { @@ -31,7 +31,7 @@ export class TypescriptReactProvider implements Template { } /** - * @deprecated Use @wundergraph/swr instead + * @deprecated Use @undergraph-dev/swr instead */ export class TypescriptReactNativeProvider implements Template { generate(generationConfig: CodeGenerationConfig): Promise { @@ -52,7 +52,7 @@ export class TypescriptReactNativeProvider implements Template { } /** - * @deprecated Use @wundergraph/swr instead + * @deprecated Use @undergraph-dev/swr instead */ export class TypescriptReactHooks implements Template { constructor(reactNative?: boolean) { diff --git a/packages/sdk/src/codegen/templates/typescript/server.template.ts b/packages/sdk/src/codegen/templates/typescript/server.template.ts index 343657e80..43ad6ad24 100644 --- a/packages/sdk/src/codegen/templates/typescript/server.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/server.template.ts @@ -11,7 +11,7 @@ import type { WunderGraphUser, WunderGraphServerConfig, WunderGraphHooksAndServerConfig -} from "@wundergraph/sdk/server"; +} from "@undergraph-dev/sdk/server"; export type Role = {{{ roleDefinitions }}}; @@ -31,7 +31,7 @@ export interface GraphQLExecutionContext { wundergraph: BaseRequestContext; } -declare module "@wundergraph/sdk/server" { +declare module "@undergraph-dev/sdk/server" { export function configureWunderGraphServer( configWrapper: () => WunderGraphServerConfig< HooksConfig, diff --git a/packages/sdk/src/codegen/templates/typescript/testing.template.ts b/packages/sdk/src/codegen/templates/typescript/testing.template.ts index d5255f522..30c0fc3dd 100644 --- a/packages/sdk/src/codegen/templates/typescript/testing.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/testing.template.ts @@ -1,6 +1,6 @@ //language=handlebars export const handlebarTemplate = ` -import { ServerOptions, WunderGraphTestServer, WunderGraphMockServer, WunderGraphTestServers } from "@wundergraph/sdk/testing"; +import { ServerOptions, WunderGraphTestServer, WunderGraphMockServer, WunderGraphTestServers } from "@undergraph-dev/sdk/testing"; import { createClient, WunderGraphClient } from "./client"; /** diff --git a/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.template.ts b/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.template.ts index d3d4578c5..f3efe7d24 100644 --- a/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.template.ts @@ -1,6 +1,6 @@ //language=handlebars export const template = ` -import type { ClientOperationErrors, GraphQLError } from '@wundergraph/sdk/client'; +import type { ClientOperationErrors, GraphQLError } from '@undergraph-dev/sdk/client'; export type OperationErrors = { {{#each tsOperations}} diff --git a/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.ts b/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.ts index 6c039b28f..034b0eefb 100644 --- a/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.ts +++ b/packages/sdk/src/codegen/templates/typescript/ts-operation-errors.ts @@ -5,7 +5,7 @@ import { formatTypeScript } from './index'; import { template } from './ts-operation-errors.template'; import { uniqBy, filter } from 'lodash'; import { TypeScriptOperation } from '../../../graphql/operations'; -import { OperationExecutionEngine } from '@wundergraph/protobuf'; +import { OperationExecutionEngine } from '@undergraph-dev/protobuf'; import { stringToCamelCase } from '../../../strings'; type OpTemplateError = { diff --git a/packages/sdk/src/codegen/templates/typescript/web.client.template.ts b/packages/sdk/src/codegen/templates/typescript/web.client.template.ts index 84c23229b..cdcb89ca8 100644 --- a/packages/sdk/src/codegen/templates/typescript/web.client.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/web.client.template.ts @@ -1,7 +1,7 @@ //language=handlebars export const template = ` import type { {{ modelImports }} } from "./models"; -import type { RequestOptions, UserListener, Response } from "@wundergraph/sdk/server"; +import type { RequestOptions, UserListener, Response } from "@undergraph-dev/sdk/server"; import type { User, Role } from "./wundergraph.server"; import { Client as WunderGraphClient, @@ -9,7 +9,7 @@ import { UploadRequestOptions, ClientResponse as Result, LogoutOptions -} from "@wundergraph/sdk/client"; +} from "@undergraph-dev/sdk/client"; export const WUNDERGRAPH_S3_ENABLED = {{hasS3Providers}}; export const WUNDERGRAPH_AUTH_ENABLED = {{hasAuthProviders}}; {{#if hasS3Providers}} diff --git a/packages/sdk/src/codegen/templates/typescript/web.client.ts b/packages/sdk/src/codegen/templates/typescript/web.client.ts index f90f86710..84cb482be 100644 --- a/packages/sdk/src/codegen/templates/typescript/web.client.ts +++ b/packages/sdk/src/codegen/templates/typescript/web.client.ts @@ -2,7 +2,7 @@ import { Template, TemplateOutputFile } from '../../index'; import { CodeGenerationConfig, ResolvedApplication } from '../../../configure'; import Handlebars from 'handlebars'; import { formatTypeScript } from './index'; -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import { template } from './web.client.template'; import { configurationHash, hasInput, hasInternalInput, modelImports } from './helpers'; diff --git a/packages/sdk/src/codegen/templates/typescript/webhooks.template.ts b/packages/sdk/src/codegen/templates/typescript/webhooks.template.ts index 441be6c62..85f317a2b 100644 --- a/packages/sdk/src/codegen/templates/typescript/webhooks.template.ts +++ b/packages/sdk/src/codegen/templates/typescript/webhooks.template.ts @@ -1,10 +1,10 @@ //language=handlebars export const template = ` -import type { WebhookConfiguration } from '@wundergraph/sdk/server'; +import type { WebhookConfiguration } from '@undergraph-dev/sdk/server'; import type { InternalOperationsClient } from "./wundergraph.internal.operations.client"; import type { ContextType } from "./wundergraph.factory"; -import { createWebhookFactory } from "@wundergraph/sdk/server"; +import { createWebhookFactory } from "@undergraph-dev/sdk/server"; import type { ORM as TypedORM } from "./orm"; export type WebhooksConfig = { diff --git a/packages/sdk/src/configure/authentication.ts b/packages/sdk/src/configure/authentication.ts index 3653ca4c9..b216cb6ab 100644 --- a/packages/sdk/src/configure/authentication.ts +++ b/packages/sdk/src/configure/authentication.ts @@ -1,4 +1,4 @@ -import { AuthProvider, AuthProviderKind, OpenIDConnectQueryParameter } from '@wundergraph/protobuf'; +import { AuthProvider, AuthProviderKind, OpenIDConnectQueryParameter } from '@undergraph-dev/protobuf'; import { InputVariable, mapInputVariable } from './variables'; export interface AuthenticationProvider { diff --git a/packages/sdk/src/configure/index.ts b/packages/sdk/src/configure/index.ts index 6973febb7..3a8148caf 100644 --- a/packages/sdk/src/configure/index.ts +++ b/packages/sdk/src/configure/index.ts @@ -67,7 +67,7 @@ import { WunderGraphConfiguration, Hook, HookType, -} from '@wundergraph/protobuf'; +} from '@undergraph-dev/protobuf'; import { SDK_VERSION } from '../version'; import { AuthenticationProvider } from './authentication'; import { findUp } from './findup'; @@ -1516,7 +1516,7 @@ const typeScriptOperationsResponseSchemas = async (wgDirAbs: string, operations: const programFile = 'typescript_schema_generator.ts'; - const contents: string[] = ['import type { ExtractResponse } from "@wundergraph/sdk/operations";']; + const contents: string[] = ['import type { ExtractResponse } from "@undergraph-dev/sdk/operations";']; const operationHashes: string[] = []; for (const op of operations) { diff --git a/packages/sdk/src/configure/options.ts b/packages/sdk/src/configure/options.ts index 2a6681f91..40c0c9081 100644 --- a/packages/sdk/src/configure/options.ts +++ b/packages/sdk/src/configure/options.ts @@ -1,4 +1,4 @@ -import { ConfigurationVariable } from '@wundergraph/protobuf'; +import { ConfigurationVariable } from '@undergraph-dev/protobuf'; import { EnvironmentVariable, InputVariable, mapInputVariable, resolveVariable } from './variables'; export const isCloud = process.env.WG_CLOUD === 'true'; diff --git a/packages/sdk/src/configure/variables.ts b/packages/sdk/src/configure/variables.ts index 2fd63cc30..abcfd06ff 100644 --- a/packages/sdk/src/configure/variables.ts +++ b/packages/sdk/src/configure/variables.ts @@ -1,5 +1,5 @@ import process from 'node:process'; -import { ConfigurationVariable, ConfigurationVariableKind } from '@wundergraph/protobuf'; +import { ConfigurationVariable, ConfigurationVariableKind } from '@undergraph-dev/protobuf'; import { Logger } from '../logger'; export class EnvironmentVariable { diff --git a/packages/sdk/src/db/introspection.ts b/packages/sdk/src/db/introspection.ts index f8199f037..5e677022e 100644 --- a/packages/sdk/src/db/introspection.ts +++ b/packages/sdk/src/db/introspection.ts @@ -1,7 +1,7 @@ import { wunderctl } from '../wunderctlexec'; import { FieldDefinitionNode, InputValueDefinitionNode, Kind, parse, parseType, print, TypeNode, visit } from 'graphql'; import { DatabaseIntrospection } from '../definition'; -import { SingleTypeField } from '@wundergraph/protobuf'; +import { SingleTypeField } from '@undergraph-dev/protobuf'; import { DMMF } from '@prisma/generator-helper'; import { NamedTypeNode, ObjectTypeDefinitionNode } from 'graphql/language/ast'; import { startCase } from 'lodash'; diff --git a/packages/sdk/src/definition/database-introspection.ts b/packages/sdk/src/definition/database-introspection.ts index eed76d58f..1f68b74ec 100644 --- a/packages/sdk/src/definition/database-introspection.ts +++ b/packages/sdk/src/definition/database-introspection.ts @@ -27,7 +27,7 @@ import { generateTypeConfigurationsForNamespace, } from './namespacing'; import { mapInputVariable, resolveVariable } from '../configure/variables'; -import { DataSourceKind, FieldConfiguration, SingleTypeField, TypeConfiguration } from '@wundergraph/protobuf'; +import { DataSourceKind, FieldConfiguration, SingleTypeField, TypeConfiguration } from '@undergraph-dev/protobuf'; import { fileHash, urlHash } from '../localcache'; const introspectDatabase = async ( diff --git a/packages/sdk/src/definition/graphql-introspection.ts b/packages/sdk/src/definition/graphql-introspection.ts index 7f595a849..d835951f9 100644 --- a/packages/sdk/src/definition/graphql-introspection.ts +++ b/packages/sdk/src/definition/graphql-introspection.ts @@ -17,7 +17,7 @@ import { } from 'graphql'; import { AxiosError, AxiosProxyConfig, AxiosRequestConfig, AxiosResponse } from 'axios'; import { HttpsProxyAgent, HttpsProxyAgentOptions } from 'https-proxy-agent'; -import { ConfigurationVariableKind, DataSourceKind, HTTPHeader, HTTPMethod } from '@wundergraph/protobuf'; +import { ConfigurationVariableKind, DataSourceKind, HTTPHeader, HTTPMethod } from '@undergraph-dev/protobuf'; import { cleanupSchema } from '../graphql/schema'; import { applyNameSpaceToCustomJsonScalars, diff --git a/packages/sdk/src/definition/headers-builder.ts b/packages/sdk/src/definition/headers-builder.ts index c8ffc887b..8e56ef7b0 100644 --- a/packages/sdk/src/definition/headers-builder.ts +++ b/packages/sdk/src/definition/headers-builder.ts @@ -1,5 +1,5 @@ import { EnvironmentVariable, InputVariable, PlaceHolder } from '../configure/variables'; -import { ConfigurationVariable, ConfigurationVariableKind, HTTPHeader } from '@wundergraph/protobuf'; +import { ConfigurationVariable, ConfigurationVariableKind, HTTPHeader } from '@undergraph-dev/protobuf'; export interface HeaderConfiguration { // key is the name of the Header that will be sent to the upstream, e.g. Authorization diff --git a/packages/sdk/src/definition/index.ts b/packages/sdk/src/definition/index.ts index ee9bf09cc..808a68bc3 100644 --- a/packages/sdk/src/definition/index.ts +++ b/packages/sdk/src/definition/index.ts @@ -19,7 +19,7 @@ import { TypeField, UpstreamAuthentication, UpstreamAuthenticationKind, -} from '@wundergraph/protobuf'; +} from '@undergraph-dev/protobuf'; import { applyNameSpaceToGraphQLSchema } from './namespacing'; import { InputVariable, mapInputVariable } from '../configure/variables'; import { introspectGraphqlWithCache } from './graphql-introspection'; diff --git a/packages/sdk/src/definition/introspection-cache.ts b/packages/sdk/src/definition/introspection-cache.ts index 5398c22b5..85274b010 100644 --- a/packages/sdk/src/definition/introspection-cache.ts +++ b/packages/sdk/src/definition/introspection-cache.ts @@ -15,7 +15,7 @@ import { import objectHash from 'object-hash'; -import { FieldConfiguration, TypeConfiguration } from '@wundergraph/protobuf'; +import { FieldConfiguration, TypeConfiguration } from '@undergraph-dev/protobuf'; import { LocalCache, LocalCacheBucket } from '../localcache'; import { Logger } from '../logger'; import { onParentProcessExit } from '../utils/process'; diff --git a/packages/sdk/src/definition/merge.test.ts b/packages/sdk/src/definition/merge.test.ts index 176a506b0..23e773c32 100644 --- a/packages/sdk/src/definition/merge.test.ts +++ b/packages/sdk/src/definition/merge.test.ts @@ -1,6 +1,6 @@ import { mergeApis } from './merge'; import { Api, GraphQLApi, GraphQLApiCustom } from './index'; -import { ArgumentRenderConfiguration, ArgumentSource, DataSourceKind, HTTPMethod } from '@wundergraph/protobuf'; +import { ArgumentRenderConfiguration, ArgumentSource, DataSourceKind, HTTPMethod } from '@undergraph-dev/protobuf'; import { mapInputVariable } from '../configure/variables'; test('Should be merged', () => { diff --git a/packages/sdk/src/definition/merge.ts b/packages/sdk/src/definition/merge.ts index 3a6f422cf..0fc0202ae 100644 --- a/packages/sdk/src/definition/merge.ts +++ b/packages/sdk/src/definition/merge.ts @@ -17,7 +17,7 @@ import { DataSourceKind, FieldConfiguration, TypeConfiguration, -} from '@wundergraph/protobuf'; +} from '@undergraph-dev/protobuf'; import { Api, DataSource, StaticApiCustom } from './index'; import { WellKnownClaim, WellKnownClaimValues } from '../graphql/operations'; import { printSchemaWithDirectives } from '@graphql-tools/utils'; diff --git a/packages/sdk/src/definition/namespacing.test.ts b/packages/sdk/src/definition/namespacing.test.ts index 1fbea5b51..9ec888887 100644 --- a/packages/sdk/src/definition/namespacing.test.ts +++ b/packages/sdk/src/definition/namespacing.test.ts @@ -8,7 +8,7 @@ import { } from './namespacing'; import { buildSchema, parse, print } from 'graphql'; import { assert } from 'chai'; -import { DirectiveConfiguration, FieldConfiguration, TypeConfiguration, TypeField } from '@wundergraph/protobuf'; +import { DirectiveConfiguration, FieldConfiguration, TypeConfiguration, TypeField } from '@undergraph-dev/protobuf'; test('apply namespace to starwars schema', () => { const actual = applyNameSpaceToGraphQLSchema(starWarsSchema, ['api_hero'], 'api'); diff --git a/packages/sdk/src/definition/namespacing.ts b/packages/sdk/src/definition/namespacing.ts index 5496b02fb..39f8b3aca 100644 --- a/packages/sdk/src/definition/namespacing.ts +++ b/packages/sdk/src/definition/namespacing.ts @@ -23,7 +23,7 @@ import { SingleTypeField, TypeConfiguration, TypeField, -} from '@wundergraph/protobuf'; +} from '@undergraph-dev/protobuf'; import { isRootType } from '../graphql/configuration'; const wellKnownGlobalTypeNames: string[] = [ diff --git a/packages/sdk/src/definition/nats-kv-introspection.ts b/packages/sdk/src/definition/nats-kv-introspection.ts index 0e552e353..dc96d29a9 100644 --- a/packages/sdk/src/definition/nats-kv-introspection.ts +++ b/packages/sdk/src/definition/nats-kv-introspection.ts @@ -1,5 +1,10 @@ import { Api, ApiIntrospectionOptions, DataSource, NatsKvApi, NatsKvApiCustom } from './index'; -import { ConfigurationVariableKind, DataSourceKind, FieldConfiguration, NatsKvOperation } from '@wundergraph/protobuf'; +import { + ConfigurationVariableKind, + DataSourceKind, + FieldConfiguration, + NatsKvOperation, +} from '@undergraph-dev/protobuf'; import { z } from 'zod'; import zodToJsonSchema from 'zod-to-json-schema'; import { getGraphqlSchemaFromJsonSchema } from 'get-graphql-from-jsonschema'; diff --git a/packages/sdk/src/definition/openapi-introspection.ts b/packages/sdk/src/definition/openapi-introspection.ts index 8b97fd0ea..58f33f947 100644 --- a/packages/sdk/src/definition/openapi-introspection.ts +++ b/packages/sdk/src/definition/openapi-introspection.ts @@ -221,7 +221,7 @@ export const openApiSpecificationToGraphQLApi = async ( validateNamespace(introspection.apiNamespace); } - const openApiLogger = logger ? new OpenAPILogger(logger.child({ component: '@wundergraph/openapi' })) : undefined; + const openApiLogger = logger ? new OpenAPILogger(logger.child({ component: '@undergraph-dev/openapi' })) : undefined; const options: OpenApiOptions = { source, diff --git a/packages/sdk/src/enterprise/advanced-hooks/codegen.template.ts b/packages/sdk/src/enterprise/advanced-hooks/codegen.template.ts index bb0acf5f6..033a1ac58 100644 --- a/packages/sdk/src/enterprise/advanced-hooks/codegen.template.ts +++ b/packages/sdk/src/enterprise/advanced-hooks/codegen.template.ts @@ -10,7 +10,7 @@ export const handlebarTemplate = ` import { DATA_SOURCES } from './wundergraph.hooks' -declare module '@wundergraph/sdk/advanced-hooks' { +declare module '@undergraph-dev/sdk/advanced-hooks' { export interface RouteMatcher { datasources?: DATA_SOURCES[] } diff --git a/packages/sdk/src/graphql/configuration.test.ts b/packages/sdk/src/graphql/configuration.test.ts index e87b97441..937dd20d8 100644 --- a/packages/sdk/src/graphql/configuration.test.ts +++ b/packages/sdk/src/graphql/configuration.test.ts @@ -1,7 +1,7 @@ import { configuration, GraphQLConfiguration } from './configuration'; import { assert } from 'chai'; import { parse } from 'graphql'; -import { ArgumentRenderConfiguration, ArgumentSource } from '@wundergraph/protobuf'; +import { ArgumentRenderConfiguration, ArgumentSource } from '@undergraph-dev/protobuf'; import { ArgumentReplacement } from '../transformations/transformSchema'; const tests: { diff --git a/packages/sdk/src/graphql/configuration.ts b/packages/sdk/src/graphql/configuration.ts index 9f4b88da1..1d27439d1 100644 --- a/packages/sdk/src/graphql/configuration.ts +++ b/packages/sdk/src/graphql/configuration.ts @@ -6,7 +6,7 @@ import { FieldConfiguration, TypeConfiguration, TypeField, -} from '@wundergraph/protobuf'; +} from '@undergraph-dev/protobuf'; import { ArgumentReplacement } from '../transformations/transformSchema'; import { TypeNode } from 'graphql/language/ast'; import { Kind } from 'graphql/language/kinds'; diff --git a/packages/sdk/src/graphql/operations.test.ts b/packages/sdk/src/graphql/operations.test.ts index b3ba3fbed..cb2e09ab1 100644 --- a/packages/sdk/src/graphql/operations.test.ts +++ b/packages/sdk/src/graphql/operations.test.ts @@ -10,7 +10,7 @@ import { import { assert } from 'chai'; import { buildSchema, OperationDefinitionNode, parse } from 'graphql'; import { JSONSchema7 as JSONSchema } from 'json-schema'; -import { ClaimType, OperationExecutionEngine, OperationType } from '@wundergraph/protobuf'; +import { ClaimType, OperationExecutionEngine, OperationType } from '@undergraph-dev/protobuf'; import * as fs from 'fs'; import path from 'path'; diff --git a/packages/sdk/src/graphql/operations.ts b/packages/sdk/src/graphql/operations.ts index e5f114009..f27168e0d 100644 --- a/packages/sdk/src/graphql/operations.ts +++ b/packages/sdk/src/graphql/operations.ts @@ -7,7 +7,7 @@ import { OperationRoleConfig, OperationType, VariableInjectionConfiguration, -} from '@wundergraph/protobuf'; +} from '@undergraph-dev/protobuf'; import { BREAK, buildSchema, diff --git a/packages/sdk/src/logger/index.ts b/packages/sdk/src/logger/index.ts index 772dda3db..f3144ed4f 100644 --- a/packages/sdk/src/logger/index.ts +++ b/packages/sdk/src/logger/index.ts @@ -1,4 +1,4 @@ -import { ConfigurationVariable, LogLevel, logLevelFromJSON } from '@wundergraph/protobuf'; +import { ConfigurationVariable, LogLevel, logLevelFromJSON } from '@undergraph-dev/protobuf'; import { resolveConfigurationVariable } from '../configure/variables'; import { DestinationStream, pino } from 'pino'; import { pinoOptions } from '../server/logger'; @@ -65,9 +65,9 @@ if (process.env.WG_CLOUD_DEPLOYMENT_ID) { cloudBindings.deploymentID = process.env.WG_CLOUD_DEPLOYMENT_ID; } -export const Logger = logger.child({ component: '@wundergraph/sdk' }); +export const Logger = logger.child({ component: '@undergraph-dev/sdk' }); export const ServerLogger = logger.child( - { component: '@wundergraph/server', ...cloudBindings }, + { component: '@undergraph-dev/server', ...cloudBindings }, { level: process.env.WG_DEBUG_MODE === 'true' ? PinoLogLevel.Debug : PinoLogLevel.Info } ); @@ -75,4 +75,4 @@ export default Logger; // This logger is used to log fatal errors to stderr // which is used by wunderctl to read errors in TUI mode. -export const FatalLogger = initLogger(process.stderr).child({ component: '@wundergraph/sdk' }); +export const FatalLogger = initLogger(process.stderr).child({ component: '@undergraph-dev/sdk' }); diff --git a/packages/sdk/src/openapibuilder/index.test.ts b/packages/sdk/src/openapibuilder/index.test.ts index c32553a3c..71d1aef79 100644 --- a/packages/sdk/src/openapibuilder/index.test.ts +++ b/packages/sdk/src/openapibuilder/index.test.ts @@ -1,6 +1,6 @@ import { JSONSchema7 } from 'json-schema'; -import { OperationExecutionEngine, OperationType } from '@wundergraph/protobuf'; +import { OperationExecutionEngine, OperationType } from '@undergraph-dev/protobuf'; import { GraphQLOperation } from '../graphql/operations'; import { OpenApiBuilder, isValidOpenApiSchemaName } from './index'; import { JSONSchema } from 'json-schema-to-typescript'; diff --git a/packages/sdk/src/openapibuilder/index.ts b/packages/sdk/src/openapibuilder/index.ts index af9f0f1a1..8b3ce39d4 100644 --- a/packages/sdk/src/openapibuilder/index.ts +++ b/packages/sdk/src/openapibuilder/index.ts @@ -1,4 +1,4 @@ -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import { JSONSchema7 as JSONSchema, JSONSchema7Definition } from 'json-schema'; import objectHash from 'object-hash'; import { GraphQLOperation } from '../graphql/operations'; diff --git a/packages/sdk/src/orm/executor.ts b/packages/sdk/src/orm/executor.ts index bb63d30ce..fa4a8837d 100644 --- a/packages/sdk/src/orm/executor.ts +++ b/packages/sdk/src/orm/executor.ts @@ -7,7 +7,7 @@ import { visit, print, } from 'graphql'; -import { type Executor } from '@wundergraph/orm'; +import { type Executor } from '@undergraph-dev/orm'; import traverse from 'traverse'; import { applyPatch } from 'fast-json-patch'; import { fetch } from '@whatwg-node/fetch'; @@ -42,7 +42,7 @@ interface FetchOptions { // before it could be used in production. // // @todo we could make this generic enough to implement in -// the `@wundergraph/orm` package (i.e support a middleware-style +// the `@undergraph-dev/orm` package (i.e support a middleware-style // API like `graphql-request` does). // @todo extend `Client` if possible (is it meant for interfacing with the "native" GraphQL API's the WunderNode exposes?) diff --git a/packages/sdk/src/orm/index.ts b/packages/sdk/src/orm/index.ts index 36fd3f369..b91e246ca 100644 --- a/packages/sdk/src/orm/index.ts +++ b/packages/sdk/src/orm/index.ts @@ -1,3 +1,3 @@ -export * from '@wundergraph/orm'; +export * from '@undergraph-dev/orm'; export * from './executor'; diff --git a/packages/sdk/src/postman/builder.test.ts b/packages/sdk/src/postman/builder.test.ts index 8f471d771..879caf376 100644 --- a/packages/sdk/src/postman/builder.test.ts +++ b/packages/sdk/src/postman/builder.test.ts @@ -1,5 +1,5 @@ import fs from 'fs'; -import { OperationExecutionEngine, OperationType } from '@wundergraph/protobuf'; +import { OperationExecutionEngine, OperationType } from '@undergraph-dev/protobuf'; import { PostmanBuilder } from './builder'; import { GraphQLOperation } from '../graphql/operations'; diff --git a/packages/sdk/src/postman/builder.ts b/packages/sdk/src/postman/builder.ts index d46d6047f..c5cc93cca 100755 --- a/packages/sdk/src/postman/builder.ts +++ b/packages/sdk/src/postman/builder.ts @@ -1,4 +1,4 @@ -import { OperationType } from '@wundergraph/protobuf'; +import { OperationType } from '@undergraph-dev/protobuf'; import { JSONSchema7Definition } from 'json-schema'; import { Collection, Item, PropertyList, Request } from 'postman-collection'; import { GraphQLOperation } from '../graphql/operations'; diff --git a/packages/sdk/src/server/plugins/functions.ts b/packages/sdk/src/server/plugins/functions.ts index ad3b01e18..778d2b28d 100644 --- a/packages/sdk/src/server/plugins/functions.ts +++ b/packages/sdk/src/server/plugins/functions.ts @@ -1,6 +1,6 @@ import { FastifyPluginAsync } from 'fastify'; import path from 'path'; -import type { ORM } from '@wundergraph/orm'; +import type { ORM } from '@undergraph-dev/orm'; import type { TypeScriptOperationFile } from '../../graphql/operations'; import type { NodeJSOperation } from '../../operations'; diff --git a/packages/sdk/src/server/plugins/hooks.test.ts b/packages/sdk/src/server/plugins/hooks.test.ts index 03222a5eb..307d1c2b3 100644 --- a/packages/sdk/src/server/plugins/hooks.test.ts +++ b/packages/sdk/src/server/plugins/hooks.test.ts @@ -1,5 +1,5 @@ import { createServer } from '../server'; -import { OperationExecutionEngine, OperationType } from '@wundergraph/protobuf'; +import { OperationExecutionEngine, OperationType } from '@undergraph-dev/protobuf'; import { FastifyRequestBody, OnConnectionInitHookRequestBody, WunderGraphHooksAndServerConfig } from '../types'; export const getFastify = async (serverConfig: WunderGraphHooksAndServerConfig) => { diff --git a/packages/sdk/src/server/plugins/hooks.ts b/packages/sdk/src/server/plugins/hooks.ts index 53b305b75..b5147ff1e 100644 --- a/packages/sdk/src/server/plugins/hooks.ts +++ b/packages/sdk/src/server/plugins/hooks.ts @@ -11,7 +11,7 @@ import { WunderGraphRequest, WunderGraphResponse, } from '../types'; -import { OperationType, WunderGraphConfiguration } from '@wundergraph/protobuf'; +import { OperationType, WunderGraphConfiguration } from '@undergraph-dev/protobuf'; import { RawRequestDefaultExpression, RawServerDefault } from 'fastify/types/utils'; import { Headers } from '@whatwg-node/fetch'; import { FastifyRequest } from 'fastify'; diff --git a/packages/sdk/src/server/plugins/webhooks.ts b/packages/sdk/src/server/plugins/webhooks.ts index 1a9db62ea..3e88085f4 100644 --- a/packages/sdk/src/server/plugins/webhooks.ts +++ b/packages/sdk/src/server/plugins/webhooks.ts @@ -1,11 +1,11 @@ import { FastifyPluginAsync } from 'fastify'; import path from 'path'; -import type { ORM } from '@wundergraph/orm'; +import type { ORM } from '@undergraph-dev/orm'; import { Webhook, WebhookHeaders, WebhookQuery } from '../../webhooks/types'; import { Headers } from '@whatwg-node/fetch'; import type { RequestMethod } from '../types'; -import type { WebhookConfiguration } from '@wundergraph/protobuf'; +import type { WebhookConfiguration } from '@undergraph-dev/protobuf'; import process from 'node:process'; import { OperationsClient } from '../operations-client'; import { propagation, trace } from '@opentelemetry/api'; diff --git a/packages/sdk/src/server/server.ts b/packages/sdk/src/server/server.ts index 90fea714c..0ee6e9e23 100644 --- a/packages/sdk/src/server/server.ts +++ b/packages/sdk/src/server/server.ts @@ -3,7 +3,7 @@ import { Headers, fetch } from '@whatwg-node/fetch'; import process from 'node:process'; import { AsyncLocalStorage } from 'node:async_hooks'; import Fastify, { FastifyInstance } from 'fastify'; -import { ORM } from '@wundergraph/orm'; +import { ORM } from '@undergraph-dev/orm'; import { pino } from 'pino'; import path from 'path'; import fs from 'fs'; @@ -12,8 +12,8 @@ import { resolveConfigurationVariable } from '../configure/variables'; import { onParentProcessExit } from '../utils/process'; import { customGqlServerMountPath } from './util'; -import { EngineConfiguration, InternedString, WunderGraphConfiguration } from '@wundergraph/protobuf'; -import { ConfigurationVariableKind, DataSourceKind } from '@wundergraph/protobuf'; +import { EngineConfiguration, InternedString, WunderGraphConfiguration } from '@undergraph-dev/protobuf'; +import { ConfigurationVariableKind, DataSourceKind } from '@undergraph-dev/protobuf'; import type { WebhooksConfig } from '../webhooks/types'; import type { HooksRouteConfig } from './plugins/hooks'; import type { WebHookRouteConfig } from './plugins/webhooks'; diff --git a/packages/sdk/src/server/trace/config.ts b/packages/sdk/src/server/trace/config.ts index 28630c6a7..a6590be3e 100644 --- a/packages/sdk/src/server/trace/config.ts +++ b/packages/sdk/src/server/trace/config.ts @@ -1,4 +1,4 @@ -import { TelemetryOptions } from '@wundergraph/protobuf'; +import { TelemetryOptions } from '@undergraph-dev/protobuf'; import { TracerConfig } from '../types'; import { resolveConfigurationVariable } from '../../configure/variables'; diff --git a/packages/sdk/src/server/types.ts b/packages/sdk/src/server/types.ts index 5b5c87ecc..a82ed69de 100644 --- a/packages/sdk/src/server/types.ts +++ b/packages/sdk/src/server/types.ts @@ -1,6 +1,6 @@ import type { fetch } from '@whatwg-node/fetch'; import type { GraphQLServerConfig } from './plugins/graphql'; -import type { ConfigurationVariable, WunderGraphConfiguration } from '@wundergraph/protobuf'; +import type { ConfigurationVariable, WunderGraphConfiguration } from '@undergraph-dev/protobuf'; import type { WebhooksConfig } from '../webhooks/types'; import type { InputVariable } from '../configure/variables'; import type { ListenOptions, LoggerLevel, ResolvedListenOptions } from '../configure/options'; @@ -56,7 +56,7 @@ export interface OperationHookFunction { /** * The custom context can be used to add custom properties to the request context. * ```ts - * declare module "@wundergraph/sdk/server" { + * declare module "@undergraph-dev/sdk/server" { * interface CustomContext { * global: { * foo: string; diff --git a/packages/sdk/src/transformations/index.test.ts b/packages/sdk/src/transformations/index.test.ts index 171109033..e85e243d6 100644 --- a/packages/sdk/src/transformations/index.test.ts +++ b/packages/sdk/src/transformations/index.test.ts @@ -1,7 +1,7 @@ import { assert } from 'chai'; import { GraphQLApi } from '../definition'; import { parse, print } from 'graphql'; -import { ArgumentRenderConfiguration, ArgumentSource, DataSourceKind, HTTPMethod } from '@wundergraph/protobuf'; +import { ArgumentRenderConfiguration, ArgumentSource, DataSourceKind, HTTPMethod } from '@undergraph-dev/protobuf'; import transformApi from './index'; import { mapInputVariable } from '../configure/variables'; diff --git a/packages/sdk/src/transformations/replaceCustomScalars.ts b/packages/sdk/src/transformations/replaceCustomScalars.ts index df20d3f6c..a528a3ba8 100644 --- a/packages/sdk/src/transformations/replaceCustomScalars.ts +++ b/packages/sdk/src/transformations/replaceCustomScalars.ts @@ -1,6 +1,6 @@ import { GraphQLIntrospection, OpenAPIIntrospection, ReplaceCustomScalarTypeFieldConfiguration } from '../definition'; import { FieldDefinitionNode, InputValueDefinitionNode, parse, print, visit } from 'graphql'; -import { SingleTypeField } from '@wundergraph/protobuf'; +import { SingleTypeField } from '@undergraph-dev/protobuf'; export interface ReplaceCustomScalarsResult { schemaSDL: string; diff --git a/packages/sdk/src/v2openapi/index.ts b/packages/sdk/src/v2openapi/index.ts index ff79aff19..4e5ee6c66 100755 --- a/packages/sdk/src/v2openapi/index.ts +++ b/packages/sdk/src/v2openapi/index.ts @@ -37,7 +37,7 @@ import { HTTPHeader, HTTPMethod, hTTPMethodToJSON, -} from '@wundergraph/protobuf'; +} from '@undergraph-dev/protobuf'; import yaml from 'js-yaml'; import { OpenAPIV3 } from 'openapi-types'; import { diff --git a/packages/sdk/src/webhooks/verifiers.ts b/packages/sdk/src/webhooks/verifiers.ts index f6c31fd90..2d0e31380 100644 --- a/packages/sdk/src/webhooks/verifiers.ts +++ b/packages/sdk/src/webhooks/verifiers.ts @@ -1,4 +1,4 @@ -import { webhookVerifierKindFromJSON } from '@wundergraph/protobuf'; +import { webhookVerifierKindFromJSON } from '@undergraph-dev/protobuf'; import { EnvironmentVariable } from '../configure/variables'; export enum WebhookVerifierKind { diff --git a/packages/sdk/src/wunderctl/bin/run.ts b/packages/sdk/src/wunderctl/bin/run.ts index ecb36e17f..afc83b5e8 100644 --- a/packages/sdk/src/wunderctl/bin/run.ts +++ b/packages/sdk/src/wunderctl/bin/run.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node -import { cli } from '@wundergraph/wunderctl'; +import { cli } from '@undergraph-dev/wunderctl'; cli().catch((err: any) => { console.error(err); diff --git a/packages/sdk/src/wunderctlexec/index.ts b/packages/sdk/src/wunderctlexec/index.ts index c366e9dc4..1c54d99db 100644 --- a/packages/sdk/src/wunderctlexec/index.ts +++ b/packages/sdk/src/wunderctlexec/index.ts @@ -1,6 +1,6 @@ import execa from 'execa'; import fs from 'fs'; -import { wunderctlBinaryPath } from '@wundergraph/wunderctl'; +import { wunderctlBinaryPath } from '@undergraph-dev/wunderctl'; export interface WunderCtlExecArgs { cmd: string[]; diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index 3613d8d82..835aa413a 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/solid-query", + "name": "@undergraph-dev/solid-query", "version": "0.5.33", "license": "Apache-2.0", - "description": "WunderGraph Solid Query Integration", + "description": "UnderGraph Solid Query Integration", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -29,11 +29,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "peerDependencies": { "@tanstack/solid-query": "^4.29.1", - "@wundergraph/sdk": ">=0.110.0", + "@undergraph-dev/sdk": ">=0.110.0", "solid-js": "^1.5.7" }, "devDependencies": { @@ -47,7 +47,7 @@ "@testing-library/jest-dom": "^5.16.5", "@types/jest": "^28.1.1", "@types/node-fetch": "2.6.2", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "babel-jest": "^29.4.2", "babel-preset-solid": "^1.6.10", "jest": "^29.6.1", @@ -61,15 +61,15 @@ "tsup": "^6.7.0", "typescript": "^5.1.6" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "keywords": [ "tanstack", "solid-js", "solid-query", - "wundergraph" + "undergraph" ] } diff --git a/packages/solid-query/src/hooks.ts b/packages/solid-query/src/hooks.ts index c1b03b5a9..2c13ce5c7 100644 --- a/packages/solid-query/src/hooks.ts +++ b/packages/solid-query/src/hooks.ts @@ -5,8 +5,8 @@ import { QueryFunctionContext, } from '@tanstack/solid-query'; -import { OperationsDefinition, LogoutOptions, Client, UploadRequestOptions } from '@wundergraph/sdk/client'; -import { serialize } from '@wundergraph/sdk/internal'; +import { OperationsDefinition, LogoutOptions, Client, UploadRequestOptions } from '@undergraph-dev/sdk/client'; +import { serialize } from '@undergraph-dev/sdk/internal'; import { createEffect, mergeProps, onCleanup, splitProps } from 'solid-js'; import { createStore } from 'solid-js/store'; import { diff --git a/packages/solid-query/src/types.ts b/packages/solid-query/src/types.ts index 1ff06b72f..8fb732283 100644 --- a/packages/solid-query/src/types.ts +++ b/packages/solid-query/src/types.ts @@ -9,7 +9,7 @@ import { UploadRequestOptions, UploadRequestOptionsWithProfile, WithInput, -} from '@wundergraph/sdk/client'; +} from '@undergraph-dev/sdk/client'; import { CreateQueryOptions as CreateTanstackQueryOptions, @@ -19,7 +19,7 @@ import { MutateOptions, QueryClient, } from '@tanstack/solid-query'; -import { ResponseError } from '@wundergraph/sdk/client'; +import { ResponseError } from '@undergraph-dev/sdk/client'; import { Context } from 'solid-js'; export type QueryFetcher = { diff --git a/packages/solid-query/tests/hooks.test.tsx b/packages/solid-query/tests/hooks.test.tsx index 18cc8faa6..78758ca65 100644 --- a/packages/solid-query/tests/hooks.test.tsx +++ b/packages/solid-query/tests/hooks.test.tsx @@ -1,7 +1,7 @@ import { waitFor, screen, render, fireEvent } from '@solidjs/testing-library'; import { QueryCache, QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/solid-query'; import { createEffect, JSX } from 'solid-js'; -import { Client, ClientConfig, OperationsDefinition, ResponseError } from '@wundergraph/sdk/client'; +import { Client, ClientConfig, OperationsDefinition, ResponseError } from '@undergraph-dev/sdk/client'; import nock from 'nock'; import fetch from 'node-fetch'; diff --git a/packages/solid-query/tests/index.test-d.ts b/packages/solid-query/tests/index.test-d.ts index 0915392f9..c34d8d247 100644 --- a/packages/solid-query/tests/index.test-d.ts +++ b/packages/solid-query/tests/index.test-d.ts @@ -1,5 +1,5 @@ import { createHooks } from '../src'; -import { Client, ResponseError, OperationsDefinition, User } from '@wundergraph/sdk/client'; +import { Client, ResponseError, OperationsDefinition, User } from '@undergraph-dev/sdk/client'; import { expectType } from 'tsd'; import { CreateQueryResult } from '@tanstack/solid-query'; diff --git a/packages/svelte-query/package.json b/packages/svelte-query/package.json index 0c40a9929..32a221d11 100644 --- a/packages/svelte-query/package.json +++ b/packages/svelte-query/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/svelte-query", + "name": "@undergraph-dev/svelte-query", "version": "0.3.33", "license": "Apache-2.0", - "description": "WunderGraph Svelte Query Integration", + "description": "UnderGraph Svelte Query Integration", "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ @@ -27,11 +27,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "peerDependencies": { "@tanstack/svelte-query": "^4.29.1", - "@wundergraph/sdk": ">=0.143.0", + "@undergraph-dev/sdk": ">=0.143.0", "svelte": ">=3 <5" }, "devDependencies": { @@ -43,7 +43,7 @@ "@testing-library/svelte": "^3.2.2", "@types/jest": "^28.1.1", "@types/node-fetch": "2.6.2", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", "nock": "^13.2.9", @@ -53,14 +53,14 @@ "tsd": "^0.24.1", "typescript": "^5.1.6" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "keywords": [ "svelte-query", - "wundergraph", + "undergraph", "svelte" ] } diff --git a/packages/svelte-query/src/lib/createSvelteClient.ts b/packages/svelte-query/src/lib/createSvelteClient.ts index 2401f03cd..7e00c65d7 100644 --- a/packages/svelte-query/src/lib/createSvelteClient.ts +++ b/packages/svelte-query/src/lib/createSvelteClient.ts @@ -7,8 +7,8 @@ import { writable, derived } from 'svelte/store'; import type { Readable, Writable } from 'svelte/store'; import { onDestroy, onMount } from 'svelte'; import type { QueryFunctionContext } from '@tanstack/svelte-query'; -import type { OperationsDefinition, LogoutOptions, Client } from '@wundergraph/sdk/client'; -import { serialize } from '@wundergraph/sdk/internal'; +import type { OperationsDefinition, LogoutOptions, Client } from '@undergraph-dev/sdk/client'; +import { serialize } from '@undergraph-dev/sdk/internal'; import type { CreateFileUpload, CreateMutation, diff --git a/packages/svelte-query/src/lib/types.ts b/packages/svelte-query/src/lib/types.ts index 368d71483..97a2b3e94 100644 --- a/packages/svelte-query/src/lib/types.ts +++ b/packages/svelte-query/src/lib/types.ts @@ -7,7 +7,7 @@ import type { WithInput, UploadRequestOptions, ResponseError, -} from '@wundergraph/sdk/client'; +} from '@undergraph-dev/sdk/client'; import type { CreateQueryOptions as TanstackCreateQueryOptions, diff --git a/packages/svelte-query/tests/queryUtils.test.ts b/packages/svelte-query/tests/queryUtils.test.ts index 8e1bfc379..66691628e 100644 --- a/packages/svelte-query/tests/queryUtils.test.ts +++ b/packages/svelte-query/tests/queryUtils.test.ts @@ -1,5 +1,5 @@ import { QueryCache, QueryClient, QueryClientProvider, useQueryClient } from '@tanstack/svelte-query'; -import { Client, ClientConfig, GraphQLError, OperationsDefinition } from '@wundergraph/sdk/client'; +import { Client, ClientConfig, GraphQLError, OperationsDefinition } from '@undergraph-dev/sdk/client'; import nock from 'nock'; import fetch from 'node-fetch'; import { render, fireEvent, screen, waitFor, act } from '@testing-library/svelte'; diff --git a/packages/svelte-query/tests/svelte-query.test-d.ts b/packages/svelte-query/tests/svelte-query.test-d.ts index 9d557c62a..0a5854db5 100644 --- a/packages/svelte-query/tests/svelte-query.test-d.ts +++ b/packages/svelte-query/tests/svelte-query.test-d.ts @@ -1,6 +1,6 @@ import { createSvelteClient } from '../src/lib'; -import { Client } from '@wundergraph/sdk/client'; -import type { ResponseError, OperationsDefinition, User } from '@wundergraph/sdk/client'; +import { Client } from '@undergraph-dev/sdk/client'; +import type { ResponseError, OperationsDefinition, User } from '@undergraph-dev/sdk/client'; import { expectType } from 'tsd'; import { get } from 'svelte/store'; import type { CreateQueryResult } from '@tanstack/svelte-query'; diff --git a/packages/swr/package.json b/packages/swr/package.json index 4edeaced5..ed470a5fa 100644 --- a/packages/swr/package.json +++ b/packages/swr/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/swr", + "name": "@undergraph-dev/swr", "version": "0.19.3", "license": "Apache-2.0", - "description": "WunderGraph SWR Integration", + "description": "UnderGraph SWR Integration", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -26,13 +26,13 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "dependencies": { "react-ssr-prepass": "^1.5.0" }, "peerDependencies": { - "@wundergraph/sdk": ">=0.110.0", + "@undergraph-dev/sdk": ">=0.110.0", "react": "^16.8.0 || ^17.0.2 || ^18.0.0", "react-dom": "^16.8.0 || ^17.0.2 || ^18.0.0", "swr": "^2.2.0" @@ -46,7 +46,7 @@ "@types/node-fetch": "2.6.2", "@types/react": "^18.0.24", "@types/react-dom": "^18.0.6", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", "nock": "^13.2.9", @@ -58,14 +58,14 @@ "tsup": "^6.7.0", "typescript": "^5.1.6" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "keywords": [ "swr", - "wundergraph", + "undergraph", "react" ] } diff --git a/packages/swr/src/hooks.ts b/packages/swr/src/hooks.ts index e99edff50..dd610db89 100644 --- a/packages/swr/src/hooks.ts +++ b/packages/swr/src/hooks.ts @@ -1,8 +1,8 @@ import useSWR, { useSWRConfig } from 'swr'; import useSWRMutation from 'swr/mutation'; -import { OperationsDefinition, LogoutOptions, Client, ResponseError } from '@wundergraph/sdk/client'; -import { serialize } from '@wundergraph/sdk/internal'; +import { OperationsDefinition, LogoutOptions, Client, ResponseError } from '@undergraph-dev/sdk/client'; +import { serialize } from '@undergraph-dev/sdk/internal'; import { useCallback, useEffect, useRef, useState } from 'react'; import { QueryFetcher, diff --git a/packages/swr/src/types.ts b/packages/swr/src/types.ts index 45269806b..f39c7dba0 100644 --- a/packages/swr/src/types.ts +++ b/packages/swr/src/types.ts @@ -5,11 +5,11 @@ import { OperationsDefinition, SubscriptionRequestOptions, UploadRequestOptions, -} from '@wundergraph/sdk/client'; +} from '@undergraph-dev/sdk/client'; import { Key, SWRConfiguration, SWRResponse } from 'swr'; import { SWRMutationConfiguration, SWRMutationResponse } from 'swr/mutation'; -import { ResponseError } from '@wundergraph/sdk/client'; -import type { WithInput, ExtractProfileName, ExtractMeta } from '@wundergraph/sdk/client'; +import { ResponseError } from '@undergraph-dev/sdk/client'; +import type { WithInput, ExtractProfileName, ExtractMeta } from '@undergraph-dev/sdk/client'; export type QueryFetcher = { < diff --git a/packages/swr/tests/hooks.test.tsx b/packages/swr/tests/hooks.test.tsx index f6e9e1a76..7a4a6ccb1 100644 --- a/packages/swr/tests/hooks.test.tsx +++ b/packages/swr/tests/hooks.test.tsx @@ -2,13 +2,13 @@ import { act, waitFor, screen, render } from '@testing-library/react'; import React from 'react'; import { SWRConfig, unstable_serialize } from 'swr'; -import { Client, ClientConfig } from '@wundergraph/sdk/client'; +import { Client, ClientConfig } from '@undergraph-dev/sdk/client'; import nock from 'nock'; import fetch from 'node-fetch'; import { createHooks } from '../src'; -import { InputValidationError } from '@wundergraph/sdk/client'; -import { serialize } from '@wundergraph/sdk/internal'; +import { InputValidationError } from '@undergraph-dev/sdk/client'; +import { serialize } from '@undergraph-dev/sdk/internal'; export function sleep(time: number) { return new Promise((resolve) => setTimeout(resolve, time)); diff --git a/packages/swr/tests/swr.test-d.ts b/packages/swr/tests/swr.test-d.ts index 33dcc7f6c..9d6c3638e 100644 --- a/packages/swr/tests/swr.test-d.ts +++ b/packages/swr/tests/swr.test-d.ts @@ -1,4 +1,4 @@ -import { Client, ResponseError, OperationsDefinition, UploadResponse, User } from '@wundergraph/sdk/client'; +import { Client, ResponseError, OperationsDefinition, UploadResponse, User } from '@undergraph-dev/sdk/client'; import { expectType } from 'tsd'; import { SWRResponse } from 'swr'; import { createHooks } from '../src'; diff --git a/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.config.ts index e322133a0..74fe43980 100644 --- a/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.config.ts @@ -1,7 +1,7 @@ -import type { WunderGraphConfig } from '@wundergraph/sdk'; -import { graphql } from '@wundergraph/sdk/datasources'; +import type { WunderGraphConfig } from '@undergraph-dev/sdk'; +import { graphql } from '@undergraph-dev/sdk/datasources'; -import { dynamicTransport, mergeGraphQLRequests } from '@wundergraph/sdk/advanced-hooks'; +import { dynamicTransport, mergeGraphQLRequests } from '@undergraph-dev/sdk/advanced-hooks'; import { url1, url2, url3 } from './datasources'; diff --git a/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.server.ts index b3e104f81..33b249c36 100644 --- a/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/advanced-hooks/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; import config from './wundergraph.config'; diff --git a/packages/testsuite/apps/auth/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/auth/.wundergraph/wundergraph.config.ts index 870e47a5a..b69152563 100644 --- a/packages/testsuite/apps/auth/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/auth/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect, templates } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect, templates } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/auth/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/auth/.wundergraph/wundergraph.operations.ts index 3e8afca90..3015188ab 100644 --- a/packages/testsuite/apps/auth/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/auth/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { BaseOperationConfiguration, configureWunderGraphOperations } from '@wundergraph/sdk'; +import { BaseOperationConfiguration, configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/auth/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/auth/.wundergraph/wundergraph.server.ts index 02b893cbd..28d9669ff 100644 --- a/packages/testsuite/apps/auth/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/auth/.wundergraph/wundergraph.server.ts @@ -8,7 +8,7 @@ import { GraphQLInputObjectType, GraphQLNonNull, } from 'graphql'; -import { AuthenticationResponse, configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { AuthenticationResponse, configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/apps/auth/auth.test.ts b/packages/testsuite/apps/auth/auth.test.ts index b28861cd6..304af313f 100644 --- a/packages/testsuite/apps/auth/auth.test.ts +++ b/packages/testsuite/apps/auth/auth.test.ts @@ -1,6 +1,6 @@ import { beforeAll, describe, expect, it } from 'vitest'; import * as jose from 'jose'; -import { AuthorizationError, ClientResponse, ResponseError } from '@wundergraph/sdk/client'; +import { AuthorizationError, ClientResponse, ResponseError } from '@undergraph-dev/sdk/client'; const keyID = '123456'; const keyAlgorithm = 'RS256'; diff --git a/packages/testsuite/apps/basic/.wundergraph/errors/errors.ts b/packages/testsuite/apps/basic/.wundergraph/errors/errors.ts index e33216e7c..2eb7f0c62 100644 --- a/packages/testsuite/apps/basic/.wundergraph/errors/errors.ts +++ b/packages/testsuite/apps/basic/.wundergraph/errors/errors.ts @@ -1,4 +1,4 @@ -import { OperationError } from '@wundergraph/sdk/operations'; +import { OperationError } from '@undergraph-dev/sdk/operations'; export class NotFoundErr extends OperationError { statusCode = 404; diff --git a/packages/testsuite/apps/basic/.wundergraph/webhooks/operations.ts b/packages/testsuite/apps/basic/.wundergraph/webhooks/operations.ts index 841a7db71..97e3cd909 100644 --- a/packages/testsuite/apps/basic/.wundergraph/webhooks/operations.ts +++ b/packages/testsuite/apps/basic/.wundergraph/webhooks/operations.ts @@ -1,4 +1,4 @@ -import type { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import type { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; import { createWebhook } from '../generated/wundergraph.webhooks'; const webhook = createWebhook({ diff --git a/packages/testsuite/apps/basic/.wundergraph/webhooks/simple-with-input.ts b/packages/testsuite/apps/basic/.wundergraph/webhooks/simple-with-input.ts index 930eda395..2bfa4940b 100644 --- a/packages/testsuite/apps/basic/.wundergraph/webhooks/simple-with-input.ts +++ b/packages/testsuite/apps/basic/.wundergraph/webhooks/simple-with-input.ts @@ -1,4 +1,4 @@ -import type { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import type { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; import { createWebhook } from '../generated/wundergraph.webhooks'; const webhook = createWebhook({ diff --git a/packages/testsuite/apps/basic/.wundergraph/webhooks/simple.ts b/packages/testsuite/apps/basic/.wundergraph/webhooks/simple.ts index 5f3e63f73..304828163 100644 --- a/packages/testsuite/apps/basic/.wundergraph/webhooks/simple.ts +++ b/packages/testsuite/apps/basic/.wundergraph/webhooks/simple.ts @@ -1,4 +1,4 @@ -import type { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import type { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; import { createWebhook } from '../generated/wundergraph.webhooks'; const webhook = createWebhook({ diff --git a/packages/testsuite/apps/basic/.wundergraph/webhooks/verified.ts b/packages/testsuite/apps/basic/.wundergraph/webhooks/verified.ts index 7fba9d33d..7b9263dee 100644 --- a/packages/testsuite/apps/basic/.wundergraph/webhooks/verified.ts +++ b/packages/testsuite/apps/basic/.wundergraph/webhooks/verified.ts @@ -1,4 +1,4 @@ -import type { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import type { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; import { createWebhook } from '../generated/wundergraph.webhooks'; const webhook = createWebhook({ diff --git a/packages/testsuite/apps/basic/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/basic/.wundergraph/wundergraph.config.ts index d0d88cbac..ba3a7dc4f 100644 --- a/packages/testsuite/apps/basic/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/basic/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { authProviders, configureWunderGraphApplication, cors, introspect } from '@wundergraph/sdk'; +import { authProviders, configureWunderGraphApplication, cors, introspect } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; import generate from './wundergraph.generate'; diff --git a/packages/testsuite/apps/basic/.wundergraph/wundergraph.generate.ts b/packages/testsuite/apps/basic/.wundergraph/wundergraph.generate.ts index de9bece45..92589ba1a 100644 --- a/packages/testsuite/apps/basic/.wundergraph/wundergraph.generate.ts +++ b/packages/testsuite/apps/basic/.wundergraph/wundergraph.generate.ts @@ -1,5 +1,5 @@ -import { configureWunderGraphGeneration, templates } from '@wundergraph/sdk'; -import { rustClient } from '@wundergraph/rust-client'; +import { configureWunderGraphGeneration, templates } from '@undergraph-dev/sdk'; +import { rustClient } from '@undergraph-dev/rust-client'; export default configureWunderGraphGeneration({ codeGenerators: [ diff --git a/packages/testsuite/apps/basic/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/basic/.wundergraph/wundergraph.operations.ts index 9ce61b333..9c53c217c 100755 --- a/packages/testsuite/apps/basic/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/basic/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations, enableCaching } from '@wundergraph/sdk'; +import { configureWunderGraphOperations, enableCaching } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/basic/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/basic/.wundergraph/wundergraph.server.ts index 11c8174d7..8c9b01b42 100644 --- a/packages/testsuite/apps/basic/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/basic/.wundergraph/wundergraph.server.ts @@ -3,7 +3,7 @@ import { EnvironmentVariable, WebhookVerifierKind, configureWunderGraphServer, -} from '@wundergraph/sdk/server'; +} from '@undergraph-dev/sdk/server'; import { GraphQLNonNull, GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql/index'; import { GraphQLExecutionContext } from './generated/wundergraph.server'; class GlobalContext { @@ -27,7 +27,7 @@ class RequestContext { } } -declare module '@wundergraph/sdk/server' { +declare module '@undergraph-dev/sdk/server' { export interface CustomContext { global: GlobalContext; request: RequestContext; diff --git a/packages/testsuite/apps/basic/json-schema.test.ts b/packages/testsuite/apps/basic/json-schema.test.ts index ab60f777b..67d732c90 100644 --- a/packages/testsuite/apps/basic/json-schema.test.ts +++ b/packages/testsuite/apps/basic/json-schema.test.ts @@ -1,6 +1,6 @@ import { beforeAll, describe, expect, it } from 'vitest'; import { createTestServer } from './.wundergraph/generated/testing'; -import { InputValidationError } from '@wundergraph/sdk/client'; +import { InputValidationError } from '@undergraph-dev/sdk/client'; const wg = createTestServer({ dir: __dirname, diff --git a/packages/testsuite/apps/hooks/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/hooks/.wundergraph/wundergraph.config.ts index f92a79ec3..963459660 100644 --- a/packages/testsuite/apps/hooks/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/hooks/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, cors, introspect, templates } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, introspect, templates } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/hooks/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/hooks/.wundergraph/wundergraph.operations.ts index 43fe9f496..d28cc8772 100644 --- a/packages/testsuite/apps/hooks/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/hooks/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/hooks/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/hooks/.wundergraph/wundergraph.server.ts index e8d1f62bb..0b304b707 100644 --- a/packages/testsuite/apps/hooks/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/hooks/.wundergraph/wundergraph.server.ts @@ -1,7 +1,7 @@ import { GraphQLObjectType, GraphQLSchema, GraphQLString, GraphQLInt, GraphQLFloat, GraphQLBoolean } from 'graphql'; -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; -import { ResponseError } from '@wundergraph/sdk/client'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; +import { ResponseError } from '@undergraph-dev/sdk/client'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.config.ts index 7655bc267..16ecc1689 100644 --- a/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.config.ts @@ -4,7 +4,7 @@ import { introspect, templates, configureWunderGraphGeneration, -} from '@wundergraph/sdk'; +} from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.operations.ts index 43fe9f496..d28cc8772 100644 --- a/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.server.ts index 54a3f6ce8..df5ebe49a 100644 --- a/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/http-proxy/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/apps/mock/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/mock/.wundergraph/wundergraph.config.ts index 516bbc761..a12d2934d 100644 --- a/packages/testsuite/apps/mock/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/mock/.wundergraph/wundergraph.config.ts @@ -4,7 +4,7 @@ import { introspect, templates, configureWunderGraphGeneration, -} from '@wundergraph/sdk'; +} from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/mock/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/mock/.wundergraph/wundergraph.operations.ts index d0894b186..515012fb2 100644 --- a/packages/testsuite/apps/mock/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/mock/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations, enableCaching } from '@wundergraph/sdk'; +import { configureWunderGraphOperations, enableCaching } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/mock/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/mock/.wundergraph/wundergraph.server.ts index 54a3f6ce8..df5ebe49a 100644 --- a/packages/testsuite/apps/mock/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/mock/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/apps/mock/test/start-stop-servers.test.ts b/packages/testsuite/apps/mock/test/start-stop-servers.test.ts index e9cdd0f78..062f32ba4 100644 --- a/packages/testsuite/apps/mock/test/start-stop-servers.test.ts +++ b/packages/testsuite/apps/mock/test/start-stop-servers.test.ts @@ -1,5 +1,5 @@ import { describe, it } from 'vitest'; -import { WunderGraphMockServer, WunderGraphTestServer, WunderGraphTestServers } from '@wundergraph/sdk/testing'; +import { WunderGraphMockServer, WunderGraphTestServer, WunderGraphTestServers } from '@undergraph-dev/sdk/testing'; describe('Stop servers', () => { it('Should be possible to stop the server with the cleanup function returned by stop()', async () => { diff --git a/packages/testsuite/apps/mock/types.ts b/packages/testsuite/apps/mock/types.ts index b260f964a..5db1f48d3 100644 --- a/packages/testsuite/apps/mock/types.ts +++ b/packages/testsuite/apps/mock/types.ts @@ -1,4 +1,4 @@ -import { TestServers } from '@wundergraph/sdk/testing'; +import { TestServers } from '@undergraph-dev/sdk/testing'; export interface TestContext { ts: TestServers; diff --git a/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.config.ts index ffef2f0e8..2d98eb5d9 100644 --- a/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.config.ts @@ -3,7 +3,7 @@ import { introspect, templates, configureWunderGraphGeneration, -} from '@wundergraph/sdk'; +} from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; import { z } from 'zod'; diff --git a/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.operations.ts index 43fe9f496..d28cc8772 100644 --- a/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.server.ts index e827ea702..f5027f971 100644 --- a/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/nats-kv/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/apps/openapi/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/openapi/.wundergraph/wundergraph.config.ts index f0721135d..31344e485 100644 --- a/packages/testsuite/apps/openapi/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/openapi/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect, templates } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect, templates } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/openapi/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/openapi/.wundergraph/wundergraph.operations.ts index 47ccae4b1..38f44c4c7 100644 --- a/packages/testsuite/apps/openapi/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/openapi/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; import type { OperationsConfiguration } from './generated/wundergraph.operations'; export default configureWunderGraphOperations({ diff --git a/packages/testsuite/apps/openapi/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/openapi/.wundergraph/wundergraph.server.ts index 15ee9bdb4..d40d56714 100644 --- a/packages/testsuite/apps/openapi/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/openapi/.wundergraph/wundergraph.server.ts @@ -1,5 +1,5 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; -import { getHttpResponseError } from '@wundergraph/sdk/client'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; +import { getHttpResponseError } from '@undergraph-dev/sdk/client'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/apps/openapi/openapi.test.ts b/packages/testsuite/apps/openapi/openapi.test.ts index 4768b0004..0352fe7ac 100644 --- a/packages/testsuite/apps/openapi/openapi.test.ts +++ b/packages/testsuite/apps/openapi/openapi.test.ts @@ -2,7 +2,7 @@ import { afterAll, beforeAll, describe, expect, test } from 'vitest'; import { createTestServer } from './.wundergraph/generated/testing'; import { createOpenAPITestServer } from './test-server'; -import { getHttpResponseError, ResponseError } from '@wundergraph/sdk/client'; +import { getHttpResponseError, ResponseError } from '@undergraph-dev/sdk/client'; const httpServer = createOpenAPITestServer(8090); const wg = createTestServer({ diff --git a/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.config.ts index 8836493c0..3c856c522 100644 --- a/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.operations.ts index a6ee6c1d1..2a4814d91 100755 --- a/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations, enableCaching } from '@wundergraph/sdk'; +import { configureWunderGraphOperations, enableCaching } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.server.ts index 35ff92884..73061eca4 100644 --- a/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/opentelemetry/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/apps/orm/.wundergraph/webhooks/country.ts b/packages/testsuite/apps/orm/.wundergraph/webhooks/country.ts index 60fbba2e3..e08da8c90 100644 --- a/packages/testsuite/apps/orm/.wundergraph/webhooks/country.ts +++ b/packages/testsuite/apps/orm/.wundergraph/webhooks/country.ts @@ -1,4 +1,4 @@ -import type { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import type { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; import { createWebhook } from '../generated/wundergraph.webhooks'; export default createWebhook, WebhookHttpResponse<{ name: string }>>({ diff --git a/packages/testsuite/apps/orm/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/orm/.wundergraph/wundergraph.config.ts index 6562f327f..5ab78d4c7 100644 --- a/packages/testsuite/apps/orm/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/orm/.wundergraph/wundergraph.config.ts @@ -4,7 +4,7 @@ import { templates, configureWunderGraphGeneration, EnvironmentVariable, -} from '@wundergraph/sdk'; +} from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/orm/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/orm/.wundergraph/wundergraph.operations.ts index 43fe9f496..d28cc8772 100644 --- a/packages/testsuite/apps/orm/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/orm/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/packages/testsuite/apps/orm/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/orm/.wundergraph/wundergraph.server.ts index 846d41a66..b604a298b 100644 --- a/packages/testsuite/apps/orm/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/orm/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; import { buildSchema, GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql'; export default configureWunderGraphServer(() => ({ diff --git a/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.config.ts b/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.config.ts index a274a4f5d..c83f67f2b 100644 --- a/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.config.ts +++ b/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, EnvironmentVariable, introspect } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.operations.ts b/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.operations.ts index 47ccae4b1..38f44c4c7 100644 --- a/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.operations.ts +++ b/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; import type { OperationsConfiguration } from './generated/wundergraph.operations'; export default configureWunderGraphOperations({ diff --git a/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.server.ts b/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.server.ts index 54a3f6ce8..df5ebe49a 100644 --- a/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.server.ts +++ b/packages/testsuite/apps/schema-extensions/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/packages/testsuite/package.json b/packages/testsuite/package.json index e0eb66992..84de8a768 100644 --- a/packages/testsuite/package.json +++ b/packages/testsuite/package.json @@ -2,7 +2,7 @@ "private": "true", "name": "testsuite", "version": "0.0.1", - "description": "Integration tests for WunderGraph SDK", + "description": "Integration tests for UnderGraph SDK", "scripts": { "test": "VITEST_MIN_THREADS=2 VITEST_MAX_THREADS=4 vitest run", "test:ci": "vitest run", @@ -18,15 +18,15 @@ "@opensearch-project/opensearch": "^2.2.1", "@opentelemetry/otlp-proto-exporter-base": "^0.39.1", "@opentelemetry/otlp-transformer": "^0.39.1", - "@wundergraph/sdk": "workspace:*", - "@wundergraph/wunderctl": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", + "@undergraph-dev/wunderctl": "workspace:*", "graphql": "^16.3.0", "zod": "^3.22.3" }, "devDependencies": { "@graphql-yoga/node": "^2.13.13", "@prisma/client": "^4.15.0", - "@wundergraph/rust-client": "workspace:^", + "@undergraph-dev/rust-client": "workspace:^", "execa": "5.1.1", "fastify": "^4.10.2", "graphql-request": "^6.0.0", diff --git a/packages/testsuite/setup/generate.ts b/packages/testsuite/setup/generate.ts index acd676756..642cd20d8 100644 --- a/packages/testsuite/setup/generate.ts +++ b/packages/testsuite/setup/generate.ts @@ -1,6 +1,6 @@ import execa from 'execa'; import { join } from 'node:path'; -import { wunderctlBinaryPath } from '@wundergraph/wunderctl'; +import { wunderctlBinaryPath } from '@undergraph-dev/wunderctl'; export interface BuildOptions { env?: Record; diff --git a/packages/vue-query/package.json b/packages/vue-query/package.json index 3c8fc12e1..0485660bc 100644 --- a/packages/vue-query/package.json +++ b/packages/vue-query/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/vue-query", + "name": "@undergraph-dev/vue-query", "version": "0.2.33", "license": "Apache-2.0", - "description": "WunderGraph Vue Query Integration", + "description": "UnderGraph Vue Query Integration", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -29,11 +29,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, "peerDependencies": { "@tanstack/vue-query": "^4.27.0", - "@wundergraph/sdk": ">=0.143.0", + "@undergraph-dev/sdk": ">=0.143.0", "vue": "^3.2.47" }, "devDependencies": { @@ -45,7 +45,7 @@ "@testing-library/vue": "^7.0.0", "@types/jest": "^28.1.1", "@types/node-fetch": "2.6.2", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "jest": "^29.6.1", "jest-environment-jsdom": "^29.6.1", "nock": "^13.2.9", @@ -55,10 +55,10 @@ "typescript": "^5.1.6", "vue": "^3.3.4" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "contributors": [ { @@ -68,7 +68,7 @@ ], "keywords": [ "vue-query", - "wundergraph", + "undergraph", "vue" ] } diff --git a/packages/vue-query/src/hooks.ts b/packages/vue-query/src/hooks.ts index c3f6ddfe1..397817ecc 100644 --- a/packages/vue-query/src/hooks.ts +++ b/packages/vue-query/src/hooks.ts @@ -7,8 +7,8 @@ import { QueryFunctionContext, } from '@tanstack/vue-query'; -import { OperationsDefinition, LogoutOptions, Client } from '@wundergraph/sdk/client'; -import { serialize } from '@wundergraph/sdk/internal'; +import { OperationsDefinition, LogoutOptions, Client } from '@undergraph-dev/sdk/client'; +import { serialize } from '@undergraph-dev/sdk/internal'; import { QueryFetcher, MutationFetcher, diff --git a/packages/vue-query/src/types.ts b/packages/vue-query/src/types.ts index f851e83ca..d834fa6e1 100644 --- a/packages/vue-query/src/types.ts +++ b/packages/vue-query/src/types.ts @@ -8,7 +8,7 @@ import { SubscriptionRequestOptions, UploadRequestOptions, WithInput, -} from '@wundergraph/sdk/client'; +} from '@undergraph-dev/sdk/client'; import { UseQueryOptions as UseTanstackQueryOptions, @@ -32,7 +32,7 @@ export type MaybeRefDeep = MaybeRef< import { MutationObserverOptions } from '@tanstack/query-core'; -import { ResponseError } from '@wundergraph/sdk/client'; +import { ResponseError } from '@undergraph-dev/sdk/client'; export type QueryFetcher = { < diff --git a/packages/vue-query/tests/hooks.test.ts b/packages/vue-query/tests/hooks.test.ts index bd838fa3f..565490366 100644 --- a/packages/vue-query/tests/hooks.test.ts +++ b/packages/vue-query/tests/hooks.test.ts @@ -1,7 +1,7 @@ import { waitFor, screen, render, fireEvent } from '@testing-library/vue'; import { QueryCache, QueryClient, useQueryClient, VueQueryPlugin } from '@tanstack/vue-query'; -import { Client, ClientConfig, OperationsDefinition, ResponseError } from '@wundergraph/sdk/client'; +import { Client, ClientConfig, OperationsDefinition, ResponseError } from '@undergraph-dev/sdk/client'; import nock from 'nock'; import fetch from 'node-fetch'; diff --git a/packages/vue-query/tests/index.test-d.ts b/packages/vue-query/tests/index.test-d.ts index 182b4b905..ae140344b 100644 --- a/packages/vue-query/tests/index.test-d.ts +++ b/packages/vue-query/tests/index.test-d.ts @@ -1,5 +1,5 @@ import { createHooks } from '../src'; -import { Client, ResponseError, OperationsDefinition, User } from '@wundergraph/sdk/client'; +import { Client, ResponseError, OperationsDefinition, User } from '@undergraph-dev/sdk/client'; import { expectType } from 'tsd'; import { UseQueryReturnType } from '@tanstack/vue-query'; import { unref } from 'vue'; diff --git a/packages/wunderctl/package.json b/packages/wunderctl/package.json index 0466ce3ef..9dcbc9090 100644 --- a/packages/wunderctl/package.json +++ b/packages/wunderctl/package.json @@ -1,8 +1,8 @@ { - "name": "@wundergraph/wunderctl", + "name": "@undergraph-dev/wunderctl", "version": "0.180.0", "license": "Apache-2.0", - "description": "WunderGraph Command Line Interface", + "description": "UnderGraph Command Line Interface", "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ @@ -24,15 +24,15 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "devDependencies": { "@types/debug": "^4.1.7", diff --git a/pkg/codegeneration/application.go b/pkg/codegeneration/application.go index 3c8eaa2dc..ce4aa4459 100644 --- a/pkg/codegeneration/application.go +++ b/pkg/codegeneration/application.go @@ -26,7 +26,7 @@ var ( wunderGraphFactoryTemplate = template.Must(template.New(applicationEntryPointFilename).Parse(` // Code generated by wunderctl. DO NOT EDIT. -import { createWunderGraphApplication } from "@wundergraph/sdk"; +import { createWunderGraphApplication } from "@undergraph-dev/sdk"; import config from '../wundergraph.config'; {{ if .HasWunderGraphServerTs }}import server from '../wundergraph.server';{{ end }} diff --git a/pkg/operations/operations.go b/pkg/operations/operations.go index 0b2a8c7c1..b7b0c3649 100644 --- a/pkg/operations/operations.go +++ b/pkg/operations/operations.go @@ -107,7 +107,7 @@ import type { InternalOperationsClient } from "./wundergraph.internal.operations import type { ORM } from './orm' import type { Role } from "./wundergraph.server"; import type { CustomClaims } from "./claims"; -import { createOperationFactory } from "@wundergraph/sdk/operations"; +import { createOperationFactory } from "@undergraph-dev/sdk/operations"; {{ if .HasWunderGraphServerTs }} import type server from '../wundergraph.server'; @@ -120,11 +120,11 @@ export type ContextType = never; {{ end }} import type { Queries, Mutations } from "./jsonschema"; -import type { IOpenaiAgentFactory } from "@wundergraph/sdk/openai" +import type { IOpenaiAgentFactory } from "@undergraph-dev/sdk/openai" export type QueriesAndMutations = Queries & Mutations; export type OpenApiAgentFactory = IOpenaiAgentFactory; -export { z, AuthorizationError } from "@wundergraph/sdk/operations"; +export { z, AuthorizationError } from "@undergraph-dev/sdk/operations"; export const createOperation = createOperationFactory();`, )) ) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a5ef1a330..0ead09510 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -262,7 +262,7 @@ importers: packages/golang-client: dependencies: - '@wundergraph/protobuf': + '@undergraph-dev/protobuf': specifier: workspace:^0.118.2 version: link:../protobuf execa: @@ -293,7 +293,7 @@ importers: '@types/object-hash': specifier: ^1.3.4 version: 1.3.4 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:^0.184.2 version: link:../sdk typescript: @@ -333,10 +333,10 @@ importers: packages/nextjs: dependencies: - '@wundergraph/protobuf': + '@undergraph-dev/protobuf': specifier: workspace:^0.118.2 version: link:../protobuf - '@wundergraph/swr': + '@undergraph-dev/swr': specifier: workspace:* version: link:../swr handlebars: @@ -370,7 +370,7 @@ importers: '@types/react': specifier: ^18.0.6 version: 18.0.35 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk jest: @@ -507,7 +507,7 @@ importers: '@types/react-dom': specifier: ^18.0.6 version: 18.0.8 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk jest: @@ -565,7 +565,7 @@ importers: '@types/relay-runtime': specifier: ^14.1.10 version: 14.1.10 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk jest: @@ -598,7 +598,7 @@ importers: packages/rust-client: dependencies: - '@wundergraph/protobuf': + '@undergraph-dev/protobuf': specifier: workspace:^0.118.2 version: link:../protobuf execa: @@ -629,7 +629,7 @@ importers: '@types/object-hash': specifier: ^1.3.4 version: 1.3.4 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:^0.184.2 version: link:../sdk typescript: @@ -698,21 +698,21 @@ importers: '@prisma/generator-helper': specifier: ^3.9.2 version: 3.15.2 - '@whatwg-node/fetch': - specifier: ^0.9.13 - version: 0.9.13 - '@wundergraph/orm': + '@undergraph-dev/orm': specifier: workspace:* version: link:../orm - '@wundergraph/protobuf': + '@undergraph-dev/protobuf': specifier: workspace:^0.118.2 version: link:../protobuf + '@undergraph-dev/wunderctl': + specifier: workspace:^0.180.0 + version: link:../wunderctl + '@whatwg-node/fetch': + specifier: ^0.9.13 + version: 0.9.13 '@wundergraph/straightforward': specifier: ^4.2.5 version: 4.2.5 - '@wundergraph/wunderctl': - specifier: workspace:^0.180.0 - version: link:../wunderctl axios: specifier: ^0.26.1 version: 0.26.1(debug@4.3.4) @@ -930,7 +930,7 @@ importers: '@types/node-fetch': specifier: 2.6.2 version: 2.6.2 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk babel-jest: @@ -996,7 +996,7 @@ importers: '@types/node-fetch': specifier: 2.6.2 version: 2.6.2 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk jest: @@ -1054,7 +1054,7 @@ importers: '@types/react-dom': specifier: ^18.0.6 version: 18.0.8 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk jest: @@ -1099,10 +1099,10 @@ importers: '@opentelemetry/otlp-transformer': specifier: ^0.39.1 version: 0.39.1(@opentelemetry/api@1.4.1) - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk - '@wundergraph/wunderctl': + '@undergraph-dev/wunderctl': specifier: workspace:* version: link:../wunderctl graphql: @@ -1118,7 +1118,7 @@ importers: '@prisma/client': specifier: ^4.15.0 version: 4.15.0(prisma@4.15.0) - '@wundergraph/rust-client': + '@undergraph-dev/rust-client': specifier: workspace:^ version: link:../rust-client execa: @@ -1178,7 +1178,7 @@ importers: '@types/node-fetch': specifier: 2.6.2 version: 2.6.2 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../sdk jest: @@ -1248,10 +1248,10 @@ importers: '@types/node': specifier: ^18.16.0 version: 18.16.0 - '@wundergraph/golang-client': + '@undergraph-dev/golang-client': specifier: workspace:* version: link:../../packages/golang-client - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk graphql: @@ -1294,13 +1294,13 @@ importers: '@rnx-kit/metro-resolver-symlinks': specifier: ^0.1.27 version: 0.1.27 - '@wundergraph/metro-config': + '@undergraph-dev/metro-config': specifier: workspace:* version: link:../../packages/metro-config - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk - '@wundergraph/swr': + '@undergraph-dev/swr': specifier: workspace:* version: link:../../packages/swr expo: @@ -1340,10 +1340,10 @@ importers: testapps/nextauth: dependencies: - '@wundergraph/nextjs': + '@undergraph-dev/nextjs': specifier: workspace:* version: link:../../packages/nextjs - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk graphql: @@ -1401,16 +1401,16 @@ importers: '@tanstack/react-query': specifier: ^4.20.4 version: 4.20.4(react-dom@18.2.0)(react@18.2.0) - '@wundergraph/nextjs': + '@undergraph-dev/nextjs': specifier: workspace:* version: link:../../packages/nextjs - '@wundergraph/react-query': + '@undergraph-dev/react-query': specifier: workspace:* version: link:../../packages/react-query - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk - '@wundergraph/swr': + '@undergraph-dev/swr': specifier: workspace:* version: link:../../packages/swr next: @@ -1456,13 +1456,13 @@ importers: testapps/nextjs-integrations: dependencies: - '@wundergraph/nextjs': + '@undergraph-dev/nextjs': specifier: workspace:* version: link:../../packages/nextjs - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk - '@wundergraph/swr': + '@undergraph-dev/swr': specifier: workspace:* version: link:../../packages/swr next: @@ -1514,19 +1514,19 @@ importers: '@tanstack/react-query': specifier: ^4.20.4 version: 4.20.4(react-dom@18.2.0)(react@18.2.0) - '@wundergraph/nextjs': + '@undergraph-dev/nextjs': specifier: workspace:* version: link:../../packages/nextjs - '@wundergraph/react-query': + '@undergraph-dev/react-query': specifier: workspace:* version: link:../../packages/react-query - '@wundergraph/react-relay': + '@undergraph-dev/react-relay': specifier: workspace:* version: link:../../packages/react-relay - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk - '@wundergraph/swr': + '@undergraph-dev/swr': specifier: workspace:* version: link:../../packages/swr next: @@ -1593,7 +1593,7 @@ importers: '@types/node': specifier: ^18.16.0 version: 18.16.0 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: file:packages/sdk graphql: @@ -1603,7 +1603,7 @@ importers: specifier: ^5.1.6 version: 5.1.6 dependenciesMeta: - '@wundergraph/sdk': + '@undergraph-dev/sdk': injected: true testapps/rust: @@ -1611,7 +1611,7 @@ importers: '@types/node': specifier: ^18.16.0 version: 18.16.16 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk graphql: @@ -1621,7 +1621,7 @@ importers: specifier: ^5.1.6 version: 5.1.6 devDependencies: - '@wundergraph/rust-client': + '@undergraph-dev/rust-client': specifier: workspace:^ version: link:../../packages/rust-client @@ -1630,7 +1630,7 @@ importers: '@types/node': specifier: ^18.16.0 version: 18.16.0 - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk graphql: @@ -1642,10 +1642,10 @@ importers: testapps/vite: dependencies: - '@wundergraph/sdk': + '@undergraph-dev/sdk': specifier: workspace:* version: link:../../packages/sdk - '@wundergraph/swr': + '@undergraph-dev/swr': specifier: workspace:* version: link:../../packages/swr react: @@ -6035,7 +6035,7 @@ packages: '@graphql-mesh/types': 0.96.0(@graphql-mesh/store@0.96.0)(@graphql-tools/utils@9.2.1)(graphql@16.6.0)(tslib@2.6.2) '@graphql-tools/delegate': 10.0.3(graphql@16.6.0) '@graphql-tools/utils': 9.2.1(graphql@16.6.0) - '@whatwg-node/fetch': 0.9.13 + '@whatwg-node/fetch': 0.9.14 dset: 3.1.3 graphql: 16.6.0 js-yaml: 4.1.0 @@ -8083,7 +8083,7 @@ packages: '@graphql-mesh/utils': 0.96.0(@graphql-mesh/cross-helpers@0.4.1)(@graphql-mesh/types@0.96.0)(@graphql-tools/utils@9.2.1)(graphql@16.6.0)(tslib@2.6.2) '@graphql-tools/utils': 9.2.1(graphql@16.6.0) '@json-schema-tools/meta-schema': 1.7.0 - '@whatwg-node/fetch': 0.9.13 + '@whatwg-node/fetch': 0.9.14 ajv: 8.12.0 ajv-formats: 2.1.1(ajv@8.12.0) dset: 3.1.3 @@ -28958,7 +28958,7 @@ packages: file:packages/sdk: resolution: {directory: packages/sdk, type: directory} - name: '@wundergraph/sdk' + name: '@undergraph-dev/sdk' hasBin: true requiresBuild: true dependencies: @@ -28982,6 +28982,12 @@ packages: '@opentelemetry/sdk-trace-node': 1.17.1(@opentelemetry/api@1.6.0) '@opentelemetry/semantic-conventions': 1.17.1 '@prisma/generator-helper': 3.15.2 + '@undergraph-dev/orm': link:packages/orm + '@undergraph-dev/protobuf': link:packages/protobuf + '@undergraph-dev/wunderctl': link:packages/wunderctl + '@undergraph/orm': link:packages/orm + '@undergraph/protobuf': link:packages/protobuf + '@undergraph/wunderctl': link:packages/wunderctl '@whatwg-node/fetch': 0.9.14 '@wundergraph/orm': link:packages/orm '@wundergraph/protobuf': link:packages/protobuf diff --git a/testapps/default/.wundergraph/webhooks/github.ts b/testapps/default/.wundergraph/webhooks/github.ts index 73f44b3f9..5eccce5f8 100644 --- a/testapps/default/.wundergraph/webhooks/github.ts +++ b/testapps/default/.wundergraph/webhooks/github.ts @@ -1,6 +1,6 @@ import localImported from './../../local-import'; import { buildSchema } from 'graphql'; -import type { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import type { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; import { createWebhook } from '../generated/wundergraph.webhooks'; import type { WebhookEvent } from '@octokit/webhooks-types'; diff --git a/testapps/default/.wundergraph/webhooks/stripe.ts b/testapps/default/.wundergraph/webhooks/stripe.ts index 3f19bdf66..291806e28 100644 --- a/testapps/default/.wundergraph/webhooks/stripe.ts +++ b/testapps/default/.wundergraph/webhooks/stripe.ts @@ -1,7 +1,7 @@ import { createWebhook } from '../generated/wundergraph.webhooks'; import Stripe from 'stripe'; -import { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; export default createWebhook, WebhookHttpResponse<{ type: string }>>({ handler: async (event, ctx) => { diff --git a/testapps/default/.wundergraph/wundergraph.config.ts b/testapps/default/.wundergraph/wundergraph.config.ts index abf5ed199..108556923 100755 --- a/testapps/default/.wundergraph/wundergraph.config.ts +++ b/testapps/default/.wundergraph/wundergraph.config.ts @@ -4,7 +4,7 @@ import { cors, EnvironmentVariable, introspect, -} from '@wundergraph/sdk'; +} from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; import generate from './wundergraph.generate'; diff --git a/testapps/default/.wundergraph/wundergraph.generate.ts b/testapps/default/.wundergraph/wundergraph.generate.ts index 2a2f71322..813e5ee55 100644 --- a/testapps/default/.wundergraph/wundergraph.generate.ts +++ b/testapps/default/.wundergraph/wundergraph.generate.ts @@ -1,5 +1,5 @@ -import { configureWunderGraphGeneration, templates } from '@wundergraph/sdk'; -import { golangClient } from '@wundergraph/golang-client'; +import { configureWunderGraphGeneration, templates } from '@undergraph-dev/sdk'; +import { golangClient } from '@undergraph-dev/golang-client'; export default configureWunderGraphGeneration({ codeGenerators: [ diff --git a/testapps/default/.wundergraph/wundergraph.operations.ts b/testapps/default/.wundergraph/wundergraph.operations.ts index d0894b186..515012fb2 100755 --- a/testapps/default/.wundergraph/wundergraph.operations.ts +++ b/testapps/default/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations, enableCaching } from '@wundergraph/sdk'; +import { configureWunderGraphOperations, enableCaching } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/testapps/default/.wundergraph/wundergraph.server.ts b/testapps/default/.wundergraph/wundergraph.server.ts index 5f2bf88a1..e5d31326b 100755 --- a/testapps/default/.wundergraph/wundergraph.server.ts +++ b/testapps/default/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer, GithubWebhookVerifier, EnvironmentVariable } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer, GithubWebhookVerifier, EnvironmentVariable } from '@undergraph-dev/sdk/server'; import type { GraphQLExecutionContext } from './generated/wundergraph.server'; import { buildSchema, diff --git a/testapps/default/package.json b/testapps/default/package.json index 072f030fb..72ba9a4ed 100755 --- a/testapps/default/package.json +++ b/testapps/default/package.json @@ -4,15 +4,15 @@ "version": "0.1.0", "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "dev": "wunderctl up", @@ -26,8 +26,8 @@ "dependencies": { "@octokit/webhooks-types": "^6.10.0", "@types/node": "^18.16.0", - "@wundergraph/golang-client": "workspace:*", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/golang-client": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "graphql": "^16.3.0", "openai": "^3.3.0", "pg": "^8.7.3", diff --git a/testapps/expo/.wundergraph/wundergraph.config.ts b/testapps/expo/.wundergraph/wundergraph.config.ts index a1bf8e211..39213bb6d 100755 --- a/testapps/expo/.wundergraph/wundergraph.config.ts +++ b/testapps/expo/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, cors, introspect, templates } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, introspect, templates } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/testapps/expo/.wundergraph/wundergraph.operations.ts b/testapps/expo/.wundergraph/wundergraph.operations.ts index 47ccae4b1..38f44c4c7 100755 --- a/testapps/expo/.wundergraph/wundergraph.operations.ts +++ b/testapps/expo/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; import type { OperationsConfiguration } from './generated/wundergraph.operations'; export default configureWunderGraphOperations({ diff --git a/testapps/expo/.wundergraph/wundergraph.server.ts b/testapps/expo/.wundergraph/wundergraph.server.ts index 54a3f6ce8..df5ebe49a 100755 --- a/testapps/expo/.wundergraph/wundergraph.server.ts +++ b/testapps/expo/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/testapps/expo/lib/wundergraph.ts b/testapps/expo/lib/wundergraph.ts index d652b3994..42cf47250 100644 --- a/testapps/expo/lib/wundergraph.ts +++ b/testapps/expo/lib/wundergraph.ts @@ -1,5 +1,5 @@ import { createClient, Operations } from '../generated/client'; -import { createHooks } from '@wundergraph/swr'; +import { createHooks } from '@undergraph-dev/swr'; export const client = createClient(); diff --git a/testapps/expo/metro.config.js b/testapps/expo/metro.config.js index 7dc473869..1938883e4 100644 --- a/testapps/expo/metro.config.js +++ b/testapps/expo/metro.config.js @@ -1,5 +1,5 @@ // Learn more https://docs.expo.io/guides/customizing-metro -const { wgMetroConfig } = require('@wundergraph/metro-config'); +const { wgMetroConfig } = require('@undergraph-dev/metro-config'); const { makeMetroConfig } = require('@rnx-kit/metro-config'); const MetroSymlinksResolver = require('@rnx-kit/metro-resolver-symlinks'); const path = require('path'); diff --git a/testapps/expo/package.json b/testapps/expo/package.json index 049f11978..56d0af32f 100644 --- a/testapps/expo/package.json +++ b/testapps/expo/package.json @@ -1,5 +1,5 @@ { - "name": "wundergraph-expo-swr-testapp", + "name": "undergraph-expo-swr-testapp", "version": "1.0.0", "private": true, "dependencies": { @@ -7,9 +7,9 @@ "@expo/webpack-config": "^18.1.2", "@rnx-kit/metro-config": "^1.3.5", "@rnx-kit/metro-resolver-symlinks": "^0.1.27", - "@wundergraph/metro-config": "workspace:*", - "@wundergraph/sdk": "workspace:*", - "@wundergraph/swr": "workspace:*", + "@undergraph-dev/metro-config": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", + "@undergraph-dev/swr": "workspace:*", "expo": "^48.0.17", "react": "18.2.0", "react-dom": "18.2.0", diff --git a/testapps/nextauth/.wundergraph/wundergraph.config.ts b/testapps/nextauth/.wundergraph/wundergraph.config.ts index 173e0f410..ea7272736 100644 --- a/testapps/nextauth/.wundergraph/wundergraph.config.ts +++ b/testapps/nextauth/.wundergraph/wundergraph.config.ts @@ -1,5 +1,5 @@ -import { configureWunderGraphApplication, cors, introspect, templates } from '@wundergraph/sdk'; -import { NextJsTemplate } from '@wundergraph/nextjs/dist/template'; +import { configureWunderGraphApplication, cors, introspect, templates } from '@undergraph-dev/sdk'; +import { NextJsTemplate } from '@undergraph-dev/nextjs/dist/template'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/testapps/nextauth/.wundergraph/wundergraph.operations.ts b/testapps/nextauth/.wundergraph/wundergraph.operations.ts index 659d618ed..90010ecdc 100644 --- a/testapps/nextauth/.wundergraph/wundergraph.operations.ts +++ b/testapps/nextauth/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/testapps/nextauth/.wundergraph/wundergraph.server.ts b/testapps/nextauth/.wundergraph/wundergraph.server.ts index 1b4a48aad..2d58c2512 100644 --- a/testapps/nextauth/.wundergraph/wundergraph.server.ts +++ b/testapps/nextauth/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/testapps/nextauth/package.json b/testapps/nextauth/package.json index ee3e1fb13..69dad4a84 100644 --- a/testapps/nextauth/package.json +++ b/testapps/nextauth/package.json @@ -1,5 +1,5 @@ { - "name": "wundergraph-nextjs", + "name": "undergraph-nextjs", "version": "0.1.0", "private": true, "scripts": { @@ -12,8 +12,8 @@ "check": "tsc --noEmit" }, "dependencies": { - "@wundergraph/nextjs": "workspace:*", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/nextjs": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "graphql": "^16.3.0", "jose": "^4.11.1", "next": "^14.0.1", diff --git a/testapps/nextjs-integrations/package.json b/testapps/nextjs-integrations/package.json index e6de12cca..ce404d015 100755 --- a/testapps/nextjs-integrations/package.json +++ b/testapps/nextjs-integrations/package.json @@ -4,15 +4,15 @@ "version": "0.1.0", "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "clean": "rimraf ./.next", @@ -26,9 +26,9 @@ "start": "next start --port 3003" }, "dependencies": { - "@wundergraph/nextjs": "workspace:*", - "@wundergraph/sdk": "workspace:*", - "@wundergraph/swr": "workspace:*", + "@undergraph-dev/nextjs": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", + "@undergraph-dev/swr": "workspace:*", "next": "^14.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/testapps/nextjs-integrations/wundergraph/wundergraph.config.ts b/testapps/nextjs-integrations/wundergraph/wundergraph.config.ts index d9cb2fd1a..5f7a9a303 100755 --- a/testapps/nextjs-integrations/wundergraph/wundergraph.config.ts +++ b/testapps/nextjs-integrations/wundergraph/wundergraph.config.ts @@ -1,12 +1,12 @@ -import { cors, type WunderGraphConfig } from '@wundergraph/sdk'; +import { cors, type WunderGraphConfig } from '@undergraph-dev/sdk'; -import { graphql } from '@wundergraph/sdk/datasources'; -import { demoAuth } from '@wundergraph/sdk/auth'; +import { graphql } from '@undergraph-dev/sdk/datasources'; +import { demoAuth } from '@undergraph-dev/sdk/auth'; -import { nextjs } from '@wundergraph/nextjs/integration'; -import { minio } from '@wundergraph/sdk/integrations'; +import { nextjs } from '@undergraph-dev/nextjs/integration'; +import { minio } from '@undergraph-dev/sdk/integrations'; -import { dynamicTransport } from '@wundergraph/sdk/advanced-hooks'; +import { dynamicTransport } from '@undergraph-dev/sdk/advanced-hooks'; const countries = graphql({ namespace: 'countries', diff --git a/testapps/nextjs-integrations/wundergraph/wundergraph.server.ts b/testapps/nextjs-integrations/wundergraph/wundergraph.server.ts index 3dd8307e8..d35666e2d 100755 --- a/testapps/nextjs-integrations/wundergraph/wundergraph.server.ts +++ b/testapps/nextjs-integrations/wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; import config from './wundergraph.config'; export class MyContext { diff --git a/testapps/nextjs-relay/.wundergraph/wundergraph.config.ts b/testapps/nextjs-relay/.wundergraph/wundergraph.config.ts index 1fe3a191d..3ab67de6b 100644 --- a/testapps/nextjs-relay/.wundergraph/wundergraph.config.ts +++ b/testapps/nextjs-relay/.wundergraph/wundergraph.config.ts @@ -1,7 +1,7 @@ -import { configureWunderGraphApplication, cors, introspect, templates } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, introspect, templates } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; -import { NextJsTemplate } from '@wundergraph/nextjs/dist/template'; +import { NextJsTemplate } from '@undergraph-dev/nextjs/dist/template'; const weather = introspect.graphql({ apiNamespace: 'weather', diff --git a/testapps/nextjs-relay/.wundergraph/wundergraph.operations.ts b/testapps/nextjs-relay/.wundergraph/wundergraph.operations.ts index 57799205b..ab3765ba8 100644 --- a/testapps/nextjs-relay/.wundergraph/wundergraph.operations.ts +++ b/testapps/nextjs-relay/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/testapps/nextjs-relay/.wundergraph/wundergraph.server.ts b/testapps/nextjs-relay/.wundergraph/wundergraph.server.ts index d8976418b..d81cf58ae 100644 --- a/testapps/nextjs-relay/.wundergraph/wundergraph.server.ts +++ b/testapps/nextjs-relay/.wundergraph/wundergraph.server.ts @@ -1,5 +1,5 @@ import { GraphQLEnumType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql'; -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; const testEnum = new GraphQLEnumType({ name: 'TestEnum', diff --git a/testapps/nextjs-relay/lib/createWunderGraphRelayApp.ts b/testapps/nextjs-relay/lib/createWunderGraphRelayApp.ts index 4c193f3dc..dcff39a9c 100644 --- a/testapps/nextjs-relay/lib/createWunderGraphRelayApp.ts +++ b/testapps/nextjs-relay/lib/createWunderGraphRelayApp.ts @@ -1,4 +1,4 @@ -import { createWunderGraphRelayApp } from '@wundergraph/react-relay'; +import { createWunderGraphRelayApp } from '@undergraph-dev/react-relay'; import { client } from '../components/generated/nextjs'; export const { useLiveQuery, WunderGraphRelayProvider, fetchWunderGraphSSRQuery } = createWunderGraphRelayApp({ diff --git a/testapps/nextjs-relay/package.json b/testapps/nextjs-relay/package.json index 1f8769047..81186c8c1 100644 --- a/testapps/nextjs-relay/package.json +++ b/testapps/nextjs-relay/package.json @@ -4,15 +4,15 @@ "version": "0.1.0", "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "clean": "rimraf ./.next", @@ -31,11 +31,11 @@ "dependencies": { "@graphql-yoga/node": "^2.13.13", "@tanstack/react-query": "^4.20.4", - "@wundergraph/nextjs": "workspace:*", - "@wundergraph/react-query": "workspace:*", - "@wundergraph/react-relay": "workspace:*", - "@wundergraph/sdk": "workspace:*", - "@wundergraph/swr": "workspace:*", + "@undergraph-dev/nextjs": "workspace:*", + "@undergraph-dev/react-query": "workspace:*", + "@undergraph-dev/react-relay": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", + "@undergraph-dev/swr": "workspace:*", "next": "^14.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/testapps/nextjs/.wundergraph/operations/users/get.ts b/testapps/nextjs/.wundergraph/operations/users/get.ts index 27ca70fab..8f95f8a44 100644 --- a/testapps/nextjs/.wundergraph/operations/users/get.ts +++ b/testapps/nextjs/.wundergraph/operations/users/get.ts @@ -1,5 +1,5 @@ import { createOperation, z } from '../../generated/wundergraph.factory'; -import { AuthorizationError, ExtractResponse } from '@wundergraph/sdk/operations'; +import { AuthorizationError, ExtractResponse } from '@undergraph-dev/sdk/operations'; import { ZodType } from 'zod'; const query = createOperation.query({ diff --git a/testapps/nextjs/.wundergraph/operations/users/subscribe.ts b/testapps/nextjs/.wundergraph/operations/users/subscribe.ts index 1e3e83a2f..497271682 100644 --- a/testapps/nextjs/.wundergraph/operations/users/subscribe.ts +++ b/testapps/nextjs/.wundergraph/operations/users/subscribe.ts @@ -1,5 +1,5 @@ import { createOperation, z } from '../../generated/wundergraph.factory'; -import { ExtractResponse } from '@wundergraph/sdk/dist/operations'; +import { ExtractResponse } from '@undergraph-dev/sdk/dist/operations'; const sub = createOperation.subscription({ input: z.object({ diff --git a/testapps/nextjs/.wundergraph/operations/users/subscribe_no_input.ts b/testapps/nextjs/.wundergraph/operations/users/subscribe_no_input.ts index 53e66cff4..4b3c564f1 100644 --- a/testapps/nextjs/.wundergraph/operations/users/subscribe_no_input.ts +++ b/testapps/nextjs/.wundergraph/operations/users/subscribe_no_input.ts @@ -1,5 +1,5 @@ import { createOperation, z } from '../../generated/wundergraph.factory'; -import { ExtractResponse } from '@wundergraph/sdk/dist/operations'; +import { ExtractResponse } from '@undergraph-dev/sdk/dist/operations'; const sub = createOperation.subscription({ response: z.object({ diff --git a/testapps/nextjs/.wundergraph/operations/users/subscribe_without_schema.ts b/testapps/nextjs/.wundergraph/operations/users/subscribe_without_schema.ts index bf9706f4b..a1bc5f6fb 100644 --- a/testapps/nextjs/.wundergraph/operations/users/subscribe_without_schema.ts +++ b/testapps/nextjs/.wundergraph/operations/users/subscribe_without_schema.ts @@ -1,5 +1,5 @@ import { createOperation, z } from '../../generated/wundergraph.factory'; -import { ExtractResponse } from '@wundergraph/sdk/dist/operations'; +import { ExtractResponse } from '@undergraph-dev/sdk/dist/operations'; const sub = createOperation.subscription({ input: z.object({ diff --git a/testapps/nextjs/.wundergraph/webhooks/stripe.ts b/testapps/nextjs/.wundergraph/webhooks/stripe.ts index 6f34b4e19..0a071012f 100644 --- a/testapps/nextjs/.wundergraph/webhooks/stripe.ts +++ b/testapps/nextjs/.wundergraph/webhooks/stripe.ts @@ -1,7 +1,7 @@ import { createWebhook } from '../generated/wundergraph.webhooks'; import Stripe from 'stripe'; -import { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; export default createWebhook, WebhookHttpResponse<{ type: string; name?: string }>>({ handler: async (event, ctx) => { diff --git a/testapps/nextjs/.wundergraph/wundergraph.config.ts b/testapps/nextjs/.wundergraph/wundergraph.config.ts index 3d091d964..2c27a7332 100755 --- a/testapps/nextjs/.wundergraph/wundergraph.config.ts +++ b/testapps/nextjs/.wundergraph/wundergraph.config.ts @@ -5,10 +5,10 @@ import { EnvironmentVariable, introspect, templates, -} from '@wundergraph/sdk'; +} from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; -import { NextJsTemplate } from '@wundergraph/nextjs/dist/template'; +import { NextJsTemplate } from '@undergraph-dev/nextjs/dist/template'; const countries = introspect.graphql({ apiNamespace: 'countries', diff --git a/testapps/nextjs/.wundergraph/wundergraph.operations.ts b/testapps/nextjs/.wundergraph/wundergraph.operations.ts index a00164ff5..a320c8fe3 100755 --- a/testapps/nextjs/.wundergraph/wundergraph.operations.ts +++ b/testapps/nextjs/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/testapps/nextjs/.wundergraph/wundergraph.server.ts b/testapps/nextjs/.wundergraph/wundergraph.server.ts index 4e145991e..ebf77e907 100755 --- a/testapps/nextjs/.wundergraph/wundergraph.server.ts +++ b/testapps/nextjs/.wundergraph/wundergraph.server.ts @@ -1,5 +1,5 @@ -import { ResponseError } from '@wundergraph/sdk/client'; -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { ResponseError } from '@undergraph-dev/sdk/client'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; import { GraphQLEnumType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql'; const testEnum = new GraphQLEnumType({ @@ -26,7 +26,7 @@ export class MyContext { } } -declare module '@wundergraph/sdk/server' { +declare module '@undergraph-dev/sdk/server' { export interface CustomContext { request: MyContext; } diff --git a/testapps/nextjs/lib/react-query.ts b/testapps/nextjs/lib/react-query.ts index 8cd8e022f..647d5a8bf 100644 --- a/testapps/nextjs/lib/react-query.ts +++ b/testapps/nextjs/lib/react-query.ts @@ -1,4 +1,4 @@ -import { createHooks } from '@wundergraph/react-query'; +import { createHooks } from '@undergraph-dev/react-query'; import { createClient, Operations } from '../components/generated/client'; const client = createClient(); // Typesafe WunderGraph client diff --git a/testapps/nextjs/package.json b/testapps/nextjs/package.json index 6e578c3a5..839deddcc 100755 --- a/testapps/nextjs/package.json +++ b/testapps/nextjs/package.json @@ -4,15 +4,15 @@ "version": "0.1.0", "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "clean": "rimraf ./.next", @@ -31,10 +31,10 @@ "dependencies": { "@graphql-yoga/node": "^2.13.13", "@tanstack/react-query": "^4.20.4", - "@wundergraph/nextjs": "workspace:*", - "@wundergraph/react-query": "workspace:*", - "@wundergraph/sdk": "workspace:*", - "@wundergraph/swr": "workspace:*", + "@undergraph-dev/nextjs": "workspace:*", + "@undergraph-dev/react-query": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", + "@undergraph-dev/swr": "workspace:*", "next": "^14.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/testapps/postgres/.wundergraph/wundergraph.config.ts b/testapps/postgres/.wundergraph/wundergraph.config.ts index d1757d1b7..e9c521606 100755 --- a/testapps/postgres/.wundergraph/wundergraph.config.ts +++ b/testapps/postgres/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, cors, introspect, templates } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, cors, introspect, templates } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; diff --git a/testapps/postgres/.wundergraph/wundergraph.operations.ts b/testapps/postgres/.wundergraph/wundergraph.operations.ts index 43fe9f496..d28cc8772 100755 --- a/testapps/postgres/.wundergraph/wundergraph.operations.ts +++ b/testapps/postgres/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/testapps/postgres/.wundergraph/wundergraph.server.ts b/testapps/postgres/.wundergraph/wundergraph.server.ts index 75a5876b9..1c18c9a04 100755 --- a/testapps/postgres/.wundergraph/wundergraph.server.ts +++ b/testapps/postgres/.wundergraph/wundergraph.server.ts @@ -1,5 +1,5 @@ import { GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql'; -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: { diff --git a/testapps/postgres/package.json b/testapps/postgres/package.json index da5cbf851..0fbf16ded 100755 --- a/testapps/postgres/package.json +++ b/testapps/postgres/package.json @@ -13,12 +13,12 @@ "license": "ISC", "dependencies": { "@types/node": "^18.16.0", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "graphql": "^16.3.0", "typescript": "^5.1.6" }, "dependenciesMeta": { - "@wundergraph/sdk": { + "@undergraph-dev/sdk": { "injected": true } }, diff --git a/testapps/rust/.wundergraph/wundergraph.config.ts b/testapps/rust/.wundergraph/wundergraph.config.ts index cc0a86676..2b52209e2 100644 --- a/testapps/rust/.wundergraph/wundergraph.config.ts +++ b/testapps/rust/.wundergraph/wundergraph.config.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphApplication, introspect } from '@wundergraph/sdk'; +import { configureWunderGraphApplication, introspect } from '@undergraph-dev/sdk'; import server from './wundergraph.server'; import operations from './wundergraph.operations'; import generate from './wundergraph.generate'; diff --git a/testapps/rust/.wundergraph/wundergraph.generate.ts b/testapps/rust/.wundergraph/wundergraph.generate.ts index 9b05e4239..545c86280 100644 --- a/testapps/rust/.wundergraph/wundergraph.generate.ts +++ b/testapps/rust/.wundergraph/wundergraph.generate.ts @@ -1,5 +1,5 @@ -import { configureWunderGraphGeneration, templates } from '@wundergraph/sdk'; -import { rustClient } from '@wundergraph/rust-client'; +import { configureWunderGraphGeneration, templates } from '@undergraph-dev/sdk'; +import { rustClient } from '@undergraph-dev/rust-client'; export default configureWunderGraphGeneration({ codeGenerators: [ diff --git a/testapps/rust/.wundergraph/wundergraph.operations.ts b/testapps/rust/.wundergraph/wundergraph.operations.ts index 60e65844d..05494da05 100644 --- a/testapps/rust/.wundergraph/wundergraph.operations.ts +++ b/testapps/rust/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/testapps/rust/.wundergraph/wundergraph.server.ts b/testapps/rust/.wundergraph/wundergraph.server.ts index 77311c8ea..9401c15d5 100644 --- a/testapps/rust/.wundergraph/wundergraph.server.ts +++ b/testapps/rust/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; export default configureWunderGraphServer(() => ({ hooks: {}, diff --git a/testapps/rust/package.json b/testapps/rust/package.json index 9a9acc791..e0e59f78b 100644 --- a/testapps/rust/package.json +++ b/testapps/rust/package.json @@ -4,15 +4,15 @@ "version": "0.1.0", "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "dev": "wunderctl up --logs", @@ -23,12 +23,12 @@ }, "dependencies": { "@types/node": "^18.16.0", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "graphql": "^16.3.0", "typescript": "^5.1.6" }, "devDependencies": { - "@wundergraph/rust-client": "workspace:^" + "@undergraph-dev/rust-client": "workspace:^" }, "sideEffects": false } diff --git a/testapps/simple/.wundergraph/weather-datasource.ts b/testapps/simple/.wundergraph/weather-datasource.ts index b4c3f2077..d49e67289 100644 --- a/testapps/simple/.wundergraph/weather-datasource.ts +++ b/testapps/simple/.wundergraph/weather-datasource.ts @@ -1,4 +1,4 @@ -import { defineDatasource, GraphQLDatasourceOptions } from '@wundergraph/sdk/datasources'; +import { defineDatasource, GraphQLDatasourceOptions } from '@undergraph-dev/sdk/datasources'; export const weather = defineDatasource>>((config) => { const { namespace = 'weather', ...rest } = config || {}; @@ -6,7 +6,7 @@ export const weather = defineDatasource { - const { introspect } = await import('@wundergraph/sdk'); + const { introspect } = await import('@undergraph-dev/sdk'); options.addApi( introspect.graphql({ apiNamespace: namespace, diff --git a/testapps/simple/.wundergraph/webhooks/simple.ts b/testapps/simple/.wundergraph/webhooks/simple.ts index 2e84b25f3..cefb6eb8e 100644 --- a/testapps/simple/.wundergraph/webhooks/simple.ts +++ b/testapps/simple/.wundergraph/webhooks/simple.ts @@ -1,6 +1,6 @@ import { createWebhook } from '../generated/wundergraph.webhooks'; -import { WebhookHttpEvent, WebhookHttpResponse } from '@wundergraph/sdk/server'; +import { WebhookHttpEvent, WebhookHttpResponse } from '@undergraph-dev/sdk/server'; export default createWebhook, WebhookHttpResponse<{ type: string }>>({ handler: async (event, ctx) => { diff --git a/testapps/simple/.wundergraph/wundergraph.config.ts b/testapps/simple/.wundergraph/wundergraph.config.ts index d7240b6e8..b04cf951b 100644 --- a/testapps/simple/.wundergraph/wundergraph.config.ts +++ b/testapps/simple/.wundergraph/wundergraph.config.ts @@ -1,6 +1,6 @@ -import type { WunderGraphConfig } from '@wundergraph/sdk'; -import { graphql } from '@wundergraph/sdk/datasources'; -import { dynamicTransport } from '@wundergraph/sdk/advanced-hooks'; +import type { WunderGraphConfig } from '@undergraph-dev/sdk'; +import { graphql } from '@undergraph-dev/sdk/datasources'; +import { dynamicTransport } from '@undergraph-dev/sdk/advanced-hooks'; import { weather } from './weather-datasource'; diff --git a/testapps/simple/.wundergraph/wundergraph.server.ts b/testapps/simple/.wundergraph/wundergraph.server.ts index aa15521ba..d59e96343 100644 --- a/testapps/simple/.wundergraph/wundergraph.server.ts +++ b/testapps/simple/.wundergraph/wundergraph.server.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; import config from './wundergraph.config'; export default configureWunderGraphServer(() => ({ diff --git a/testapps/simple/errors/errors.ts b/testapps/simple/errors/errors.ts index e33216e7c..2eb7f0c62 100644 --- a/testapps/simple/errors/errors.ts +++ b/testapps/simple/errors/errors.ts @@ -1,4 +1,4 @@ -import { OperationError } from '@wundergraph/sdk/operations'; +import { OperationError } from '@undergraph-dev/sdk/operations'; export class NotFoundErr extends OperationError { statusCode = 404; diff --git a/testapps/simple/package.json b/testapps/simple/package.json index 81135ac79..d4b80bfcd 100644 --- a/testapps/simple/package.json +++ b/testapps/simple/package.json @@ -4,15 +4,15 @@ "version": "0.1.0", "repository": { "type": "git", - "url": "git+https://github.com/wundergraph/wundergraph.git" + "url": "git+https://github.com/undergraph-dev/undergraph.git" }, - "homepage": "https://wundergraph.com", + "homepage": "https://undergraph.dev", "author": { - "name": "WunderGraph Maintainers", - "email": "info@wundergraph.com" + "name": "UnderGraph Maintainers", + "email": "info@undergraph.dev" }, "bugs": { - "url": "https://github.com/wundergraph/wundergraph/issues" + "url": "https://github.com/undergraph-dev/undergraph/issues" }, "scripts": { "dev": "wunderctl up --logs", @@ -23,7 +23,7 @@ }, "dependencies": { "@types/node": "^18.16.0", - "@wundergraph/sdk": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", "graphql": "^16.3.0", "typescript": "^5.1.6" }, diff --git a/testapps/vite/.wundergraph/wundergraph.config.ts b/testapps/vite/.wundergraph/wundergraph.config.ts index 7de7ddcba..187d52e4d 100755 --- a/testapps/vite/.wundergraph/wundergraph.config.ts +++ b/testapps/vite/.wundergraph/wundergraph.config.ts @@ -5,7 +5,7 @@ import { EnvironmentVariable, introspect, templates, -} from '@wundergraph/sdk'; +} from '@undergraph-dev/sdk'; import operations from './wundergraph.operations'; import server from './wundergraph.server'; diff --git a/testapps/vite/.wundergraph/wundergraph.operations.ts b/testapps/vite/.wundergraph/wundergraph.operations.ts index a00164ff5..a320c8fe3 100755 --- a/testapps/vite/.wundergraph/wundergraph.operations.ts +++ b/testapps/vite/.wundergraph/wundergraph.operations.ts @@ -1,4 +1,4 @@ -import { configureWunderGraphOperations } from '@wundergraph/sdk'; +import { configureWunderGraphOperations } from '@undergraph-dev/sdk'; export default configureWunderGraphOperations({ operations: { diff --git a/testapps/vite/.wundergraph/wundergraph.server.ts b/testapps/vite/.wundergraph/wundergraph.server.ts index a0c757aee..8913f1f40 100755 --- a/testapps/vite/.wundergraph/wundergraph.server.ts +++ b/testapps/vite/.wundergraph/wundergraph.server.ts @@ -1,5 +1,5 @@ import { GraphQLEnumType, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql'; -import { configureWunderGraphServer } from '@wundergraph/sdk/server'; +import { configureWunderGraphServer } from '@undergraph-dev/sdk/server'; const testEnum = new GraphQLEnumType({ name: 'TestEnum', diff --git a/testapps/vite/package.json b/testapps/vite/package.json index c78013a35..72afda555 100644 --- a/testapps/vite/package.json +++ b/testapps/vite/package.json @@ -15,8 +15,8 @@ "preview": "vite preview" }, "dependencies": { - "@wundergraph/sdk": "workspace:*", - "@wundergraph/swr": "workspace:*", + "@undergraph-dev/sdk": "workspace:*", + "@undergraph-dev/swr": "workspace:*", "react": "^18.1.0", "react-dom": "^18.1.0", "swr": "^2.2.0" diff --git a/testapps/vite/src/lib/wundergraph.ts b/testapps/vite/src/lib/wundergraph.ts index 5f42f8f83..893633520 100644 --- a/testapps/vite/src/lib/wundergraph.ts +++ b/testapps/vite/src/lib/wundergraph.ts @@ -1,6 +1,6 @@ import { createClient, Operations } from '../generated/client'; -import { createHooks } from '@wundergraph/swr'; +import { createHooks } from '@undergraph-dev/swr'; export const client = createClient(); diff --git a/testapps/vite/vite.config.ts b/testapps/vite/vite.config.ts index 00d061b4f..3b66d70cb 100644 --- a/testapps/vite/vite.config.ts +++ b/testapps/vite/vite.config.ts @@ -5,14 +5,14 @@ import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], optimizeDeps: { - include: ['@wundergraph/swr', '@wundergraph/sdk', '@wundergraph/sdk/client'], + include: ['@undergraph-dev/swr', '@undergraph-dev/sdk', '@undergraph-dev/sdk/client'], esbuildOptions: { target: 'es2020', }, }, build: { commonjsOptions: { - include: [/wundergraph/], + include: [/undergraph/], }, }, });