Releases: RafidMuhymin/astro-spa
Releases · RafidMuhymin/astro-spa
v1.3.9
v1.3.8
- fix: fixed JSX error 8b24dd6
v1.3.7
v1.3.6
v1.3.5
v1.3.4
v1.3.3
- Add type: module to package.json f7014d1
v1.3.2
- Included bundled
terser
dependency 7d80065
v1.3.1
v1.3.0
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
andsecondaryProgressBar
props have been removed and replaced with a newprogressBarOptions
prop. - The
root
,rootMargin
andthreshold
props have been removed and replaced with a newintersectionObserverOptions
prop.
Features:
- Custom
navigate
andmount
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 totrue
. intersectionObserverOptions
andprogressBarOptions
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.