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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

All notable changes to Wire Lang will be documented in this file.

## Unreleased
## 0.4.0

- Added `@wire-lang/browser` for asynchronous rendering after HTML loads, with
source preservation, repeatable discovery, and per-block errors.
- Added `@wire-lang/markdown` with remark, rehype, and MDX plugins that preserve
`wire` fences by default and render inline SVG with `{ mode: "static" }`.
- Added photodiode, Schottky diode, Zener diode, potentiometer, and rheostat
symbols to the standard library.
- Improved potentiometer label placement and wiper-to-track connections.

## 0.3.1

Expand Down
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wire-lang/browser",
"version": "0.3.1",
"version": "0.4.0",
"type": "module",
"description": "Asynchronous browser rendering for Wire Lang code blocks.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wire-lang/cli",
"version": "0.3.1",
"version": "0.4.0",
"type": "module",
"description": "Wire Lang developer CLI: check, render, and watch .wire files.",
"keywords": ["wire-lang", "schematic", "electronics", "circuit", "svg", "cli"],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wire-lang/core",
"version": "0.3.1",
"version": "0.4.0",
"type": "module",
"description": "Wire Lang core: parser, compiler, schematic model, layout engine, and SVG renderer.",
"keywords": ["wire-lang", "schematic", "electronics", "circuit", "svg", "diagram", "eda"],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/model/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ export interface CompileResult {
readonly ok: boolean;
}

export const LANGUAGE_VERSION = "0.3.1";
export const LANGUAGE_VERSION = "0.4.0";
2 changes: 1 addition & 1 deletion packages/core/test/__snapshots__/bus-rail.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`layout: bus-rail > produces stable SVG output (snapshot) 1`] = `
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 702 526" width="702" height="526" role="img" data-wire-lang-version="0.3.1">
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 702 526" width="702" height="526" role="img" data-wire-lang-version="0.4.0">
<title>Wire Lang schematic</title>
<desc>A schematic with 4 components.</desc>
<style>.wire-lang { background: #ffffff; }
Expand Down
4 changes: 2 additions & 2 deletions packages/core/test/__snapshots__/parts-catalog.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`parts catalog: snapshot > renders a mixed-parts schematic stably 1`] = `
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 904 306" width="904" height="306" role="img" data-wire-lang-version="0.3.1">
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 904 306" width="904" height="306" role="img" data-wire-lang-version="0.4.0">
<title>Parts catalog coverage</title>
<desc>A schematic with 8 components.</desc>
<style>.wire-lang { background: #ffffff; }
Expand All @@ -23,7 +23,7 @@ exports[`parts catalog: snapshot > renders a mixed-parts schematic stably 1`] =
`;

exports[`parts catalog: variable resistors & diode variants snapshot > renders the new discrete parts stably 1`] = `
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 600 224" width="600" height="224" role="img" data-wire-lang-version="0.3.1">
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 600 224" width="600" height="224" role="img" data-wire-lang-version="0.4.0">
<title>Variable resistors and diode variants</title>
<desc>A schematic with 5 components.</desc>
<style>.wire-lang { background: #ffffff; }
Expand Down
8 changes: 4 additions & 4 deletions packages/core/test/__snapshots__/render-features.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`layout/render features > fans overlapping drops of distinct nets into separate lanes (issue #53) 1`] = `
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 620 302" width="620" height="302" role="img" data-wire-lang-version="0.3.1">
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 620 302" width="620" height="302" role="img" data-wire-lang-version="0.4.0">
<title>Wire Lang schematic</title>
<desc>A schematic with 5 components.</desc>
<style>.wire-lang { background: #ffffff; }
Expand All @@ -21,7 +21,7 @@ exports[`layout/render features > fans overlapping drops of distinct nets into s
`;

exports[`layout/render features > produces stable SVG output (snapshot) 1`] = `
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 368 188" width="368" height="188" role="img" data-wire-lang-version="0.3.1">
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 368 188" width="368" height="188" role="img" data-wire-lang-version="0.4.0">
<title>LED current limiting circuit</title>
<desc>A 5V battery drives a red LED through a 220 ohm resistor.</desc>
<style>.wire-lang { background: #ffffff; }
Expand All @@ -42,7 +42,7 @@ exports[`layout/render features > produces stable SVG output (snapshot) 1`] = `
`;

exports[`layout/render features > renders a component rotated by orientation (snapshot) 1`] = `
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 210 188" width="210" height="188" role="img" data-wire-lang-version="0.3.1">
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 210 188" width="210" height="188" role="img" data-wire-lang-version="0.4.0">
<title>Orientation hint</title>
<desc>A schematic with 2 components.</desc>
<style>.wire-lang { background: #ffffff; }
Expand All @@ -62,7 +62,7 @@ exports[`layout/render features > renders a component rotated by orientation (sn
`;

exports[`layout/render features > renders the complex symbol set (transistor, ground, header, switch, inductor, polarized cap) 1`] = `
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 804 194" width="804" height="194" role="img" data-wire-lang-version="0.3.1">
"<svg xmlns="http://www.w3.org/2000/svg" class="wire-lang" viewBox="0 0 804 194" width="804" height="194" role="img" data-wire-lang-version="0.4.0">
<title>Symbol coverage</title>
<desc>A schematic with 7 components.</desc>
<style>.wire-lang { background: #ffffff; }
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wire-lang/markdown",
"version": "0.3.1",
"version": "0.4.0",
"type": "module",
"description": "Remark, rehype, and MDX plugins for rendering wire code fences as inline SVG.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/wire-lang/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wire-lang",
"version": "0.3.1",
"version": "0.4.0",
"type": "module",
"description": "Text-first electronic schematics rendered to SVG. Aggregate package and `wire` CLI.",
"keywords": ["wire-lang", "schematic", "electronics", "circuit", "svg", "diagram", "eda", "cli"],
Expand Down