| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…max`
Restore the `{{YEAR}}` copyright placeholder substitution to the
WebAssembly build scripts, matching the namespace convention.
- scripts/build.js: require `@stdlib/time/current-year`, define the
`YEAR` variable, and substitute `{{YEAR}}` when generating the
license header (present in 28/33, ~85%, of `blas/base/wasm`
siblings and 100% of `blas/ext/base/wasm`).
- scripts/template.txt: replace the hardcoded `Copyright (c) 2025`
with the `{{YEAR}}` placeholder.
The package already requires `@stdlib/time/current-year` via
scripts/postbuild.wat.js, which stamps the year dynamically; build.js
was the only script left hardcoding it.
Restore the `{{YEAR}}` copyright placeholder substitution to the
WebAssembly build scripts, matching the namespace convention.
- scripts/build.js: require `@stdlib/time/current-year`, define the
`YEAR` variable, and substitute `{{YEAR}}` when generating the
license header (present in 28/33, ~85%, of `blas/base/wasm`
siblings and 100% of `blas/ext/base/wasm`).
- scripts/template.txt: replace the hardcoded `Copyright (c) 2025`
with the `{{YEAR}}` placeholder.
The package already requires `@stdlib/time/current-year` via
scripts/postbuild.wat.js, which stamps the year dynamically; build.js
was the only script left hardcoding it.
Restore the `{{YEAR}}` copyright placeholder substitution to the
WebAssembly build scripts, matching the namespace convention.
- scripts/build.js: require `@stdlib/time/current-year`, define the
`YEAR` variable, and substitute `{{YEAR}}` when generating the
license header (present in 28/33, ~85%, of `blas/base/wasm`
siblings and 100% of `blas/ext/base/wasm`).
- scripts/template.txt: replace the hardcoded `Copyright (c) 2025`
with the `{{YEAR}}` placeholder.
The package already requires `@stdlib/time/current-year` via
scripts/postbuild.wat.js, which stamps the year dynamically; build.js
was the only script left hardcoding it.
Restore the `{{YEAR}}` copyright placeholder substitution to the
WebAssembly build scripts, matching the namespace convention.
- scripts/build.js: require `@stdlib/time/current-year`, define the
`YEAR` variable, and substitute `{{YEAR}}` when generating the
license header (present in 28/33, ~85%, of `blas/base/wasm`
siblings and 100% of `blas/ext/base/wasm`).
- scripts/template.txt: replace the hardcoded `Copyright (c) 2025`
with the `{{YEAR}}` placeholder.
The package already requires `@stdlib/time/current-year` via
scripts/postbuild.wat.js, which stamps the year dynamically; build.js
was the only script left hardcoding it.
Restore the `{{YEAR}}` copyright placeholder substitution to the
WebAssembly build scripts, matching the namespace convention.
- scripts/build.js: require `@stdlib/time/current-year`, define the
`YEAR` variable, and substitute `{{YEAR}}` when generating the
license header (present in 28/33, ~85%, of `blas/base/wasm`
siblings and 100% of `blas/ext/base/wasm`).
- scripts/template.txt: replace the hardcoded `Copyright (c) 2025`
with the `{{YEAR}}` placeholder.
The package already requires `@stdlib/time/current-year` via
scripts/postbuild.wat.js, which stamps the year dynamically; build.js
was the only script left hardcoding it.
Coverage Report
The above coverage report was generated for the changes in this PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Resolves None.
Description
This pull request restores the {{YEAR}} copyright-year placeholder substitution to the WebAssembly build scripts of five @stdlib/blas/base/wasm packages so that their build tooling matches the convention used across the rest of the namespace.
Five packages — isamax, sscal, zcopy, zdrot, and zswap — had scripts/build.js and scripts/template.txt that hardcoded Copyright (c) 2025 and omitted the year-substitution logic. The remaining 28 packages in the namespace, and all 10 packages in the sibling @stdlib/blas/ext/base/wasm namespace, instead template the year via @stdlib/time/current-year. Each of the five affected packages already required @stdlib/time/current-year in scripts/postbuild.wat.js and stamped the year dynamically there, so only build.js was left hardcoding the year — an internally inconsistent state.
Per package the change is mechanical and limited to two build-time files:
After the change, each edited build.js and template.txt is byte-identical to the namespace majority. No WebAssembly artifacts are regenerated, so lib/binary.browser.js, src/main.wat, and src/main.wasm are untouched, matching the committed state of the majority packages.
Namespace summary
Affected packages
Identical fix applied independently to each; one commit per package:
Related Issues
None.
Questions
No.
Other
Validation performed before proposing the corrections:
Deliberately excluded: features without a clear ≥75% majority (the 20/13 template split and the Makefile split), and whitespace-only indentation differences in src/exports.json (dsdot, scasum) and manifest.json (scasum), which are cosmetic and low-signal. No WebAssembly binaries were regenerated and no observable behavior, public signature, or test expectation is changed.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was produced by an automated cross-package drift-detection routine running under Claude Code. The routine extracted structural and template features from every package in the namespace, identified the majority convention, and applied the majority pattern to the outliers; three independent AI reviews validated each correction before it was included. The diffs are mechanical (byte-identical to the namespace majority) and were reviewed for scope and correctness.
Generated by Claude Code