Skip to content

Commit 11ab96f

Browse files
committed
update union-type name
1 parent d021ba7 commit 11ab96f

File tree

14 files changed

+29
-29
lines changed

14 files changed

+29
-29
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Work in progress.
1414
* State should be easily inspectable for debugging and serialization. Also,
1515
time travel.
1616
* Minimalism and simplicity are center pieces in every used library.
17-
* Actions should be expressed as [union types](https://github.com/paldepind/union-type-js).
17+
* Actions should be expressed as [union types](https://github.com/paldepind/union-type).
1818
* Everything should be modular. Ideally this GitHub repository should contain
1919
as little code as possible.
2020

@@ -27,7 +27,7 @@ only pure functions.
2727
# What it is
2828

2929
[Ramda](http://ramdajs.com/) +
30-
[union-type-js](https://github.com/paldepind/union-type-js) +
30+
[union-type](https://github.com/paldepind/union-type) +
3131
[Flyd](https://github.com/paldepind/flyd) +
3232
[Snabbdom](https://github.com/paldepind/snabbdom) + a lot of inspiration from
3333
[Elm](http://elm-lang.org/) = a functional JavaScript frontend framework for

examples/counters/1/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'use strict';
44

55
var R = require('ramda');
6-
var Type = require('union-type-js');
6+
var Type = require('union-type');
77
var flyd = require('flyd');
88
var stream = flyd.stream;
99
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
@@ -46,7 +46,7 @@ window.addEventListener('DOMContentLoaded', function () {
4646
flyd.scan(patch, container, vnode$);
4747
});
4848

49-
},{"flyd":2,"ramda":3,"snabbdom":15,"snabbdom/h":10,"snabbdom/modules/class":12,"snabbdom/modules/eventlisteners":13,"snabbdom/modules/props":14,"union-type-js":17}],2:[function(require,module,exports){
49+
},{"flyd":2,"ramda":3,"snabbdom":15,"snabbdom/h":10,"snabbdom/modules/class":12,"snabbdom/modules/eventlisteners":13,"snabbdom/modules/props":14,"union-type":17}],2:[function(require,module,exports){
5050
(function (root, factory) {
5151
if (typeof define === 'function' && define.amd) {
5252
define([], factory); // AMD. Register as an anonymous module.

examples/counters/2/build.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'use strict';
44

55
var R = require('ramda');
6-
var Type = require('union-type-js');
6+
var Type = require('union-type');
77
var h = require('snabbdom/h');
88

99
// Model
@@ -36,15 +36,15 @@ var countStyle = { fontSize: '20px',
3636

3737
module.exports = { init: init, Action: Action, update: update, view: view };
3838

39-
},{"ramda":6,"snabbdom/h":13,"union-type-js":20}],2:[function(require,module,exports){
39+
},{"ramda":6,"snabbdom/h":13,"union-type":20}],2:[function(require,module,exports){
4040
/* jshint esnext: true */
4141
'use strict';
4242

4343
var R = require('ramda');
4444
var flyd = require('flyd');
4545
var stream = flyd.stream;
4646
var forwardTo = require('flyd-forwardto');
47-
var Type = require('union-type-js');
47+
var Type = require('union-type');
4848
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
4949
var h = require('snabbdom/h');
5050

@@ -94,7 +94,7 @@ window.addEventListener('DOMContentLoaded', function () {
9494
flyd.scan(patch, container, vnode$);
9595
});
9696

97-
},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type-js":20}],3:[function(require,module,exports){
97+
},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type":20}],3:[function(require,module,exports){
9898
var flyd = require('flyd');
9999

100100
module.exports = flyd.curryN(2, function(targ, fn) {

examples/counters/3/build.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'use strict';
44

55
var R = require('ramda');
6-
var Type = require('union-type-js');
6+
var Type = require('union-type');
77
var h = require('snabbdom/h');
88

99
// Model
@@ -36,7 +36,7 @@ var countStyle = { fontSize: '20px',
3636

3737
module.exports = { init: init, Action: Action, update: update, view: view };
3838

39-
},{"ramda":6,"snabbdom/h":13,"union-type-js":20}],2:[function(require,module,exports){
39+
},{"ramda":6,"snabbdom/h":13,"union-type":20}],2:[function(require,module,exports){
4040
/* jshint esnext: true */
4141
'use strict';
4242

@@ -46,7 +46,7 @@ var R = require('ramda');
4646
var flyd = require('flyd');
4747
var stream = flyd.stream;
4848
var forwardTo = require('flyd-forwardto');
49-
var Type = require('union-type-js');
49+
var Type = require('union-type');
5050
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
5151
var h = require('snabbdom/h');
5252

@@ -117,7 +117,7 @@ window.addEventListener('DOMContentLoaded', function () {
117117
flyd.scan(patch, container, vnode$);
118118
});
119119

120-
},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type-js":20}],3:[function(require,module,exports){
120+
},{"./counter.js":1,"flyd":5,"flyd-forwardto":3,"ramda":6,"snabbdom":18,"snabbdom/h":13,"snabbdom/modules/class":15,"snabbdom/modules/eventlisteners":16,"snabbdom/modules/props":17,"union-type":20}],3:[function(require,module,exports){
121121
var flyd = require('flyd');
122122

123123
module.exports = flyd.curryN(2, function(targ, fn) {

examples/modal/js/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const R = require('ramda');
33
const flyd = require('flyd');
44
const stream = flyd.stream;
55
const forwardTo = require('flyd-forwardto');
6-
const Type = require('union-type-js');
6+
const Type = require('union-type');
77
const patch = require('snabbdom/snabbdom.js').init([
88
require('snabbdom/modules/class'),
99
require('snabbdom/modules/style'),

examples/modal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ramda": "^0.14.0",
1717
"snabbdom": "^0.2.0",
1818
"flyd": "^0.1.4",
19-
"union-type-js": "^0.1.0"
19+
"union-type": "^0.1.0"
2020
},
2121
"jshintConfig": {
2222
"esnext": true,

examples/nesting/js/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17016,7 +17016,7 @@ window.addEventListener('DOMContentLoaded', function () {
1701617016
'use strict';
1701717017

1701817018
var R = require('ramda');
17019-
var Type = require('union-type-js');
17019+
var Type = require('union-type');
1702017020
var h = require('snabbdom/h');
1702117021
var forwardTo = require('flyd-forwardto');
1702217022

@@ -17059,7 +17059,7 @@ module.exports = function (Component) {
1705917059
return { init: init, Action: Action, update: update, view: view };
1706017060
};
1706117061

17062-
},{"flyd-forwardto":41,"ramda":43,"snabbdom/h":50,"treis":1,"union-type-js":59}],39:[function(require,module,exports){
17062+
},{"flyd-forwardto":41,"ramda":43,"snabbdom/h":50,"treis":1,"union-type":59}],39:[function(require,module,exports){
1706317063
/* jshint esnext: true */
1706417064
'use strict';
1706517065

examples/nesting/js/list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* jshint esnext: true */
22
const R = require('ramda')
3-
const Type = require('union-type-js')
3+
const Type = require('union-type')
44
const h = require('snabbdom/h')
55
const forwardTo = require('flyd-forwardto')
66

examples/todo/js/app.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -9050,7 +9050,7 @@ var R = require('ramda');
90509050
var flyd = require('flyd');
90519051
var stream = flyd.stream;
90529052
var forwardTo = require('flyd-forwardto');
9053-
var Type = require('union-type-js');
9053+
var Type = require('union-type');
90549054
var Router = require('../../../router');
90559055
var patch = require('snabbdom').init([require('snabbdom/modules/class'), require('snabbdom/modules/style'), require('snabbdom/modules/props'), require('snabbdom/modules/eventlisteners')]);
90569056
var treis = require('treis');
@@ -9175,12 +9175,12 @@ window.addEventListener('DOMContentLoaded', function () {
91759175
flyd.scan(patch, container, vnode$);
91769176
});
91779177

9178-
},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"../../../router":57,"./task":26,"flyd":28,"flyd-forwardto":27,"ramda":29,"snabbdom":42,"snabbdom/h":36,"snabbdom/modules/class":38,"snabbdom/modules/eventlisteners":39,"snabbdom/modules/props":40,"snabbdom/modules/style":41,"treis":1,"union-type-js":44}],26:[function(require,module,exports){
9178+
},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"../../../router":57,"./task":26,"flyd":28,"flyd-forwardto":27,"ramda":29,"snabbdom":42,"snabbdom/h":36,"snabbdom/modules/class":38,"snabbdom/modules/eventlisteners":39,"snabbdom/modules/props":40,"snabbdom/modules/style":41,"treis":1,"union-type":44}],26:[function(require,module,exports){
91799179
/* jshint esnext: true */
91809180
'use strict';
91819181

91829182
var R = require('ramda');
9183-
var Type = require('union-type-js');
9183+
var Type = require('union-type');
91849184
var h = require('snabbdom/h');
91859185

91869186
var targetValue = require('../../../helpers/targetvalue');
@@ -9246,7 +9246,7 @@ var view = R.curry(function (context, model) {
92469246

92479247
module.exports = { init: init, Action: Action, update: update, view: view };
92489248

9249-
},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"ramda":29,"snabbdom/h":36,"union-type-js":44}],27:[function(require,module,exports){
9249+
},{"../../../helpers/ifenter":45,"../../../helpers/targetvalue":46,"ramda":29,"snabbdom/h":36,"union-type":44}],27:[function(require,module,exports){
92509250
var flyd = require('flyd');
92519251

92529252
module.exports = flyd.curryN(2, function(targ, fn) {
@@ -17963,12 +17963,12 @@ module.exports = {init: init, navigate: navigate, destroy: destroy};
1796317963

1796417964
},{}],56:[function(require,module,exports){
1796517965
module.exports=require(44)
17966-
},{"/home/simon/projects/noname-functional-frontend-framework/examples/todo/node_modules/union-type-js/union-type.js":44,"ramda/src/curryN":51}],57:[function(require,module,exports){
17966+
},{"/home/simon/projects/noname-functional-frontend-framework/examples/todo/node_modules/union-type/union-type.js":44,"ramda/src/curryN":51}],57:[function(require,module,exports){
1796717967
'use strict';
1796817968

1796917969
var flyd = require('flyd');
1797017970
var ryter = require('ryter');
17971-
var Type = require('union-type-js');
17971+
var Type = require('union-type');
1797217972

1797317973
function any() {
1797417974
return true;
@@ -18017,7 +18017,7 @@ module.exports = {
1801718017
destroy: ryter.destroy,
1801818018
Change: Change };
1801918019

18020-
},{"flyd":47,"ryter":55,"union-type-js":56}],58:[function(require,module,exports){
18020+
},{"flyd":47,"ryter":55,"union-type":56}],58:[function(require,module,exports){
1802118021
// shim for using process in browser
1802218022

1802318023
var process = module.exports = {};

examples/todo/js/task-list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const R = require('ramda');
33
const flyd = require('flyd');
44
const stream = flyd.stream;
55
const forwardTo = require('flyd-forwardto');
6-
const Type = require('union-type-js');
6+
const Type = require('union-type');
77
const Router = require('../../../router');
88
const patch = require('snabbdom').init([
99
require('snabbdom/modules/class'),

examples/todo/js/task.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* jshint esnext: true */
22
const R = require('ramda');
3-
const Type = require('union-type-js');
3+
const Type = require('union-type');
44
const h = require('snabbdom/h');
55

66
const targetValue = require('../../../helpers/targetvalue');

examples/todo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ramda": "^0.14.0",
1717
"snabbdom": "^0.1.0",
1818
"flyd": "^0.1.4",
19-
"union-type-js": "^0.1.0"
19+
"union-type": "^0.1.0"
2020
},
2121
"jshintConfig": {
2222
"esnext": true,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"flyd": "^0.1.6",
2424
"ramda": "^0.14.0",
2525
"ryter": "0.0.1",
26-
"union-type-js": "^0.1.4"
26+
"union-type": "^0.1.4"
2727
}
2828
}

router.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var flyd = require('flyd');
22
var ryter = require('ryter');
3-
var Type = require('union-type-js');
3+
var Type = require('union-type');
44

55
function any() { return true; }
66

0 commit comments

Comments
 (0)