Skip to content

v1.3.0

Compare
Choose a tag to compare
@RafidMuhymin RafidMuhymin released this 18 Nov 18:31
· 27 commits to main since this release

Breaking Changes

  • All the API methods have been moved to the spa namespace to avoid global pollution. (See the docs for more info)
  • The beautify component prop has been removed.
  • The PPBColor, SPBColor and secondaryProgressBar props have been removed and replaced with a new progressBarOptions prop.
  • The root, rootMargin and threshold props have been removed and replaced with a new intersectionObserverOptions prop.

Features:

  • Custom navigate and mount events. (See the docs for more info)
  • Automatic scanning of the DOM for new links. (See the docs for more info)
  • The spa.navigate API is now configurable. (See the docs for more info)
  • Built-in support for Google Analytics (in only 478 bytes). (See the docs for more info)
  • Support for adding HTML attributes to the generated script tag. (See the docs for more info)
  • Hashing of JS file name when external is set to true.
  • intersectionObserverOptions and progressBarOptions components props. (See the docs for more info)

Fixes:

  • Passive touchstart event listeners.
  • All the API methods have been moved to the spa namespace to avoid global pollution.
  • Fixed bug with localLinkDetector with containerization.

Refactoring: The complete codebase has been refactored to be more modular and easier to understand.

Documentation: The README.md file has been improved a lot to make it easier to understand the workflow and the usage of Astro SPA.

The updates to the README.md file are:

  • Why Astro SPA?
  • Features (Mechanism is now removed)
  • Script Execution in Astro SPA
  • How to Use Analytics with Astro SPA
  • Structured API documentation

Type Improvements: The scrollIntoViewOptions, IntersectionObserverInit, progressBarOptions interfaces have been added and updated.

v1.2.3...v1.3.0