Releases: quantcdn/quant-cli
Releases · quantcdn/quant-cli
v6.2.0
New
- `quant purge` now accepts `--cache-keys` without a path positional. Use it to purge by cache key from CI:
```sh
quant purge --cache-keys "env:test"
``` - Path and `--cache-keys` are mutually exclusive; one is required.
Maintenance
- Updates in-range dependencies (`@clack/core`, `@clack/prompts`, `axios`, `eslint`, `nock`, `sinon`).
- Overrides `serialize-javascript` to `^7.0.5` to address transitive vulnerabilities via mocha (GHSA-5c6j-r48x-rmvq, GHSA-qj8w-gfj5-8c6v). `npm audit` now reports zero vulnerabilities.
v6.1.0
Fixes
- Deploy: revision log now stores successful uploads — Previously only files rejected by the API with MD5-match errors were recorded. Successfully uploaded files were never stored, requiring two no-change deploys before the revision log was fully populated. Now files are recorded immediately after upload.
- Deploy: async MD5 hashing — Switched from
md5File.syncto asyncmd5Fileso files within a chunk hash in parallel instead of blocking the event loop. - Deploy: differentiated skip logging —
(unchanged)= revision log skip (no API call),(unchanged, md5 match)= API confirmed content matches (now stored for next time). - Init: fix --endpoint being ignored —
promptArgs()hardcoded the default API endpoint, overriding any--endpointCLI argument when init fell through to interactive prompts.
v6.0.0
Breaking Changes
- Node.js 20+ required - Dropped support for Node 18
- ES Modules - Codebase converted from CommonJS to ESM
New Features
- Redirect delete - Remove redirects with
quant redirect <from> --delete(use--forceto skip confirmation)
Updates
- Upgraded to ESLint 9 flat config
- Docker image now uses Node 22
- CI tests on Node 20.x and 22.x
- Updated all dependencies to latest versions
Dependencies
- axios 1.13.0
- @clack/prompts 1.0.0
- yargs 18.0.0
- mocha 11.7.5
- eslint 9.39.0
Full Changelog: v5.1.1...v6.0.0
v5.1.1
Major overhaul of the CLI tool to provide a new base before adding oauth login and Dashboard API controls.
- Adds interactive mode to CLI when running
quantwithout other args
┌ QuantCDN CLI
─────────────────────────────────────
Active configuration:
Organization: example-org
Project: example-project
─────────────────────────────────────
│
quant
┌ QuantCDN CLI
─────────────────────────────────────
Active configuration:
Organization: quant
Project: quant-dashboard
Endpoint: http://localhost:8081/v1
─────────────────────────────────────
│
◆ What would you like to do?
│ ● Deploy an entire directory
│ ○ Deploy a single page
│ ○ Deploy a single file
│ ○ Create a redirect
│ ○ Purge the cache for a path
│ ○ Access WAF logs
│ ○ Perform search index operations
│ ○ Validate local file checksums
│ ○ ───────────────────────
│ ○ Deploy an edge function
│ ○ Deploy an edge filter
│ ○ Deploy an edge auth function
│ ○ ───────────────────────
│ ○ Unpublish an asset
│ ○ Delete an asset
│ ○ ───────────────────────
│ ○ Show project info
│ ○ Reinitialize project settings
- Moves WAF logs to content API
- Use concurrency for unpublishing to speed up deployment time
- Write to revision log after
deployorscancommands execute - Batch requests to meta API for
scancommand for vastly increased performance - Prevent deploying conflicting
--enable-index-htmlmode on/off - Adds functionality for add/update edge functions, edge auth, edge filters
- Adds bulk deployment of edge functions via
functionscommand
v4.0.0
What's Changed
- Feat: Add publish command. by @steveworley in #251
- Feat: User-agent support for crawl. by @steveworley in #261
- Fix: Change to install. by @steveworley in #265
- Bump eslint from 8.57.0 to 9.8.0 by @dependabot in #266
- Bump sinon from 17.0.2 to 18.0.0 by @dependabot in #257
- Fix: Global install issue by @steveworley in #270
Full Changelog: v3.0.0...v4.0.0
v3.0.0
What's Changed
- Bump eslint from 8.45.0 to 8.51.0 by @dependabot in #235
- Bump chai from 4.3.7 to 4.3.10 by @dependabot in #234
- Bump string.prototype.matchall from 4.0.8 to 4.0.10 by @dependabot in #231
- Bump yargs from 17.6.2 to 17.7.2 by @dependabot in #224
- Dependency updates. by @stooit in #244
- Bump @sinonjs/referee from 10.0.1 to 11.0.1 by @dependabot in #245
- Bump sinon from 15.2.0 to 17.0.1 by @dependabot in #236
- Chore: Update minimum node verson. by @steveworley in #246
- Fix: Bump docker version. by @steveworley in #247
Full Changelog: v2.1.0...v3.0.0
v2.1.0
- Add node engines. 8de2a4c
- Merge pull request #216 from quantcdn/dependabot/npm_and_yarn/sinon-15.2.0 0bf878a
- Merge pull request #222 from quantcdn/dependabot/npm_and_yarn/eslint-8.45.0 8c1fef6
- Bump sinon from 15.0.4 to 15.2.0 3922517
- Merge pull request #217 from quantcdn/dependabot/npm_and_yarn/html-entities-2.4.0 d448970
- Merge pull request #220 from quantcdn/dependabot/npm_and_yarn/sinonjs/referee-10.0.1 6e073c7
- Bump eslint from 8.40.0 to 8.45.0 ca701cc
- Bump html-entities from 2.3.3 to 2.4.0 f32f009
- Bump @sinonjs/referee from 10.0.0 to 10.0.1 cc51dfb
- Merge pull request #218 from quantcdn/feat/waf-logs-command 8bebcdb
- Update tests to support quant-organisation ce0a83e
- Add waf log command. 26a4c6f
- Merge pull request #223 from quantcdn/dependabot/npm_and_yarn/word-wrap-1.2.4 776448f
- Bump word-wrap from 1.2.3 to 1.2.4 f5fa22c
- Merge pull request #208 from quantcdn/dependabot/npm_and_yarn/sinon-15.0.4 026140c
- Merge pull request #210 from quantcdn/dependabot/npm_and_yarn/yargs-17.7.2 8ccc22a
- Merge pull request #211 from quantcdn/dependabot/npm_and_yarn/eslint-8.40.0 0090d71
- Bump eslint from 8.34.0 to 8.40.0 eb28863
- Bump yargs from 17.6.2 to 17.7.2 efefd49
- Bump sinon from 15.0.1 to 15.0.4 d7e5d42
- Merge pull request #199 from quantcdn/dependabot/npm_and_yarn/eslint-8.34.0 3289938
- Bump eslint from 8.33.0 to 8.34.0 13820a0
- Merge pull request #196 from quantcdn/dependabot/npm_and_yarn/sinonjs/referee-10.0.0 1109b97
- Bump @sinonjs/referee from 9.1.2 to 10.0.0 af40a21
- Merge pull request #191 from quantcdn/dependabot/npm_and_yarn/sinon-15.0.1 56fecb6
- Merge pull request #195 from quantcdn/feature/skip-unpublish-redirects 991c5bb
- Merge pull request #197 from quantcdn/dependabot/npm_and_yarn/eslint-8.33.0 dc14358
- Merge pull request #198 from quantcdn/bugfix/fix_search_index e61580e
- Fixed searchIndex method name. 8a3a5e4
- Bump eslint from 8.29.0 to 8.33.0 5db6474
- Fix lint. 5765fed
- Add type to meta response. 1ea3737
- Bump sinon from 15.0.0 to 15.0.1 b9ba92e
v2.0.0
What's Changed
- Add helper to remove index.html by @steveworley in #182
- Add local revision support. by @steveworley in #166
Dependencies
- Bump yargs from 17.5.1 to 17.6.2 by @dependabot in #181
- Bump eslint from 8.23.0 to 8.29.0 by @dependabot in #180
- Bump chai from 4.3.6 to 4.3.7 by @dependabot in #186
- Bump sinon from 14.0.0 to 15.0.0 by @dependabot in #179
- Bump big-json from 3.1.0 to 3.2.0 by @dependabot in #176
- Bump string.prototype.matchall from 4.0.7 to 4.0.8 by @dependabot in #183
- Bump mocha from 10.0.0 to 10.2.0 by @dependabot in #185
Full Changelog: v1.12.0...v2.0.0
v1.12.0
What's Changed
- Bump eslint from 8.20.0 to 8.22.0 by @dependabot in #163
- Bump eslint from 8.22.0 to 8.23.0 by @dependabot in #167
- Add force option. by @steveworley @stooit in #165
Full Changelog: v1.11.0...v1.12.0
Improves performance of metadata lookup, --force flag, and removes needless revision lookup for markup.