Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "pylon",
"name": "psylon-worker",
"version": "0.0.0",
"private": true,
"scripts": {
"deploy": "pylon build && wrangler deploy",
"dev": "pylon dev -c 'wrangler dev' --client --client-port 8787 --client-path ../vite-project/gqty/index.ts",
"dev": "pylon dev -c 'wrangler dev' --client --client-port 8787 --client-path ../vite-project/pgqty/index.ts",
"cf-typegen": "wrangler types"
},
"dependencies": {
Expand All @@ -20,7 +20,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/getcronit/pylon.git"
"url": "https://github.com/netsnek/psylon.git"
},
"homepage": "https://pylon.cronit.io"
"homepage": "https://psylon.dev"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "psylon/tsconfig.pylon.json",
"include": ["psylon.d.ts", "worker-configuration.d.ts", "src/**/*.ts"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#:schema node_modules/wrangler/config-schema.json
name = "pylon"
name = "psylon"
main = ".pylon/index.js"
compatibility_date = "2024-09-03"
compatibility_flags = ["nodejs_compat_v2"]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"deploy": "bun run build && wrangler pages deploy dist"
},
"dependencies": {
"@gqty/react": "^3.0.4",
"@pgqty/react": "^4.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// SPDX-License-Identifier: Apache-2.0

/**
* GQty: You can safely modify this file based on your needs.
* pgqty: You can safely modify this file based on your needs.
*/

import {createReactClient} from '@gqty/react'
import {createReactClient} from '@pgqty/react'
import {
Cache,
createClient,
defaultResponseHandler,
type QueryFetcher
} from 'gqty'
} from 'pgqty'
import {
generatedSchema,
scalarsEnumsHash,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0

/**
* GQty AUTO-GENERATED CODE: PLEASE DO NOT MODIFY MANUALLY
* pgqty AUTO-GENERATED CODE: PLEASE DO NOT MODIFY MANUALLY
*/

import {type ScalarsEnumsHash} from 'gqty'
import {type ScalarsEnumsHash} from 'pgqty'

export type Maybe<T> = T | null
export type InputMaybe<T> = Maybe<T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pylonLogo from '/pylon.svg'
import './App.css'

import {resolve, useQuery} from '../gqty'
import {resolve, useQuery} from '../pgqty'

function App() {
const data = useQuery()
Expand Down
2 changes: 1 addition & 1 deletion packages/create-pylon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-psylon",
"type": "module",
"version": "1.1.5",
"version": "1.2.0",
"description": "CLI for creating a Psylon",
"scripts": {
"build": "rimraf ./dist && esbuild ./src/index.ts --bundle --platform=node --target=node18 --format=esm --minify --outdir=./dist --sourcemap=linked --packages=external"
Expand Down
6 changes: 3 additions & 3 deletions packages/create-pylon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ program
.addOption(
new Option(
'--client',
'Enable client generation (https://pylon.cronit.io/docs/integrations/gqty)'
'Enable client generation (https://pylon.cronit.io/docs/integrations/pgqty)'
)
)
.addOption(new Option('--client-path <clientPath>', 'Client path'))
Expand Down Expand Up @@ -433,7 +433,7 @@ async function main(
clientArg ||
(await confirm({
message:
'Would you like to enable client generation? (https://pylon.cronit.io/docs/integrations/gqty)',
'Would you like to enable client generation? (https://pylon.cronit.io/docs/integrations/pgqty)',
default: false
}))

Expand All @@ -450,7 +450,7 @@ async function main(

clientPath = await input({
message: 'Path to generate the client to',
default: path.join(clientRoot, 'gqty/index.ts'),
default: path.join(clientRoot, 'psylon/index.ts'),
validate: value => {
// Check if the path starts with the client root (take care of .)
if (!value.startsWith(clientRoot === '.' ? '' : clientRoot)) {
Expand Down
File renamed without changes.
17 changes: 15 additions & 2 deletions packages/pylon/README.md → packages/psylon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,23 @@ to Psylon where appropriate.

Canonical repository: https://github.com/netsnek/psylon

## Version lineage

Psylon is a fork of Pylon v2.

- `pylon@2.9.6` – last upstream Pylon v2 release from @schettn under the `@getcronit` scope.
- `psylon@2.9.6` – first Psylon release, based on `pylon@2.9.6` with rebranding, new package names,
and essentially the same feature set as that upstream release.
- `psylon@2.9.7` and later – new releases maintained by Netsnek e. U. under the `psylon` and
`@netsnek/*` package names.

From `psylon@2.9.6` onwards, the histories diverge: Psylon keeps the Pylon v2 runtime, focuses on
GraphQL-based microservices, and selectively backports security fixes and compatible improvements
from Pylon v3.

## Roadmap

Psylons roadmap is centered around GraphQL via GQty and its pgqty fork.
For current plans and discussion, see
Psylon uses pgqty (a fork of GQty) as its GraphQL client layer. For current plans and discussion, see
[gqty-dev/gqty#2051](https://github.com/gqty-dev/gqty/issues/2051).

## Create
Expand Down
4 changes: 2 additions & 2 deletions packages/pylon/package.json → packages/psylon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "psylon",
"version": "2.9.6",
"version": "2.10.0",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -17,7 +17,7 @@
"repository": {
"type": "git",
"url": "https://github.com/getcronit/pylon.git",
"directory": "packages/pylon"
"directory": "packages/psylon"
},
"homepage": "https://pylon.cronit.io",
"dependencies": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/pylon-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@netsnek/psylon-dev",
"type": "module",
"version": "1.0.6",
"version": "1.1.0",
"description": "CLI for creating a Pylon",
"scripts": {
"build": "rimraf ./dist && esbuild ./src/index.ts --bundle --platform=node --target=node18 --format=esm --minify --outdir=./dist --sourcemap=linked --packages=external"
Expand All @@ -23,7 +23,7 @@
"dependencies": {
"@netsnek/psylon-builder": "workspace:^",
"@netsnek/psylon-telemetry": "workspace:^",
"@gqty/cli": "^4.2.0",
"@pgqty/cli": "^5.0.0",
"commander": "^12.1.0",
"consola": "^3.2.3",
"dotenv": "^16.4.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/pylon-dev/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


import {build} from '@netsnek/psylon-builder'
import {fetchSchema, generateClient} from '@gqty/cli'
import {fetchSchema, generateClient} from '@pgqty/cli'
import {program, type Command} from 'commander'
import {consola} from 'consola'
import path from 'path'
Expand Down Expand Up @@ -51,7 +51,7 @@ program
.option(
'--client-path <clientPath>',
'Path to generate the client to',
'gqty/index.ts'
'pgqty/index.ts'
)
.option(
'--client-port <clientPort>',
Expand Down
Loading