Skip to content

Commit c95aa49

Browse files
committed
Release 0.9.0
1 parent 42144c4 commit c95aa49

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ jobs:
6161
project-dir: "native/oxc_lint_nif"
6262
cross-version: "from-source"
6363

64+
- name: Build oxc_fmt_nif
65+
if: matrix.job.target != 'x86_64-unknown-linux-musl'
66+
id: build-fmt-crate
67+
uses: philss/rustler-precompiled-action@v1.1.4
68+
with:
69+
project-name: oxc_fmt_nif
70+
project-version: ${{ env.PROJECT_VERSION }}
71+
target: ${{ matrix.job.target }}
72+
nif-version: ${{ matrix.nif }}
73+
use-cross: ${{ matrix.job.use-cross }}
74+
project-dir: "native/oxc_fmt_nif"
75+
cross-version: "from-source"
76+
6477
- name: Artifact upload
6578
uses: actions/upload-artifact@v4
6679
with:
@@ -74,9 +87,17 @@ jobs:
7487
name: ${{ steps.build-lint-crate.outputs.file-name }}
7588
path: ${{ steps.build-lint-crate.outputs.file-path }}
7689

90+
- name: Artifact upload (fmt)
91+
if: matrix.job.target != 'x86_64-unknown-linux-musl'
92+
uses: actions/upload-artifact@v4
93+
with:
94+
name: ${{ steps.build-fmt-crate.outputs.file-name }}
95+
path: ${{ steps.build-fmt-crate.outputs.file-path }}
96+
7797
- name: Publish archives and packages
7898
uses: softprops/action-gh-release@v2
7999
with:
80100
files: |
81101
${{ steps.build-crate.outputs.file-path }}
82102
${{ steps.build-lint-crate.outputs.file-path }}
103+
${{ steps.build-fmt-crate.outputs.file-path }}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.9.0
4+
5+
### Added
6+
7+
- `OXC.Format` — Prettier-compatible JS/TS formatter via oxfmt (~30× faster than Prettier). Separate `oxc_fmt_nif` Rust NIF crate. All oxfmt options supported: `print_width`, `tab_width`, `use_tabs`, `semi`, `single_quote`, `jsx_single_quote`, `trailing_comma`, `bracket_spacing`, `bracket_same_line`, `arrow_parens`, `end_of_line`, `quote_props`, `single_attribute_per_line`, `object_wrap`, `experimental_operator_position`, `experimental_ternaries`, `embedded_language_formatting`, `sort_imports`, `sort_tailwindcss`.
8+
- `OXC.Lint.run!/3` — bang variant that raises `OXC.Error` on parse errors.
9+
10+
### Changed
11+
12+
- `OXC.Format.run!/3` raises `OXC.Error` instead of `RuntimeError`.
13+
314
## 0.8.0
415

516
### Added

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule OXC.MixProject do
22
use Mix.Project
33

4-
@version "0.8.0"
4+
@version "0.9.0"
55
@source_url "https://github.com/elixir-volt/oxc_ex"
66

77
def project do
@@ -37,7 +37,7 @@ defmodule OXC.MixProject do
3737
"OXC" => "https://oxc.rs"
3838
},
3939
files:
40-
~w(lib native/oxc_ex_nif/src native/oxc_ex_nif/Cargo.toml native/oxc_lint_nif/src native/oxc_lint_nif/Cargo.toml native/oxc_lint_nif/Cargo.lock Cargo.toml Cargo.lock .formatter.exs mix.exs README.md LICENSE checksum-*.exs)
40+
~w(lib native/oxc_ex_nif/src native/oxc_ex_nif/Cargo.toml native/oxc_lint_nif/src native/oxc_lint_nif/Cargo.toml native/oxc_lint_nif/Cargo.lock native/oxc_fmt_nif/src native/oxc_fmt_nif/Cargo.toml native/oxc_fmt_nif/Cargo.lock Cargo.toml Cargo.lock .formatter.exs mix.exs README.md LICENSE checksum-*.exs)
4141
]
4242
end
4343

0 commit comments

Comments
 (0)