Skip to content

v0.3.0

Choose a tag to compare

@titpetric titpetric released this 12 Nov 10:27
· 507 commits to main since this release

The v0.3.0 release of phpscript contains 51 commits since v0.2.5. The changes focus on the formatter, running stock PHP sources with composer's autoloader, fixture test matrix and runtime performance, and the telemetry move to oida with disk-backed traces.

pie title v0.3.0 commits by category
    "feature" : 15
    "fix" : 7
    "docs" : 5
    "update" : 4
    "perf" : 3
    "refactor" : 3
    "test" : 1
    "other" : 13

Changelog

feature

  • 838c01b feat(test): --matrix runs every fixture against all three runtimes (#47)
  • ff2a5aa feat(server): @schedule annotation for cron-style jobs (#41)
  • 8c2b369 feat(telemetry): disk driver for durable oida traces (#40)
  • 803f471 feat(info): phpscript info command (#38)
  • d38b4ed feat(test): --json, pprof files, P50/P95/P99, short -c/-t (#36)
  • eac7484 feat(formatter): format scripts that start with an interpreter line
  • 2993a9c feat(fmt): skip what cannot be formatted and check what can
  • f48a09e feat(formatter): group class members and keep their blank lines
  • 64c2032 feat(formatter): expand array literals one entry per line
  • a1b7c0c feat(demos): install dbadmin's template engine with composer
  • 47ba784 feat(lint): report chained assignment binding one array to several names
  • 0ae5f92 feat(parser,runner): run stock PHP sources, from composer's autoloader to array semantics
  • bc0bdc0 feat(stdlib): compile preg_* with RE2 or a backtracking engine
  • f62d85f Add example app
  • 9afe496 Add output buffering APIs

fix

  • 0daf65b fix(docs): formatting, go fmt
  • 7fe7027 fix(formatter): keep the comments of a file, and the catch type
  • 94fca3b fix(formatter): keep type hints and parameter decorations
  • 8b84b3f fix(parser): stop break and continue from sharing a source span
  • 578c998 fix(formatter): keep the quote style of string literals
  • 9573ba7 fix(formatter): keep use and declare statements in the output
  • bfe4a36 fix(formatter): fail instead of dropping nodes the printer cannot spell

docs

  • aa7e430 docs: document Go package layout and PHP-visible naming conventions
  • 9f97f01 docs: describe what the formatter keeps and what it skips
  • a10b8b0 docs: replace typographic punctuation in comments and rendered output
  • 8214d84 docs: normalise punctuation and tone across the documentation
  • 853fb84 docs: document value semantics, static members and the composer integration

update

  • 55ca077 Bump titpetric/pdo
  • 8f485d1 Update docs with application guide, external minitpl
  • 7915087 update php sort comparison semantics
  • cf82691 Update dependencies

perf

  • a9b076e perf: skip reflect on common bindings, pool flatstack scratch (#45)
  • a796c11 perf(stdlib): int64 list sort (sgoiter kernel) (#43)
  • 5f6520c perf(test): reuse runtime and parsed AST across fixture reruns (#42)

refactor

  • a008e2a refactor(formatter): share one walk between formatting and listing
  • 089911a refactor(formatter): split the package into three files
  • e07b49a refactor(parser): record the source line of break, continue and case

test

  • 69e3da0 test: remove the benchmarks left behind by the vendored minitpl engine

other

  • 723e267 Telemetry updates, platform update to drop otel
  • ddec14d Stdlib updates, call_user_func, function_exists, is_callable
  • 6584b83 Drop the vendored minitpl fixtures and their dead references
  • 58a02f1 Merge route discovery and startup jobs into the annotations package
  • b256d58 Drop duplicated tests against fixtures data
  • 93ed171 Delete vendored tests code
  • c673d5a Database: update docs for is_readonly, telemetry, changelog
  • 53ff0cf flatstack: implement set propery
  • b2ee26d runner: fold field name access from php
  • 48cc7d9 Database: improve observability a bit, add readonly flag in config
  • 9d33fb4 dbadmin: apply the schema as a migration, and fix what its suite found
  • e1af956 Gitignore vendor
  • 4a13440 Drop old status page code, migrate to /telemetry and github.com/titpetric/oida (#31)

v0.2.5...v0.3.0