Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 7, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
wouter 3.3.5 -> 3.7.1 age adoption passing confidence

Release Notes

molefrog/wouter (wouter)

v3.7.1

Compare Source

v3.7.0: Support options.replace in hash router

Compare Source

v3.6.0: Support search in memory location

Compare Source

In-memory location now supports search params, thanks to @​mitulagr2 (https://github.com/molefrog/wouter/pull/497)

import { Router, useSearch } from "wouter";
import { memoryLocation } from "wouter/memory-location";

// Initialize memory location with path and search parameters
const { hook, searchHook } = memoryLocation({ 
  path: "/products?category=electronics",
  searchPath: "sort=price" 
});

// Use in your Router
function App() {
  return (
    <Router hook={hook} searchHook={searchHook}>
      <YourComponent />
    </Router>
  );
}

// Access both path and search in components
function YourComponent() {
  const [location, navigate] = hook();
  const search = useSearch();
  
  // location will be: "/products"
  // search will be: "category=electronics&sort=price"
  
  return (
    <div>
      <div>Current path: {location}</div>
      <div>Current search: {search}</div>
      <button onClick={() => navigate("/products/123?category=phones")}>
        Navigate
      </button>
    </div>
  );
}

v3.5.1

Compare Source

v3.5.0

Compare Source

v3.4.0: useSearchParams hook

Compare Source

Thanks to @​guoyunhe there is now a hook for reading and writing search parameters (see https://github.com/molefrog/wouter/pull/503).

import { useSearchParams } from "wouter";
const [searchParams, setSearchParams] = useSearchParams();

// Read params
searchParams.get('active'); // 'true'

// Update params
setSearchParams(prev => {
 prev.set('active', 'false'); 
 return prev;
});

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


This change is Reviewable

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@BoomchainLabs BoomchainLabs self-assigned this Jun 7, 2025
@BoomchainLabs BoomchainLabs self-requested a review June 7, 2025 01:57
@BoomchainLabs
Copy link
Contributor

GitKraken automatically performed 2 actions

Create your own automations at gitkraken.dev/automations

@netlify
Copy link

netlify bot commented Jun 7, 2025

Deploy Preview for chonk9k failed. Why did it fail? →

Name Link
🔨 Latest commit 2de3fc0
🔍 Latest deploy log https://app.netlify.com/projects/chonk9k/deploys/68439c738bd18200089fb298

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.

2 participants