
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ember-rison-qs
Advanced tools
Implement serialization and deserialization of rison-node query strings for query-params in ember.
Replace router query param serialize and deserialize mechanics to use rison-node,
This idea comes from watching kibana dashboards query params, they actually use this exact method. It solves the ugly query strings and huge strings, some servers doesn't even support 2k+ characters, so this might help too if your server knows how to deserialize them.
ember install ember-rison-qs
import RisonQsMixin from 'ember-rison-qs';
export default class ApplicationRoute extends Route.extend(RisonQsMixin) {}
Note: you should only be including the mixin once, in application route.
And that's it, you can expect two thigs:
Your query params will be deserialized as expected to the corresponding queryParams in your controller and
it also works with ember-parachute.
Also, <LinkTo> urls will be correctly generated.
//some-controller.js
export default class SomeControllerController extends Controller {
queryParams = ['oneQueryParam'];
@tracked oneQueryParam = 3;
@tracked partialState = {
amazing: ['super', 'cool']
}
@tracked num = this.oneQueryParam?.some?.hard?.num || 0;
get someHardState() {
return {
some: {
hard: {
state: ['super', {
hard: true,
state: ['inside', true, 'of this']
}],
...this.partialState,
num: this.num
}
}
}
}
@action
incrementor() {
this.num++;
}
@action
augmentQuery() {
this.set('partialState', { prop: 1, other: { complex: 'stuff'}});
}
}
<LinkTo @route="some-route" @query={{hash oneQueryParam=this.someHardState}}>
Some Hard query params
</LinkTo>
<button {{on "click" this.augmentQuery}}>
Augment!
</button>
And expect the url like this some-route/?qs=(oneQueryParam:(some:(hard:(num:37,other:(complex:stuff),prop:1,state:!(super,(hard:!t,state:!(inside,!t,%27of+this%27)))))))
This project is licensed under the MIT License.
FAQs
Implement serialization and deserialization of rison-node query strings for query-params in ember.
The npm package ember-rison-qs receives a total of 2 weekly downloads. As such, ember-rison-qs popularity was classified as not popular.
We found that ember-rison-qs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.