mithriljs / mithril-codemods Goto Github PK
View Code? Open in Web Editor NEWjscodeshift-powered [email protected] to [email protected] transformations
License: MIT License
jscodeshift-powered [email protected] to [email protected] transformations
License: MIT License
Branch | Build failing π¨ |
---|---|
Dependency | execa |
Current Version | 0.6.0 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
As execa is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
The new version differs by 4 commits .
f2d80c6
0.6.1
a71bef2
Attach error listener to stdio stream (#74)
21b418b
Fix the docs about the options
863e4a7
Add a tip to the readme
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | eslint |
Current Version | 3.17.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As eslint is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
operator-assignment
with parenthesized expression (fixes #8190) (#8197) (alberto)output
property to tests (#8195) (alberto)The new version differs by 7 commits .
af8f8b9
3.17.1
a6c12f3
Build: package.json and changelog update for 3.17.1
f8c8e6e
Build: change mock-fs path without SSH (fixes #8207) (#8208)
f713f11
Fix: nonblock-statement-body-position multiline error (fixes #8202) (#8203)
41e3d9c
Fix: operator-assignment
with parenthesized expression (fixes #8190) (#8197)
5e3bca7
Chore: add eslint-plugin-eslint-plugin (#8198)
580da36
Chore: add missing output
property to tests (#8195)
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
https://github.com/tivac/mithril-codemods/blob/master/transforms/m-module/index.js#L9-L12 looks cool & I bet is very useful, should update existing transforms to use it.
function() {
m.redraw.strategy("diff");
}
function() {
m.redraw.strategy("diff");
}
function() {
if(m.redraw.stategy) {
m.redraw.strategy("diff");
}
}
or
function() {
console.warn("m.redraw.strategy is DEPRECATED") || m.redraw.strategy("diff");
}
Community health files are stuff like CONTRIBUTING.md, FUNDING.yml, and so on, stuff that normally lives in .github
, docs/
, or the repo's root. I've added default files for everything on this list of supported file types except for a CONTRIBUTING.md file, as that process varies pretty greatly across repos. For issue templates, there's two templates: one for bugs and one for feature requests. The pull request template and issue templates are each derived from the core project's own core templates but with core-specific stuff omitted.
No action is required on your part, but you may wish to customize these appropriately and/or take other related action in light of this like adding/removing issue templates.
If you have any questions, comments, or concerns, please file an issue and I'd be more than willing to address them.
first run:
job: vnode.state.attrs.job
second run:
job: vnode.state.state.attrs.job
{
view : function(ctrl, options) {
ctrl.fooga;
options.wooga;
}
}
should become
{
view : function(vnode) {
vnode.state.fooga;
vnode.attrs.wooga;
}
}
... at least I think so. There's nothing in the migration guide about it and there ought to be.
m.route.buildQueryString({ ... })
m.route.parseQueryString("...")
m.route.buildQueryString({ ... })
m.route.parseQueryString("...")
m.buildQueryString({ ... })
m.parseQueryString("...")
Branch | Build failing π¨ |
---|---|
Dependency | eslint-config-arenanet |
Current Version | 3.1.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As eslint-config-arenanet is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 7 commits .
5748466
v3.2.0
65b41ab
test: more specimen, also nicer errors & correct prop
9d1bb08
style: clean up unecessary details
fd346b5
test: set up simple testing env
48734e2
feat: add eslint 3.15.0 support
cd32ae6
disable comma-dangle rule
9bb0143
Add package metadata
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
{
controller : function() {
// ...
this.onunload = clear;
}
}
{
controller : function() {
// ...
this.onunload = clear;
}
}
{
controller : function() {
// ...
},
onremove : clear
}
To help automate a better changelog/commit messages across-the-board.
Is a reasonable example of a starting point.
For now will do something similar in concept to what https://github.com/avajs/ava-codemods/ is doing and run jscodeshift
once per transform against all files.
π€’
Because stuff like this is slipping through a lot.
- config : function(el, init) {
+ onupdate : function(vnode) {
if(init) {
return;
}
- ctrl.form = el;
+ ctrl.form = vnode.dom;
Branch | Build failing π¨ |
---|---|
Dependency | husky |
Current Version | 0.13.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As husky is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 9 commits .
4b5011e
0.13.3
6b92bb8
Comments
c6f8bb1
0.13.3-0
a2da709
Prefer nvm over Node global install
652c7f0
Update README.md
d05a7b3
Update README.md
0bb5798
Fix tests
7af95d3
update failure message (#107)
be435ca
Update CHANGELOG.md
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
m("div", {
onclick : function() {
m.redraw.strategy("none");
}
});
will be rewritten as
m("div", {
onclick : function() {
e.redraw = false;
}
});
which is good, except e
is now undefined and the code will break. Will need to add a param if there isn't one.
Branch | Build failing π¨ |
---|---|
Dependency | validate-commit-msg |
Current Version | 2.11.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As validate-commit-msg is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
<a name"2.12.0">
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
function foo(ctrl, options) {
}
const comp = {
view(ctrl, options) {
return foo(ctrl, options);
}
};
function foo(vnode) {
}
const comp = {
view(vnode) {
return foo(vnode.state, vnode.attrs);
}
};
function foo(state) {
}
const comp = {
view(vnode) {
return foo(vnode.state);
}
};
m("")
m("div")
The original form is arguably a bug, and there's no reason this tool couldn't trivially update that to not be a bug.
const m = require("mithril"),
controller = require("./controller");
module.exports = {
controller : controller,
view : () => m("div")
};
const m = require("mithril"),
controller = require("./controller");
module.exports = {
controller : controller,
view : () => m("div")
};
const m = require("mithril"),
controller = require("./controller");
module.exports = {
oninit : controller,
view : () => m("div")
};
Just look at this π
export default function() {
- m.route(
- document.body,
- prefix("/setup"),
- keys({
- "/setup" : setup
- }, function(value, key) {
- return prefix(key);
- })
- );
+ m.route.set(document.body, prefix("/setup"), keys({
+ "/setup" : setup
+ }, function(value, key) {
+ return prefix(key);
+ }));
}
Would be nice to be able to identify functions like this.
export function view(ctrl, options) {
...
}
Since not only is it named view
but it takes the exact two params we'd expect. Taking just ctrl
as the first param is probably enough.
Branch | Build failing π¨ |
---|---|
Dependency | execa |
Current Version | 0.6.1 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
As execa is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Because this is odd-looking.
- controller : function(options) {
+ oninit: function(options) {
var ctrl = this,
- val = get(options.field, "attrs.value");
+ val = get(options.attrs.field, "attrs.value");
- ctrl.id = id(options);
+ ctrl.id = id(options.attrs);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.