chore: rename @nodes -> @nodarium for everything
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 3m33s

This commit is contained in:
Max Richter
2025-12-01 17:03:14 +01:00
parent e5658b8a7e
commit 1ea544e765
58 changed files with 909 additions and 882 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@nodes/registry",
"name": "@nodarium/registry",
"version": "0.0.0",
"description": "",
"main": "src/index.ts",
@@ -10,8 +10,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@nodes/types": "link:../types",
"@nodes/utils": "link:../utils",
"@nodarium/types": "link:../types",
"@nodarium/utils": "link:../utils",
"idb": "^8.0.3"
}
}

View File

@@ -1,4 +1,4 @@
import type { AsyncCache } from '@nodes/types';
import type { AsyncCache } from '@nodarium/types';
import { openDB, type IDBPDatabase } from 'idb';
export class IndexDBCache implements AsyncCache<ArrayBuffer> {

View File

@@ -3,8 +3,8 @@ import {
type AsyncCache,
type NodeDefinition,
type NodeRegistry,
} from "@nodes/types";
import { createLogger, createWasmWrapper } from "@nodes/utils";
} from "@nodarium/types";
import { createLogger, createWasmWrapper } from "@nodarium/utils";
const log = createLogger("node-registry");
log.mute();

View File

@@ -1,5 +1,5 @@
{
"name": "@nodes/types",
"name": "@nodarium/types",
"version": "0.0.0",
"description": "",
"main": "src/index.ts",

View File

@@ -9,6 +9,9 @@ export const NodeTypeSchema = z
export type NodeType = z.infer<typeof NodeTypeSchema>;
export type Node = {
/**
* .tmp only exists at runtime
*/
tmp?: {
depth?: number;
mesh?: any;

View File

@@ -1,5 +1,5 @@
{
"name": "@nodes/ui",
"name": "@nodarium/ui",
"version": "0.0.1",
"scripts": {
"dev": "vite dev",
@@ -53,7 +53,7 @@
"typescript": "^5.9.3",
"vite": "^7.2.4",
"vitest": "^4.0.13",
"@nodes/types": "link:../types"
"@nodarium/types": "link:../types"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",

View File

@@ -4,7 +4,7 @@
import Integer from './elements/Integer.svelte';
import Select from './elements/Select.svelte';
import type { NodeInput } from '@nodes/types';
import type { NodeInput } from '@nodarium/types';
import Vec3 from './elements/Vec3.svelte';
interface Props {
@@ -27,4 +27,3 @@
{:else if input.type === 'vec3'}
<Vec3 {id} bind:value />
{/if}

View File

@@ -1,5 +1,5 @@
{
"name": "@nodes/utils",
"name": "@nodarium/utils",
"version": "0.0.1",
"description": "",
"main": "src/index.ts",
@@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@nodes/types": "link:../types"
"@nodarium/types": "link:../types"
},
"devDependencies": {
"vite": "^7.2.4",

View File

@@ -1,5 +1,5 @@
//@ts-nocheck
import { NodeDefinition } from "@nodes/types";
import { NodeDefinition } from "@nodarium/types";
const cachedTextDecoder = new TextDecoder("utf-8", {
ignoreBOM: true,
@@ -10,16 +10,16 @@ const cachedTextEncoder = new TextEncoder();
const encodeString =
typeof cachedTextEncoder.encodeInto === "function"
? function (arg, view) {
return cachedTextEncoder.encodeInto(arg, view);
}
return cachedTextEncoder.encodeInto(arg, view);
}
: function (arg, view) {
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length,
};
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length,
};
};
function createWrapper() {
let wasm: any;