@b9g/crank 0.5.0-beta.7 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b9g/crank",
3
- "version": "0.5.0-beta.7",
3
+ "version": "0.5.0",
4
4
  "description": "Write JSX-driven components with functions, promises and generators.",
5
5
  "homepage": "https://crank.js.org",
6
6
  "bugs": {
package/standalone.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./crank.js";
2
- export * from "./jsx-tag.js";
2
+ export { jsx } from "./jsx-tag.js";
package/umd.js CHANGED
@@ -1238,10 +1238,6 @@
1238
1238
  function updateComponent(renderer, root, host, parent, scope, ret, oldProps, hydrationData) {
1239
1239
  let ctx;
1240
1240
  if (oldProps) {
1241
- // TODO: we should probably use the existence of ret.ctx
1242
- if (ret.ctx == null) {
1243
- throw new Error("Hmmm");
1244
- }
1245
1241
  ctx = ret.ctx;
1246
1242
  if (ctx.f & IsSyncExecuting) {
1247
1243
  console.error("Component is already executing");