@bikeshaving/crank
Advanced tools
Comparing version 0.4.0-beta.1 to 0.4.0-beta.2
# Changelog | ||
## [0.4.0] - 2021-08-19 | ||
## [0.4.0-beta.2] - 2021-10-04 | ||
### Added | ||
- The `Context.prototype.flush()` method has been added. It behaves similarly to `Context.prototype.schedule()`, with the exception that it runs after a component’s children is definitely in the DOM. This is important for things like focusing after render. See #180 for motivation. | ||
- Special props `crank-key`, `crank-ref`, `crank-static` now have shorthand equivalents `c-key`, `c-ref`, and `c-static` to save on typing. | ||
### Changed | ||
- `innerHTML` now checks against the old prop value rather than reading from the DOM. | ||
### Fixed | ||
- Fixed some edge cases where event bubbling would result in `"Generator is already executing. | ||
"` errors. | ||
## [0.4.0-beta.1] - 2021-08-19 | ||
### Added | ||
- The `Context.prototype.flush()` method has been added. It behaves similarly to `Context.prototype.schedule()`, with the exception that it runs after a component’s children is in the DOM. This is important for things like focusing after render. See #180 for motivation. | ||
- The `crank-skip` prop has been added as an alternative to `<Copy />` elements. See #173 for motivation and `src/__tests__/static.tsx` for examples. | ||
@@ -6,0 +14,0 @@ ### Changed |
{ | ||
"name": "@bikeshaving/crank", | ||
"version": "0.4.0-beta.1", | ||
"version": "0.4.0-beta.2", | ||
"description": "Write JSX-driven components with functions, promises and generators.", | ||
@@ -15,11 +15,3 @@ "homepage": "https://crank.js.org", | ||
"files": [ | ||
"crank.js", | ||
"dom.js", | ||
"index.js", | ||
"html.js", | ||
"cjs", | ||
"dist", | ||
"umd", | ||
"*.d.ts", | ||
"*.js.map" | ||
"dist" | ||
], | ||
@@ -29,59 +21,59 @@ "type": "module", | ||
".": { | ||
"import": "./index.js", | ||
"require": "./cjs/index.js" | ||
"import": "./dist/index.js", | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"./cjs": { | ||
"require": "./cjs/index.js" | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"./cjs/crank": { | ||
"require": "./cjs/crank.js" | ||
"require": "./dist/cjs/crank.js" | ||
}, | ||
"./cjs/crank.js": { | ||
"require": "./cjs/crank.js" | ||
"require": "./dist/cjs/crank.js" | ||
}, | ||
"./cjs/dom": { | ||
"require": "./cjs/dom.js" | ||
"require": "./dist/cjs/dom.js" | ||
}, | ||
"./cjs/dom.js": { | ||
"require": "./cjs/dom.js" | ||
"require": "./dist/cjs/dom.js" | ||
}, | ||
"./cjs/html": { | ||
"require": "./cjs/html.js" | ||
"require": "./dist/cjs/html.js" | ||
}, | ||
"./cjs/html.js": { | ||
"require": "./cjs/html.js" | ||
"require": "./dist/cjs/html.js" | ||
}, | ||
"./cjs/index": { | ||
"require": "./cjs/index.js" | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"./cjs/index.js": { | ||
"require": "./cjs/index.js" | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"./crank": { | ||
"import": "./crank.js", | ||
"require": "./cjs/crank.js" | ||
"import": "./dist/crank.js", | ||
"require": "./dist/cjs/crank.js" | ||
}, | ||
"./crank.js": { | ||
"import": "./crank.js", | ||
"require": "./cjs/crank.js" | ||
"import": "./dist/crank.js", | ||
"require": "./dist/cjs/crank.js" | ||
}, | ||
"./dom": { | ||
"import": "./dom.js", | ||
"require": "./cjs/dom.js" | ||
"import": "./dist/dom.js", | ||
"require": "./dist/cjs/dom.js" | ||
}, | ||
"./dom.js": { | ||
"import": "./dom.js", | ||
"require": "./cjs/dom.js" | ||
"import": "./dist/dom.js", | ||
"require": "./dist/cjs/dom.js" | ||
}, | ||
"./html": { | ||
"import": "./html.js", | ||
"require": "./cjs/html.js" | ||
"import": "./dist/html.js", | ||
"require": "./dist/cjs/html.js" | ||
}, | ||
"./html.js": { | ||
"import": "./html.js", | ||
"require": "./cjs/html.js" | ||
"import": "./dist/html.js", | ||
"require": "./dist/cjs/html.js" | ||
}, | ||
"./index": { | ||
"import": "./index.js", | ||
"require": "./cjs/index.js" | ||
"import": "./dist/index.js", | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
@@ -94,15 +86,15 @@ "./index.js": { | ||
"./umd": { | ||
"require": "./umd/index.js" | ||
"require": "./dist/umd/index.js" | ||
}, | ||
"./umd/index.js": { | ||
"require": "./umd/index.js" | ||
"require": "./dist/umd/index.js" | ||
} | ||
}, | ||
"main": "cjs/index.js", | ||
"module": "index.js", | ||
"types": "index.d.ts", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"prebuild": "yarn run clean", | ||
"build": "rollup -c rollup.config.js", | ||
"clean": "shx rm -rf cjs dist umd index.js crank.js dom.js html.js *.d.ts *.js.map", | ||
"clean": "shx rm -rf dist", | ||
"debug": "node --inspect-brk node_modules/.bin/jest --runInBand", | ||
@@ -126,10 +118,10 @@ "lint": "eslint --ext .js,.jsx,.ts,.tsx .", | ||
"@types/jest": "^26.0.23", | ||
"@typescript-eslint/eslint-plugin": "^4.26.1", | ||
"@typescript-eslint/parser": "^4.26.1", | ||
"core-js": "^3.14.0", | ||
"eslint": "^7.28.0", | ||
"@typescript-eslint/eslint-plugin": "^4.31.2", | ||
"@typescript-eslint/parser": "^4.31.2", | ||
"core-js": "^3.18.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-jest": "^24.3.6", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"eslint-plugin-react": "^7.24.0", | ||
"eslint-plugin-jest": "^24.4.2", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.26.0", | ||
"husky": "^4.3.6", | ||
@@ -139,4 +131,4 @@ "jest": "^26.6.3", | ||
"magic-string": "^0.25.7", | ||
"prettier": "^2.3.1", | ||
"rollup": "^2.51.2", | ||
"prettier": "^2.4.1", | ||
"rollup": "^2.57.0", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
@@ -146,3 +138,3 @@ "shx": "^0.3.3", | ||
"ts-transform-import-path-rewrite": "^0.3.0", | ||
"typescript": "^4.4.0-beta" | ||
"typescript": "^4.4.3" | ||
}, | ||
@@ -149,0 +141,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
712462
7474
1