![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
nil-zonefile
Advanced tools
A Rust library for parsing and creating NIL zonefiles. This library supports both WebAssembly and native Rust environments.
Add this to your Cargo.toml
:
[dependencies]
nil-zonefile = "0.1.0"
For WebAssembly support, enable the wasm
feature:
[dependencies]
nil-zonefile = { version = "0.1.0", features = ["wasm"] }
use nil_zonefile::ZoneFile;
fn main() -> Result<(), serde_json::Error> {
// Parse a zonefile
let json_str = r#"{
"zonefile": {
"owner": "SP3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3MZAGJ8",
"general": "Example Name",
"twitter": "@example",
"url": "example.locker",
"nostr": "",
"lightning": "",
"btc": "bc1..."
}
}"#;
let zonefile = ZoneFile::from_str(json_str)?;
// Convert back to JSON
let output = zonefile.to_string()?;
Ok(())
}
=
import { ZoneFile } from 'nil-zonefile';
const zonefile = ZoneFile.fromString(jsonString);
const output = zonefile.toString();
use nil_zonefile::ZoneFile;
// Read from CBOR
let cbor_bytes: &[u8] = /* your CBOR data */;
let zonefile = ZoneFile::from_cbor(cbor_bytes)?;
// Write to CBOR
let output_bytes: Vec<u8> = zonefile.to_cbor()?;
import { parse_zonefile_cbor, create_zonefile_cbor } from 'nil-zonefile';
// Read from CBOR
const cborBytes = new Uint8Array(/* your CBOR data */);
const result = parse_zonefile_cbor(cborBytes);
// Write to CBOR
const output = create_zonefile_cbor(cborBytes);
import { generateZonefile } from 'nil-zonefile';
const zonefile = {
zonefile: {
owner: "SP3D03X5BHMNSAAW71NN7BQRMV4DW2G4JB3MZAGJ8",
general: "Example Name",
twitter: "@example",
url: "example.locker",
nostr: "",
lightning: "",
btc: "bc1...",
subdomains: {}
},
version: "1.0.0",
status: "current"
};
// Generate uncompressed CBOR
const bytes = generateZonefile(zonefile);
// Generate compressed CBOR using zstd compression
const compressedBytes = generateZonefile(zonefile, true);
When building this project on macOS (especially for WebAssembly), you need LLVM installed and configured correctly. Two options are available:
Run the provided setup script:
source ./setup-llvm.sh
This script will:
Install LLVM if you haven't already:
brew install llvm
Set up the required environment variables:
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export CC=/opt/homebrew/opt/llvm/bin/clang
export AR=/opt/homebrew/opt/llvm/bin/llvm-ar
To make these changes permanent, add the above lines to your ~/.zshrc
or ~/.bash_profile
.
MIT License - Copyright (c) 2025 New Internet Labs Limited
FAQs
A library for parsing and creating zonefiles on the new internet.
The npm package nil-zonefile receives a total of 208 weekly downloads. As such, nil-zonefile popularity was classified as not popular.
We found that nil-zonefile demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.