From 18ce7813277366f6ab3ddaf8aa900e33c2ee7cd3 Mon Sep 17 00:00:00 2001 From: James P Date: Fri, 22 Mar 2024 17:14:20 -0500 Subject: [PATCH] Rebranding --- license.md | 2 +- package-lock.json | 14 +++++++------- package.json | 14 +++++++------- readme.md | 16 ++++++++-------- scripts/build.mjs | 2 +- src/DirectoryRecord.ts | 2 +- src/IsoFS.ts | 16 ++++++++-------- src/VolumeDescriptor.ts | 2 +- src/utils.ts | 2 +- 9 files changed, 35 insertions(+), 35 deletions(-) diff --git a/license.md b/license.md index 0c2fb27..d8051f6 100644 --- a/license.md +++ b/license.md @@ -1,4 +1,4 @@ -Copyright (c) 2013-2023 John Vilk and other BrowserFS contributors. +Copyright (c) 2013-2023 John Vilk and other ZenFS contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/package-lock.json b/package-lock.json index f2f4077..154d07b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@browserfs/iso", + "name": "@zenfs/iso", "version": "0.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "@browserfs/iso", + "name": "@zenfs/iso", "version": "0.0.2", "license": "MIT", "devDependencies": { @@ -22,7 +22,7 @@ "node": ">= 18" }, "peerDependencies": { - "@browserfs/core": "^0.3.2" + "@zenfs/core": "^0.3.2" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -34,9 +34,9 @@ "node": ">=0.10.0" } }, - "node_modules/@browserfs/core": { + "node_modules/@zenfs/core": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@browserfs/core/-/core-0.3.2.tgz", + "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-0.3.2.tgz", "integrity": "sha512-jcnwDmR5x24zdyXGz2bVQ/WmLkrRQQ5qJPAJwQDz52FluThynaG1Eibb7aMr9I6DPos4A9LeLXA5V4cUeyta+A==", "peer": true, "dependencies": { @@ -2272,9 +2272,9 @@ "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", "dev": true }, - "@browserfs/core": { + "@zenfs/core": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@browserfs/core/-/core-0.3.2.tgz", + "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-0.3.2.tgz", "integrity": "sha512-jcnwDmR5x24zdyXGz2bVQ/WmLkrRQQ5qJPAJwQDz52FluThynaG1Eibb7aMr9I6DPos4A9LeLXA5V4cUeyta+A==", "peer": true, "requires": { diff --git a/package.json b/package.json index a7a3592..563522b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "@browserfs/iso", + "name": "@zenfs/iso", "version": "0.0.2", - "description": "Zip backend for BrowserFS", + "description": "Iso backend for ZenFS", "main": "dist/index.js", "types": "dist", "keywords": [ @@ -10,15 +10,15 @@ "storage" ], "type": "module", - "homepage": "https://github.com/browser-fs/iso", + "homepage": "https://github.com/zen-fs/iso", "author": "dr-vortex ", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/browser-fs/iso.git" + "url": "git+https://github.com/zen-fs/iso.git" }, "bugs": { - "url": "https://github.com/browser-fs/iso/issues" + "url": "https://github.com/zen-fs/iso/issues" }, "engines": { "node": ">= 18" @@ -31,7 +31,7 @@ "format:check": "prettier --check src", "lint": "eslint src", "build": "node scripts/build.mjs", - "build:docs": "typedoc --out docs --name BrowserFS src/index.ts", + "build:docs": "typedoc --out docs --name ZenFS src/index.ts", "prepublishOnly": "npm run build" }, "devDependencies": { @@ -45,6 +45,6 @@ "typescript": "5.2.2" }, "peerDependencies": { - "@browserfs/core": "^0.3.2" + "@zenfs/core": "^0.3.2" } } diff --git a/readme.md b/readme.md index fc3f776..81fd789 100644 --- a/readme.md +++ b/readme.md @@ -1,30 +1,30 @@ -# BrowserFS `iso` Backend +# ZenFS `iso` Backend -[BrowserFS](https://github.com/browser-fs/core) backend for `iso` files. +[ZenFS](https://github.com/zen-fs/core) backend for `iso` files. > [!IMPORTANT] -> Please read the BrowserFS core documentation! +> Please read the ZenFS core documentation! ## Backend This package adds the `Iso` backend, which allows you to create a _readonly_ file system from a iso file. -For more information, see the [API documentation](https://browser-fs.github.io/iso). +For more information, see the [API documentation](https://zen-fs.github.io/iso). ## Installing ```sh -npm install @browserfs/iso +npm install @zenfs/iso ``` ## Usage > [!NOTE] -> The examples are written in ESM. If you are using CJS, you can `require` the package. If running in a browser you can add a script tag to your HTML pointing to the `browser.min.js` and use BrowserFS Iso via the global `BrowserFS_ISO` object. +> The examples are written in ESM. If you are using CJS, you can `require` the package. If running in a browser you can add a script tag to your HTML pointing to the `browser.min.js` and use ZenFS Iso via the global `ZenFS_ISO` object. ```js -import { configure, fs } from '@browserfs/core'; -import { Iso } from '@browserfs/iso'; +import { configure, fs } from '@zenfs/core'; +import { Iso } from '@zenfs/iso'; const res = await fetch('http://example.com/image.iso'); diff --git a/scripts/build.mjs b/scripts/build.mjs index 287596d..58d6aac 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -13,7 +13,7 @@ const options = parseArgs({ const ctx = await context({ entryPoints: ['src/index.ts'], target: 'es2020', - globalName: 'BrowserFS_ISO', + globalName: 'ZenFS_ISO', outfile: 'dist/browser.min.js', sourcemap: true, keepNames: true, diff --git a/src/DirectoryRecord.ts b/src/DirectoryRecord.ts index 66f903a..44b3dba 100644 --- a/src/DirectoryRecord.ts +++ b/src/DirectoryRecord.ts @@ -112,7 +112,7 @@ export abstract class DirectoryRecord { if (flags & SLComponentFlags.CURRENT) { p += './'; } else if (flags & SLComponentFlags.PARENT) { - p += '@browserfs/core/'; + p += '@zenfs/core/'; } else if (flags & SLComponentFlags.ROOT) { p += '/'; } else { diff --git a/src/IsoFS.ts b/src/IsoFS.ts index 4f29eda..c7556cd 100644 --- a/src/IsoFS.ts +++ b/src/IsoFS.ts @@ -1,11 +1,11 @@ -import { ApiError, ErrorCode } from '@browserfs/core/ApiError.js'; -import type { Backend } from '@browserfs/core/backends/backend.js'; -import type { Cred } from '@browserfs/core/cred.js'; -import * as path from '@browserfs/core/emulation/path.js'; -import { resolve } from '@browserfs/core/emulation/path.js'; -import { FileFlag, NoSyncFile } from '@browserfs/core/file.js'; -import { FileSystem, Readonly, Sync, type FileSystemMetadata } from '@browserfs/core/filesystem.js'; -import { FileType, Stats } from '@browserfs/core/stats.js'; +import { ApiError, ErrorCode } from '@zenfs/core/ApiError.js'; +import type { Backend } from '@zenfs/core/backends/backend.js'; +import type { Cred } from '@zenfs/core/cred.js'; +import * as path from '@zenfs/core/emulation/path.js'; +import { resolve } from '@zenfs/core/emulation/path.js'; +import { FileFlag, NoSyncFile } from '@zenfs/core/file.js'; +import { FileSystem, Readonly, Sync, type FileSystemMetadata } from '@zenfs/core/filesystem.js'; +import { FileType, Stats } from '@zenfs/core/stats.js'; import { DirectoryRecord } from './DirectoryRecord.js'; import { PrimaryOrSupplementaryVolumeDescriptor, PrimaryVolumeDescriptor, SupplementaryVolumeDescriptor, VolumeDescriptor, VolumeDescriptorTypeCode } from './VolumeDescriptor.js'; import { PXEntry, TFEntry, TFFlags } from './entries.js'; diff --git a/src/VolumeDescriptor.ts b/src/VolumeDescriptor.ts index 6ccd57e..c8fb0f2 100644 --- a/src/VolumeDescriptor.ts +++ b/src/VolumeDescriptor.ts @@ -1,4 +1,4 @@ -import { ApiError, ErrorCode } from '@browserfs/core/index.js'; +import { ApiError, ErrorCode } from '@zenfs/core/index.js'; import { DirectoryRecord, ISODirectoryRecord, JolietDirectoryRecord } from './DirectoryRecord.js'; import { getASCIIString, getDate, getJolietString } from './utils.js'; diff --git a/src/utils.ts b/src/utils.ts index f07f339..746e926 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,4 +1,4 @@ -import { decode } from '@browserfs/core/utils.js'; +import { decode } from '@zenfs/core/utils.js'; export function getASCIIString(data: ArrayBuffer, startIndex: number, length: number) { const buffer = data.slice(startIndex, startIndex + length);