Skip to content
Merged
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
18 changes: 9 additions & 9 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["web", "@example/*"]
"$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["web", "@example/*"]
}
7 changes: 2 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"biomejs.biome",
"unifiedjs.vscode-mdx"
]
}
"recommendations": ["biomejs.biome", "unifiedjs.vscode-mdx"]
}
52 changes: 26 additions & 26 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"*.mdx": "markdown"
},
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
"typescript.tsdk": "node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"*.mdx": "markdown"
},
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
1 change: 0 additions & 1 deletion apps/relay/biome.json

This file was deleted.

28 changes: 14 additions & 14 deletions apps/relay/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ mkdirSync("data", { recursive: true });
process.chdir("data");

const deps = {
console: createConsole(),
console: createConsole(),
};

const relay = await createNodeJsRelay(deps)({
port: 4000,
enableLogging: false,
port: 4000,
enableLogging: false,

// Note: Relay requires URL in format ws://host:port/<ownerId>
// isOwnerAllowed: (_ownerId) => true,
// Note: Relay requires URL in format ws://host:port/<ownerId>
// isOwnerAllowed: (_ownerId) => true,

isOwnerWithinQuota: (_ownerId, requiredBytes) => {
const maxBytes = 1024 * 1024; // 1MB
return requiredBytes <= maxBytes;
},
isOwnerWithinQuota: (_ownerId, requiredBytes) => {
const maxBytes = 1024 * 1024; // 1MB
return requiredBytes <= maxBytes;
},
});

if (!relay.ok) {
deps.console.error(relay.error);
deps.console.error(relay.error);
} else {
// The `using` declaration ensures `relay.value[Symbol.dispose]()` is called
// automatically when the block exits.
using _ = relay.value;
await Promise.race([once(process, "SIGINT"), once(process, "SIGTERM")]);
// The `using` declaration ensures `relay.value[Symbol.dispose]()` is called
// automatically when the block exits.
using _ = relay.value;
await Promise.race([once(process, "SIGINT"), once(process, "SIGTERM")]);
}
1 change: 0 additions & 1 deletion apps/web/biome.json

This file was deleted.

8 changes: 4 additions & 4 deletions apps/web/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import * as mdxComponents from "@/components/mdx";

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function useMDXComponents(components: MDXComponents) {
return {
...components,
...mdxComponents,
};
return {
...components,
...mdxComponents,
};
}
76 changes: 38 additions & 38 deletions apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,48 @@ import { remarkPlugins } from "./src/mdx/remark.mjs";
import withSearch from "./src/mdx/search.mjs";

const withMDX = nextMDX({
options: {
remarkPlugins,
rehypePlugins,
recmaPlugins,
},
options: {
remarkPlugins,
rehypePlugins,
recmaPlugins,
},
});

/** @type {import("next").NextConfig} */
const nextConfig = {
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
outputFileTracingIncludes: {
"/**/*": ["./src/app/**/*.mdx"],
},
async redirects() {
return [
{
source: "/docs/quickstart",
destination: "/docs/local-first",
permanent: true,
},
{
source: "/docs/installation",
destination: "/docs/local-first",
permanent: true,
},
{
source: "/docs/evolu-server",
destination: "/docs/relay",
permanent: true,
},
{
source: "/docs/evolu-relay",
destination: "/docs/relay",
permanent: true,
},
{
source: "/examples/:path*",
destination: "/docs/examples",
permanent: true,
},
];
},
pageExtensions: ["js", "jsx", "ts", "tsx", "mdx"],
outputFileTracingIncludes: {
"/**/*": ["./src/app/**/*.mdx"],
},
async redirects() {
return [
{
source: "/docs/quickstart",
destination: "/docs/local-first",
permanent: true,
},
{
source: "/docs/installation",
destination: "/docs/local-first",
permanent: true,
},
{
source: "/docs/evolu-server",
destination: "/docs/relay",
permanent: true,
},
{
source: "/docs/evolu-relay",
destination: "/docs/relay",
permanent: true,
},
{
source: "/examples/:path*",
destination: "/docs/examples",
permanent: true,
},
];
},
};

export default withSearch(withMDX(nextConfig));
126 changes: 63 additions & 63 deletions apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
{
"name": "web",
"version": "2.0.0",
"private": true,
"scripts": {
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 next build --webpack",
"clean": "rimraf .turbo .next node_modules",
"dev": "next dev --webpack",
"fix:docs": "bun ./scripts/fix-api-reference.mts",
"lint": "biome check .",
"start": "next start"
},
"browserslist": "defaults, not ie <= 11",
"dependencies": {
"@algolia/autocomplete-core": "^1.19.2",
"@evolu/common": "workspace:*",
"@evolu/react": "workspace:*",
"@evolu/react-web": "workspace:*",
"@headlessui/react": "^2.2.7",
"@headlessui/tailwindcss": "^0.2.2",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^16.1.1",
"@sindresorhus/slugify": "^3.0.0",
"@tabler/icons-react": "^3.35.0",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/typography": "^0.5.16",
"acorn": "^8.15.0",
"clsx": "^2.1.1",
"fast-glob": "^3.3.3",
"flexsearch": "^0.8.205",
"mdast-util-to-string": "^4.0.0",
"mdx-annotations": "^0.1.4",
"motion": "^12.23.26",
"next": "^16.1.1",
"next-themes": "^0.4.6",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-highlight-words": "^0.21.0",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"remark-mdx": "^3.1.0",
"rss": "^1.2.2",
"shiki": "^3.19.0",
"simple-functional-loader": "^1.2.1",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3",
"unist-util-filter": "^5.0.1",
"unist-util-visit": "^5.0.0",
"zustand": "^5.0.9"
},
"devDependencies": {
"@evolu/biome-config": "workspace:*",
"@evolu/tsconfig": "workspace:*",
"@types/mdx": "^2.0.13",
"@types/node": "^24.10.3",
"@types/react": "^19.1.17",
"@types/react-dom": "^19.1.11",
"@types/react-highlight-words": "^0.20.1",
"@types/rss": "^0.0.32",
"cross-env": "^10.0.0",
"sharp": "^0.34.3"
}
"name": "web",
"version": "2.0.0",
"private": true,
"scripts": {
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 next build --webpack",
"clean": "rimraf .turbo .next node_modules",
"dev": "next dev --webpack",
"fix:docs": "bun ./scripts/fix-api-reference.mts",
"lint": "biome check .",
"start": "next start"
},
"browserslist": "defaults, not ie <= 11",
"dependencies": {
"@algolia/autocomplete-core": "^1.19.2",
"@evolu/common": "workspace:*",
"@evolu/react": "workspace:*",
"@evolu/react-web": "workspace:*",
"@headlessui/react": "^2.2.7",
"@headlessui/tailwindcss": "^0.2.2",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^16.1.1",
"@sindresorhus/slugify": "^3.0.0",
"@tabler/icons-react": "^3.35.0",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/typography": "^0.5.16",
"acorn": "^8.15.0",
"clsx": "^2.1.1",
"fast-glob": "^3.3.3",
"flexsearch": "^0.8.205",
"mdast-util-to-string": "^4.0.0",
"mdx-annotations": "^0.1.4",
"motion": "^12.23.26",
"next": "^16.1.1",
"next-themes": "^0.4.6",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-highlight-words": "^0.21.0",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"remark-mdx": "^3.1.0",
"rss": "^1.2.2",
"shiki": "^3.19.0",
"simple-functional-loader": "^1.2.1",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3",
"unist-util-filter": "^5.0.1",
"unist-util-visit": "^5.0.0",
"zustand": "^5.0.9"
},
"devDependencies": {
"@evolu/biome-config": "workspace:*",
"@evolu/tsconfig": "workspace:*",
"@types/mdx": "^2.0.13",
"@types/node": "^24.10.3",
"@types/react": "^19.1.17",
"@types/react-dom": "^19.1.11",
"@types/react-highlight-words": "^0.20.1",
"@types/rss": "^0.0.32",
"cross-env": "^10.0.0",
"sharp": "^0.34.3"
}
}
6 changes: 3 additions & 3 deletions apps/web/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// eslint-disable-next-line no-undef
module.exports = {
plugins: {
"@tailwindcss/postcss": {},
},
plugins: {
"@tailwindcss/postcss": {},
},
};
Loading