Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remix-flat-routes

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-flat-routes - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

6

CHANGELOG.md
# CHANGELOG
## v0.5.3
## v0.5.5
- 🐛 Handle optional segments with param [#30](https://github.com/kiliman/remix-flat-routes/issues/30)
## v0.5.4
- 🐛 Fix route matching on Windows

@@ -6,0 +10,0 @@

@@ -251,2 +251,6 @@ "use strict";

}
// handle optional segments with param: ($segment) => :segment?
}
else if (segment.startsWith(`(${paramPrefixChar}`)) {
result += `/:${segment.slice(2, segment.length - 1)}?`;
// handle optional segments: (segment) => segment?

@@ -319,3 +323,4 @@ }

if (routeSegment.includes(paramPrefixChar) &&
!routeSegment.startsWith(paramPrefixChar)) {
!(routeSegment.startsWith(paramPrefixChar) ||
routeSegment.startsWith(`(${paramPrefixChar}`))) {
throw new Error(`Route params must start with prefix char ${paramPrefixChar}: ${routeSegment}`);

@@ -322,0 +327,0 @@ }

2

package.json
{
"name": "remix-flat-routes",
"version": "0.5.4",
"version": "0.5.5",
"description": "Package for generating routes using flat convention",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc