Skip to content

v0.5.0

Choose a tag to compare

@titpetric titpetric released this 12 Nov 10:29
· 248 commits to main since this release

The v0.5.0 release of phpscript contains 94 commits since v0.4.1. The changes focus on the flatstack compiler's coverage of defer, variadics and dynamic calls, a wider stdlib of file, hash, json and yaml bindings, the test runner's coverage and per-engine matrix reporting and parser fixes for const, instanceof and redeclaration.

pie title v0.5.0 commits by category
    "feature" : 29
    "docs" : 26
    "build" : 9
    "fix" : 9
    "chore" : 6
    "refactor" : 4
    "test" : 4
    "perf" : 2
    "style" : 1
    "other" : 4

Changelog

feature

  • 9254cdb feat(tests): skip fixtures the flat compiler rejects instead of delegating
  • 26e4bf0 feat(flatstack): compile the static forms, dynamic calls and variadics
  • b7e8ab9 feat(test): report durations per engine in the matrix
  • 13cd527 feat: resolve constants declared on an interface (#106)
  • 97f3afc feat(config,test): a phpscript.yml of its own for a folder of fixtures
  • 77b0e3c feat(flatstack): compile and execute defer() natively with zero-allocation frame unwind (#72)
  • 46ae3d3 feat(pexec): bind getmypid() beside posix_getpid()
  • 6d9641b feat(parser,runner,flatstack): declare top-level constants with const
  • 24d7c7c feat(server): --cover collects coverage and flushes it on shutdown
  • c5df0a5 feat(cli): one set of global flags on every subcommand
  • 1829111 feat(runner)!: an include option replaces the autoload folder
  • c9dd0bf feat(files): a script walks a directory with opendir
  • 3c31003 feat(fmt): includes come before imports
  • 181aac8 feat(lint): --include, so the checks see an application
  • 258f7fb feat(core): yaml_decode and yaml_encode
  • bbc544d feat(json): JSON\Encoder and JSON\Decoder over a stream
  • 6d54fd6 feat(files): the stat questions and the handle reads
  • 71be89b feat(bindings): the set-shaped array functions
  • 855a12f feat(bindings): setcookie, and the request functions move out of runner
  • 0815753 feat(bindings): hash, hash_hmac, hash_equals and hash_algos
  • cbc7be0 feat(bindings): strcmp and its three siblings
  • 43b892e feat(pexec): the process bindings split into exec and escape
  • fd57b01 feat(stdlib): chdir() and a per-request working directory
  • 22e6f42 feat(server): hand an unrouted request whole to the error page
  • 449f2b9 feat(lint): report a function that redeclares one already declared
  • 6067105 feat(runner): refuse a function that redeclares one already declared
  • ffd253c feat(cli): list the registered runtime surface with list --stdlib
  • 3423f7c feat(stdlib): add fnmatch
  • 789e807 feat(test): report coverage per folder, gate fixture tables behind -v (#79)

docs

  • 672ea73 docs: regenerate coverage from the current suite
  • 2874c6f docs: remove the application-guides book
  • 5b70aa5 docs(design): add uniqid to the won't-implement table
  • e9d4be9 docs: regenerate the coverage reports
  • cc19a11 docs: the prelude runs per request, ahead of the entrypoint
  • 7cd5759 docs: regenerate the coverage reports
  • f8dc257 docs(coverage): sort the per-file report
  • f5ba113 docs(cli): one page per command under docs/cli, and splint in the lint job
  • 3b104df docs(coverage): a summary and detail report per tree under docs/coverage
  • 038324c docs(cli): the global flags, server coverage, and a fixture for --include
  • 2407a99 docs: regenerate the coverage report
  • 5ac3f32 docs: regenerate the reference and the fixture and coverage reports
  • 4a6d056 docs: correct what the runtime is said not to have
  • fd95d5a docs: regenerate the coverage report
  • d068f35 docs: regenerate the reference and reports for the yaml pair
  • 69a5098 docs: regenerate the reference for the JSON stream classes
  • 9f0bb7b docs: regenerate the coverage and fixture reports
  • a96ec52 docs: regenerate the API reference for the new bindings
  • a89e51d docs: regenerate the introspection, fixture and coverage reports
  • 30e1643 docs: regenerate the introspection, fixture and coverage reports
  • 6920462 docs: regenerate the fixture and coverage reports
  • 8f702ce docs: regenerate the fixture and coverage reports
  • 10b0c74 docs: regenerate the introspection, fixture and coverage reports
  • 8f7d26a docs: correct the fixture area list and the byref table path
  • 7c1d542 docs(testing): tighten the closing-tag note
  • 43bc4ce docs(testing): a fixture closes its tag, and php reads it whole

build

  • da2289d build: call splint with pflag flags in the architecture job
  • 7200736 build: vendor the current mdox skill and unwrap the documentation (#105)
  • 72793ef build: format the import blocks with splint fix
  • c4e5c98 build(demos): minitpl v1.3.1, which renames the compiled template into place
  • 115eecc build(skills): vendor the skills from $HOME
  • bbe58a1 build(docs): go-fsck reads splint's document directly
  • 5bec4c3 build(docs): splint extracts the tree the API reference renders from
  • 094fe78 build(coverage): every .cov under cover/, and dbadmin measures itself
  • 6ddbec2 build(telemetry): migrate to oida v0.3.0 and platform v0.7.2

fix

  • 515a099 fix(runner,flatstack,lint): make type reassignment advisory, not enforced (#103)
  • edc78c0 fix(runner): loose comparison coerces across types per PHP 8 (#89)
  • b6a329c fix(parser): put the right operand of instanceof through name resolution
  • 28c024b fix(flatstack): a foreach survives the calls made inside it
  • b7ac1b1 fix(lint): the per-scope builtins and the :: bindings are known names
  • 24d1df1 fix(fmt): a reference prints as the file imported it
  • 2e9371c fix(lint): a redeclaration is over a host binding, not over the include
  • 0c6cc29 fix(runner): name the offending declaration in the redeclare error
  • addf9ef fix(files): resolve fs.FS reads and glob through the bound root

chore

  • afb6bb4 chore: Use go-yaml, drop yaml.v3
  • 1ba334f chore: fmt/fix docs
  • 93c1a6b chore: update go.mod/go.sum
  • 887d567 chore: go.mod/sum dependency bump
  • 3e6a8a8 chore: format the import blocks to the house rule
  • ff39427 chore(cmd): group the imports the new constructors added

refactor

  • 953d22e refactor(cmd): one signature for every command constructor
  • 45203b4 refactor(pexec): getmypid shares posix_getpid's implementation
  • 5955885 refactor(coverage): profile rendering moves to the runner, plus an aggregator
  • 30cd590 refactor(test): --include is the only resolution mechanism

test

  • d83ea22 test(pexec): the fixture header states what it asserts
  • a0e8eb9 test(github): getmypid is not bound, though posix_getpid is
  • fcb2e93 test(github): a top-level const declaration is misparsed
  • d9a49b3 test(github): instanceof does not resolve its right operand

perf

  • d5dfdec perf(stdlib,test): build the bcrypt timing decoy before fixtures are timed
  • a616569 perf(test): --cache=worker|off, and the allocations behind a 3.3GB suite (#80)

style

  • 55a84fa style: gofmt the preamble split, regenerate the coverage report

other

  • 3b28ea9 stdlib: strings count characters; basename/dirname optional arguments (#104)
  • e88e7af runner: build call dispatch once per callable (#102)
  • 7a0395d flatstack: close the host-bridge allocation gap (#97)
  • d4fc71f runner/expr: closure-chain expression engine (#96)

v0.4.1...v0.5.0