Skip to content

Releases: iuroc/vanjs-router

v2.1.0

04 Nov 01:05
Compare
Choose a tag to compare

v2.0.8

24 Oct 07:40
Compare
Choose a tag to compare

Add a redirection method to remove the van module from the nomodule build.

v2.0.6

26 Jul 02:23
Compare
Choose a tag to compare

v2.0.5

26 Jul 01:06
Compare
Choose a tag to compare
  • Supports both string and regex matching.
  • Supports setting page display delay.
  • Supports configuring events for the first route match (onFirst) and subsequent route matches (onLoad).
  • Implemented using TypeScript.
  • Simple API.

v1.2.4

25 Jul 20:29
79b190f
Compare
Choose a tag to compare
Update README_zh.md

Version 1.2.3

10 Jan 01:18
Compare
Choose a tag to compare

VanJS Router v1.2.3 Release Notes

Update Date: January 10, 2024

  1. nowRoute Method: Retrieves information about the currently active route. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R24
  2. activeRoute Variable: Returns a Van State object. Modifying this value will trigger updates to the route and location.hash. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R30
  3. Route Interface: Used for constructing route information obtained from location.hash. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R6
  4. RouteSetting Interface: Construction parameters for the Route route component. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R13

VanJS Router v1.2.3 更新日志

更新日期:2024 年 1 月 10 日

  1. nowRoute 方法:获取当前活动的路由信息 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R24
  2. activeRoute 变量:返回一个 Van State 对象。修改此值将触发路由和 location.hash 的更新 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R30
  3. Route 接口:用于构建从 location.hash 读取到的路由信息 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R6
  4. RouteSetting 接口:Route 路由组件的构建参数 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R13

Version 1.2.2

09 Jan 05:41
Compare
Choose a tag to compare

Release Notes - v1.2.2

New Features and Enhancements

  • Demo Video Released

    • We are excited to announce the release of a new demo video to help users gain a better understanding of our Route component. You can watch the demo on Bilibili
  • Route Component Parameter Support in van Style

    • The Route component now supports passing the first parameter in a style consistent with van components. Check out the details in this 6f9a731
  • New Module-Free Version

    • We've introduced a brand new module-free version, allowing you to use the component effortlessly without TypeScript and npm build tools. For more information, refer to this 9616932

TypeScript Type Description Optimization

  • We have optimized the TypeScript type descriptions to provide clearer and more accurate type information, enhancing code readability and maintainability

Thank you to all our users for their support and feedback. We will continue working to improve and provide you with a better user experience. If you have any questions or suggestions, feel free to reach out to us.


版本发布日志 - v1.2.2

新特性和改进

  • 演示视频发布
    • 我们很高兴地宣布发布了一个全新的演示视频,以帮助用户更好地了解我们的 Route 组件。您可以在 Bilibili 上观看演示
  • Route 组件参数支持 van 组件风格
    • 现在,Route 组件支持第一个参数传入,并且与 van 组件的参数风格保持一致。详细信息请查看 6f9a731
  • 新增无模块版本
    • 我们为用户提供了一个全新的无模块版本,使您可以在不使用 TypeScript 和 npm 构建工具的情况下轻松使用。有关详细信息,请查看 9616932

TypeScript 类型描述优化

  • 我们对 TypeScript 类型描述进行了一些优化,以提供更清晰和准确的类型信息,以改善代码的可读性和可维护性。

感谢所有用户的支持和反馈,我们将继续努力改进并为您提供更好的使用体验。如有任何问题或建议,请随时联系我们。

Version 1.1.7

31 Dec 05:52
Compare
Choose a tag to compare

Upgrade Log:

  1. Custom String Identifiers for Routes:

    • Now you can utilize personalized string identifiers to distinguish and navigate between routes.
  2. Simplified Export:

    • The Route component object and the routeTo navigation method are now the sole exports, ensuring simplicity and ease of use.
  3. Effortless Page Transitions:

    • Page transitions are seamlessly achieved through the manipulation of the DOM's hidden attribute.
  4. Introduction of onFirst Method:

    • Introducing support for the onFirst method, allowing the execution of specific actions when a route is initially loaded.
  5. Integration of onLoad Method:

    • The newly added onLoad method executes designated actions every time a route is loaded, including the initial load.

Feel free to reach out if you have any questions or require further clarification on the updates.

1.0.2

13 Dec 06:42
ad2b220
Compare
Choose a tag to compare
Create README_zh.md