Skip to content

Fix README option examples and document request tracking - #555

Merged
CodeByZach merged 1 commit into
masterfrom
readme-fixes
Nov 1, 2026
Merged

CodeByZach merged 1 commit into
masterfrom
readme-fixes

Conversation

@CodeByZach

Copy link
Copy Markdown
Owner

Summary

Fixes README examples that didn't work and documents how request tracking
behaves. Documentation only.

Changes

  • The Tracking examples assigned Pace.options, which has no effect after
    pace loads. They now use paceOptions, and the README says options are
    read once, when pace.js loads.
  • Documents trackMethods (how to track POST), the restartOnRequestAfter
    value, what ignoreURLs matches, trackWebSockets, the scope of
    Pace.ignore/Pace.track, and what Pace can't track.
  • Advises against calling Pace.restart() for every request.
  • Recommends pace-js@1 instead of pace-js@latest, and fixes
    Pace.start().
  • The release badge uses shields.io's current route (the old one
    redirects, which npm shows as a broken image); the stars badge links to
    the repository.

- The Tracking examples assigned Pace.options, which has no effect after
  pace loads; they now use paceOptions, and the README says options are
  read once, when pace.js loads.
- Document trackMethods (how to track POST), the restartOnRequestAfter
  value, what ignoreURLs matches, trackWebSockets, that Pace.ignore and
  Pace.track only cover requests opened inside the callback, and what
  Pace can't track.
- Advise against calling Pace.restart() for every request.
- Recommend pace-js@1 instead of pace-js@latest, and fix Pace.start().
- The release badge uses shields.io's current route (the old one
  redirects, which shows as a broken image on npm); the stars badge links
  to the repository (the stargazers page needs a login).
@CodeByZach
CodeByZach merged commit de17242 into master Nov 1, 2026
2 checks passed
@CodeByZach
CodeByZach deleted the readme-fixes branch November 1, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant