Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(router-lite): query in fragment when using useUrlFragmentHash option #1794

Merged
merged 19 commits into from
Jul 14, 2023

Conversation

Sayan751
Copy link
Contributor

@Sayan751 Sayan751 commented Jul 11, 2023

Pull Request

πŸ“– Description

This fixes the issue reported on Discourse.

Note that this is a"breaking change" if you are relying on the location API, directly. However, if you are using the routing hooks, such as canLoad, loading etc., and you are using router-lite API (grabbing the query string and fragment from the RouteNode), then you should be fine.

🎫 Issues

πŸ‘©β€πŸ’» Reviewer Notes

πŸ“‘ Test Plan

⏭ Next Steps

cc: @ivanbacher

@Sayan751 Sayan751 requested a review from bigopon July 11, 2023 15:09
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #1794 (6e8b4a9) into master (e8e39a9) will increase coverage by 0.07%.
The diff coverage is 95.55%.

@@            Coverage Diff             @@
##           master    #1794      +/-   ##
==========================================
+ Coverage   88.45%   88.52%   +0.07%     
==========================================
  Files         247      248       +1     
  Lines       22360    22352       -8     
  Branches     5199     5199              
==========================================
+ Hits        19778    19787       +9     
+ Misses       2582     2565      -17     
Impacted Files Coverage Ξ”
packages/router-lite/src/url-parser.ts 93.18% <93.18%> (ΓΈ)
packages/router-lite/src/route-expression.ts 93.33% <96.96%> (+5.35%) ⬆️
packages/router-lite/src/instructions.ts 86.63% <100.00%> (-0.45%) ⬇️
packages/router-lite/src/options.ts 93.61% <100.00%> (+0.13%) ⬆️
packages/router-lite/src/resources/load.ts 88.05% <100.00%> (ΓΈ)
packages/router-lite/src/route-tree.ts 89.56% <100.00%> (ΓΈ)
packages/router-lite/src/router.ts 96.16% <100.00%> (ΓΈ)

πŸ“£ We’re building smart automated test selection to slash your CI/CD build times. Learn more

packages/router-lite/src/url-parser.ts Show resolved Hide resolved
packages/router-lite/src/route-expression.ts Outdated Show resolved Hide resolved
packages/router-lite/src/url-parser.ts Outdated Show resolved Hide resolved
packages/router-lite/src/instructions.ts Show resolved Hide resolved
@Sayan751 Sayan751 merged commit a1ca36d into master Jul 14, 2023
26 checks passed
@Sayan751 Sayan751 deleted the topic/router-lite/query-in-hash branch July 14, 2023 19:00
AureliaEffect pushed a commit that referenced this pull request Jul 24, 2023
**Features:**

* **compose:** passthrough bindings + support containerless (#1792) ([e8e39a9](e8e39a9))
* **template:** access global (#1790) ([2486b58](2486b58))

**Bug Fixes:**

* **router-lite:** handling slash in parameter value (#1805) ([3fbb698](3fbb698))
* **au-slot:** correctly prepare resources for slotted view (#1802) ([bf1ca4c](bf1ca4c))
* **router-lite:** e2e build ([a1ca36d](a1ca36d))

**Refactorings:**

* **ref:** deprecate view-model.ref and introduce component.ref (#1803) ([97e8dad](97e8dad))
* **text-binding:** always evaluate expressions in strict mode (#1801) ([15acfee](15acfee))
* **router-lite:** query in fragment when using useUrlFragmentHash option (#1794) ([a1ca36d](a1ca36d))
* ***:** bindable property -> name (#1783) ([ca0eda7](ca0eda7))
* **router-lite:** optimize object creation (#1782) ([c1ef0a3](c1ef0a3))
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.

None yet

2 participants