Skip to content

Commit 1fc09ee

Browse files
committed
Merge branch 'luwes-sinuous'
2 parents 80cf01c + d8af107 commit 1fc09ee

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

frameworks/keyed/sinuous/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-framework-benchmark-sinuous",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"main": "dist/main.js",
55
"js-framework-benchmark": {
66
"frameworkVersionFromPackage": "sinuous"
@@ -17,8 +17,7 @@
1717
"url": "https://github.com/krausest/js-framework-benchmark.git"
1818
},
1919
"dependencies": {
20-
"htm": "2.1.1",
21-
"sinuous": "0.6.0"
20+
"sinuous": "0.7.1"
2221
},
2322
"devDependencies": {
2423
"@babel/core": "7.4.4",

frameworks/keyed/sinuous/src/main.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import o, { subscribe, root, sample } from 'sinuous/observable';
2-
import each from 'sinuous/each';
3-
import sinuous from 'sinuous';
4-
const h = sinuous({ subscribe, root, sample });
1+
import { o, h } from 'sinuous';
2+
import { subscribe } from 'sinuous/observable';
3+
import map from 'sinuous/map';
54

65
let idCounter = 1;
76
const adjectives = ["pretty", "large", "big", "small", "tall", "short", "long", "handsome", "plain", "quaint", "clean", "elegant", "easy", "angry", "crazy", "helpful", "mushy", "odd", "unsightly", "adorable", "important", "inexpensive", "cheap", "expensive", "fancy"],
@@ -87,7 +86,7 @@ const App = () => {
8786
</div></div>
8887
<table class="table table-hover table-striped test-data">
8988
<tbody onclick=${() => removeOrSelect}>
90-
${each(data, (row) => html`
89+
${map(data, (row) => html`
9190
<tr data-id="${ row.id }">
9291
<td class=col-md-1 textContent=${ row.id } />
9392
<td class=col-md-4><a>${ row.label }</a></td>

0 commit comments

Comments
 (0)