Comments (5)
how exactly are you using URI.js? (what are you doing and what are you expecting exactly)
from uri.js.
My points:
Goal
I want to replace all my utility methods about URI modifications by a lib doing it the proper way. I mostly modify query strings and compare URI.
Question about duplicates
Event if I cannot find a case yet where I need to send duplicates, my utility methods do not prevent me to do that. I do not want a regression on that specific point by switching to the URI lib.
Is the duplicates removal a part of any specification?
Consistency
If URI.buildQuery() offers me a way to choose if whether or not I want duplicates, why uri.addQuery() cannot?
from uri.js.
Is the duplicates removal a part of any specification?
hell no. All that is defined is the syntax - but nobody every said anything about semantics. This lead to a lot of different implementations regarding the handling of query strings. ?foo=1&foo=2
is treated as foo = 2
in one environment and as foo = [1, 2]
in another.
v1.8.0 is on the doorstep (waiting a couple of days for some possible fix in QUnit). I've already introduced URI.duplicateQueryParameters = true;
for global configuration and URI("…").duplicateQueryParameter(true)
for instance configuration. Consider your problem solved, just not released yet.
(I'll close the ticket once v1.8.0 is out)
from uri.js.
Great, many thanks!
from uri.js.
Issue resolved with v1.8.0
from uri.js.
Related Issues (20)
- Different results between 1.19.1 and 1.19.2 when using uri.scheme HOT 4
- What is the point of directory, suffix, etc? HOT 2
- Support for handling search as ES6 Map instead of Object properties
- setSearch() breaks previous url parameters
- Property for File Name without File Extension
- A reference resolution does not match RFC3986
- Test if URI/URL is templated
- URI.min.js 1.19.4 throws "does not have either property: href, src, action, cite" HOT 2
- [Feature request] Support for nested objects inside template builder.
- Hope to join the 'filenameNoExtension' api
- directory function is prepending not appending
- Append segments
- Trying to get in touch with you regarding a security issue HOT 1
- Handling of relative URLs that have a protocol in latest 1.19.7 HOT 1
- @types/urijs/index can only be default-imported using the 'allowSyntheticDefaultImports' flag HOT 1
- charset=Shift_JIS will fail to parse URI.js with a syntax error caused by non-ASCII characters in RegExp HOT 2
- Make invalid port check optional to support url templates
- Can we change separator?
- URI malformed exception is thrown when overriding path/pathname HOT 1
- Please do not omit the file extension for the value of the "main" field in the package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uri.js.