github locutusjs/locutus v3.0.18

5 hours ago

Released: 2026-03-14. Diff.
Version rationale: patch for a scoped PHP runtime-correctness fix plus follow-up packaging/docs updates without import-model or runtime floor changes.

Fixes

  • Fixed php/array/array_keys so returned keys follow PHP-style numeric normalization for dense arrays and canonical integer-like keys on associative input, instead of returning every key as a string.

Packaging

  • Added crypto: false to browser-facing package metadata and propagated browser fallbacks into dist/esm/package.json so ESM/browser bundlers keep the same builtin-module stubbing as the CommonJS dist package.

Docs

  • Documented that bundle-sensitive browser consumers should prefer per-function deep imports like locutus/php/strings/sprintf over category index imports like locutus/php/strings/index.

Don't miss a new locutus release

NewReleases is sending notifications on new releases.