@openedges/pkl-napi 0.32.0-rc.3 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@openedges/pkl-napi`
2
2
 
3
- Node.js N-API native bindings for the pure-Rust **Apple Pkl `0.32.0`** engine (`pkl-runtime`, `pkl-host-native`, `pkl`, and `pkl-formatter`) with zero Java runtime dependency.
3
+ Node.js N-API native bindings for the pure-Rust **Apple Pkl `0.32.0`** engine (`pkl-runtime`, `pkl-host-native`, `pkl-lang`, and `pkl-formatter`) with zero Java runtime dependency.
4
4
 
5
5
  ## Installation
6
6
 
@@ -11,7 +11,7 @@ npm install @openedges/pkl-napi
11
11
  ### Requirements & Supported Platforms
12
12
 
13
13
  - **Node.js**: `>= 18.0.0` (N-API v8)
14
- - **Module formats**: Dual ESM (`import`) and CommonJS (`require`) with bundled TypeScript declarations (`dist/index.d.ts`).
14
+ - **Module formats**: Dual ESM (`import`) and CommonJS (`require`) with bundled TypeScript declarations (`dist/index.d.{ts,cts,mts}`).
15
15
  - **Prebuilt native addons (7 targets)**:
16
16
  - macOS: `darwin-arm64`, `darwin-x64`
17
17
  - Linux (glibc `>= 2.28`): `linux-x64-gnu`, `linux-arm64-gnu`
@@ -50,12 +50,16 @@ console.log(format('x=1+2\n'));
50
50
  ```js
51
51
  const { createEvaluatorSync, ModuleSource } = require('@openedges/pkl-napi');
52
52
 
53
- const evaluator = createEvaluatorSync();
54
- try {
55
- console.log(evaluator.evaluateExpressionSync(ModuleSource.text('x = 20 + 22'), 'x'));
56
- } finally {
57
- evaluator.close();
53
+ async function main() {
54
+ const evaluator = createEvaluatorSync();
55
+ try {
56
+ console.log(evaluator.evaluateExpressionSync(ModuleSource.text('x = 20 + 22'), 'x'));
57
+ } finally {
58
+ await evaluator.close();
59
+ }
58
60
  }
61
+
62
+ main();
59
63
  ```
60
64
 
61
65
  ## Compatibility & Versioning
@@ -64,6 +68,6 @@ Version `0.32.0` tracks the **Apple Pkl `0.32.0`** compatibility baseline (`PKL_
64
68
 
65
69
  ## License & Trademarks
66
70
 
67
- Licensed under the [Apache License, Version 2.0](LICENSE) (Copyright 2025–2026 The pkl-rs Authors). Attribution and third-party notices are bundled in [NOTICE](NOTICE) and [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).
71
+ Licensed under the [Apache License, Version 2.0](https://github.com/openedges/pkl-rs/blob/main/LICENSE) (Copyright 2025–2026 The pkl-rs Authors). Attribution and third-party notices are bundled in [NOTICE](https://github.com/openedges/pkl-rs/blob/main/NOTICE) and [THIRD-PARTY-NOTICES.md](https://github.com/openedges/pkl-rs/blob/main/THIRD-PARTY-NOTICES.md).
68
72
 
69
73
  `@openedges/pkl-napi` is part of the independent open-source `pkl-rs` project and is not affiliated with, sponsored by, or endorsed by Apple Inc. "Pkl" is referenced solely to describe language compatibility.
@@ -259,21 +259,36 @@ All **79 external Rust crates** locked in [Cargo.lock](Cargo.lock) (**67 runtime
259
259
 
260
260
  | SPDX License Expression | Crate Count | Representative Crates |
261
261
  | --- | ---: | --- |
262
- | `MIT OR Apache-2.0` / `Apache-2.0 OR MIT` / `MIT/Apache-2.0` | 60 | `rustls`, `wasm-bindgen`, `js-sys`, `sha1`, `sha2`, `md-5`, `libc`, `syn`, `quote`, `time`, `semver`, `unicode-normalization`, `windows-*` |
263
- | `MIT` | 8 | `napi`, `napi-derive`, `napi-sys`, `libm`, `convert_case`, `pem`, `zeroize`, `bumpalo` |
262
+ | `MIT OR Apache-2.0` / `Apache-2.0 OR MIT` / `MIT/Apache-2.0` | 60 | `rustls-pki-types`, `zeroize`, `bumpalo`, `wasm-bindgen`, `js-sys`, `sha1`, `sha2`, `md-5`, `libc`, `syn`, `quote`, `time`, `semver`, `unicode-normalization`, `windows-*` |
263
+ | `MIT` | 8 | `napi`, `napi-derive`, `napi-derive-backend`, `napi-build`, `napi-sys`, `libm`, `convert_case`, `pem` *(dev/test-only)* |
264
264
  | `ISC` | 3 | `libloading`, `rustls-webpki`, `untrusted` |
265
- | `Apache-2.0 OR ISC OR MIT` / `Apache-2.0 AND ISC` | 3 | `ring`, `rustls-pki-types`, `rustls-pemfile` |
265
+ | `Apache-2.0 OR ISC OR MIT` / `Apache-2.0 AND ISC` | 3 | `ring`, `rustls`, `rustls-pemfile` |
266
266
  | `Zlib OR Apache-2.0 OR MIT` | 2 | `tinyvec`, `tinyvec_macros` |
267
267
  | `BSD-3-Clause` | 1 | `subtle` |
268
268
  | `(MIT OR Apache-2.0) AND Unicode-3.0` | 1 | `unicode-ident` |
269
269
  | `Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT` | 1 | `wasi` |
270
270
 
271
+ ### MIT License Copyright Holders (Statically Linked Crates)
272
+
273
+ The MIT license text in Section 5 applies to the following MIT-licensed crates included in distributions:
274
+
275
+ - **`libm`** (`0.2.16`, `MIT`): Copyright (c) 2018 Jorge Aparicio; Copyright © 2005–2020 Rich Felker, et al. (musl libc); portions Copyright © 1993, 2004 Sun Microsystems, David Schultz, Steven G. Kargl, Bruce D. Evans, Stephen L. Moshier, and Arm Limited.
276
+ - **`napi` / `napi-derive` / `napi-derive-backend` / `napi-sys`** (`3.x`, `MIT`) and **`napi-build`** (`2.2.4`, `MIT`, `@openedges/pkl-napi` only): Copyright (c) napi-rs contributors.
277
+ - **`convert_case`** (`0.8.0`, `MIT`): Copyright (c) 2025 rutrum.
278
+ - **`pem`** (`3.0.6`, `MIT`, dev/test-only): Copyright (c) 2016 Jonathan Creekmore.
279
+ - **`zeroize`** (`1.9.2`, `MIT OR Apache-2.0`): Copyright (c) 2018–2026 The RustCrypto Project Developers.
280
+ - **`bumpalo`** (`3.20.3`, `MIT OR Apache-2.0`): Copyright (c) 2019 Nick Fitzgerald.
281
+
271
282
  ### `ring` (`0.17.14`, `Apache-2.0 AND ISC`)
272
283
 
273
284
  `ring` includes code derived from BoringSSL (Copyright Google Inc. and contributors, ISC-style / Apache-2.0) and portions of OpenSSL (Copyright 1995–2016 The OpenSSL Project / Eric Young, permissive OpenSSL/SSLeay terms). This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com).
274
285
 
275
286
  ### ISC License (Applies to `libloading`, `rustls-webpki`, `untrusted`, and `ring`)
276
287
 
288
+ - **`libloading`** (`0.8.9`, `ISC`): Copyright © 2015, Simonas Kazlauskas.
289
+ - **`rustls-webpki`** (`0.103.17`, `ISC`): Copyright 2015 Brian Smith.
290
+ - **`untrusted`** (`0.9.0`, `ISC`): Copyright 2015–2016 Brian Smith.
291
+
277
292
  ```text
278
293
  Permission to use, copy, modify, and/or distribute this software for any
279
294
  purpose with or without fee is hereby granted, provided that the above
@@ -292,6 +307,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
292
307
 
293
308
  ```text
294
309
  Copyright (c) 2016-2017 Isis Agora Lovecruft, Henry de Valence. All rights reserved.
310
+ Copyright (c) 2016-2024 Isis Agora Lovecruft. All rights reserved.
295
311
 
296
312
  Redistribution and use in source and binary forms, with or without
297
313
  modification, are permitted provided that the following conditions are