Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperapp V2 #726

Merged
merged 82 commits into from May 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
7f3bed4
V2
jorgebucaran Jul 9, 2018
2b3d856
onRemove,onDestroy
jorgebucaran Jul 9, 2018
2258200
Retouch dispatch.
jorgebucaran Jul 13, 2018
ac1bb7d
fix: render bug when root element changes; close #744
jorgebucaran Aug 24, 2018
b4e7f37
fix: update subs to use new signature
jorgebucaran Aug 27, 2018
df89651
feature: use tuple signature
jorgebucaran Sep 4, 2018
8c46658
chore: bump deps
jorgebucaran Sep 6, 2018
510081d
fix: improve isSameAction
jorgebucaran Sep 6, 2018
3d7cd38
fix: shallow check for props of parameterized actions passed to subs
jorgebucaran Sep 6, 2018
567d923
fix: make text node type same as Node.TEXT_NODE (#776)
frenzzy Nov 2, 2018
e9d6757
Fix headless mode (#798)
mrozbarry Feb 15, 2019
d563302
Commit dirty tree in order to publish
jorgebucaran Feb 15, 2019
9f334a4
Alpha
jorgebucaran Feb 15, 2019
5177d9a
Update effect and subscription signatures (#802)
mrozbarry Feb 20, 2019
c292165
Merge branch 'V2' of https://github.com/jorgebucaran/hyperapp into V2
jorgebucaran Feb 20, 2019
be6855d
Remove year from copyright
jorgebucaran Feb 20, 2019
79f0324
Update dependencies
jorgebucaran Feb 20, 2019
9c89237
2.0.0-alpha.1
jorgebucaran Feb 20, 2019
d63de6e
Fix error in Getting Started example.
jorgebucaran Feb 20, 2019
3b40b64
Fix bug referencing the cancel function in the internal sub tuple.
okwolf Feb 21, 2019
89421ad
2.0.0-alpha.2
jorgebucaran Feb 21, 2019
900a0c6
Implement Lazy (#777)
SkaterDad Feb 25, 2019
caa84ce
Remove ts smoke tests
jorgebucaran Feb 27, 2019
274fb1e
Hide logo
jorgebucaran Feb 27, 2019
6a3a36e
Remove babelderdash
jorgebucaran Feb 27, 2019
d7f33e5
Add nested subs back; hot swap parameterized props
jorgebucaran Feb 27, 2019
4c95944
Add declarative class prop builder
jorgebucaran Feb 27, 2019
9ee9443
2.0.0-alpha.3
jorgebucaran Feb 27, 2019
7d5ee8a
Fix regression in Lazy calling undefined function
jorgebucaran Feb 28, 2019
801d529
2.0.0-alpha.4
jorgebucaran Feb 28, 2019
5e9acea
2.0.0-alpha.5
jorgebucaran Feb 28, 2019
227f281
2.0.0-alpha.6
jorgebucaran Feb 28, 2019
8bba316
Remove helpless comment
jorgebucaran Feb 28, 2019
981ad3a
Use empty object as state if init is undefined
jorgebucaran Mar 1, 2019
2cbaa7d
Add effect batching
jorgebucaran Mar 3, 2019
6eb6cac
2.0.0-alpha.7
jorgebucaran Mar 3, 2019
50fb5ac
Refactor defer
jorgebucaran Mar 3, 2019
085fa7d
DEFAULT_NODE
jorgebucaran Mar 3, 2019
68c158a
Remove lifecycle events
jorgebucaran Mar 3, 2019
0ff0c75
Refactor createClass; remove hasOwnProp check
jorgebucaran Mar 3, 2019
d7d6750
Refactor variables
jorgebucaran Mar 3, 2019
23b1619
2.0.0-alpha.8
jorgebucaran Mar 3, 2019
8a81c4d
Fix bug with Lazy when used in JSX (#812)
SkaterDad Mar 5, 2019
153167f
Change component signature back to (props, children) (#814)
frenzzy Mar 5, 2019
f453572
Golf element.events handling code
jorgebucaran Mar 5, 2019
c4a00e7
Simplify updateProperty
jorgebucaran Mar 5, 2019
9f1c6cc
Don't write "key" attributes to the DOM
jorgebucaran Mar 5, 2019
714686e
Refactor; more golfing
jorgebucaran Mar 6, 2019
6efe4ac
Refactor batched subs/fx; shave more bytes
jorgebucaran Mar 7, 2019
b352b66
Make state {} by default
jorgebucaran Mar 8, 2019
a4fb92e
Bump deps; remove ts stuff
jorgebucaran Mar 8, 2019
732a838
Rename batch to flatten; other cosmetic changes
jorgebucaran Mar 8, 2019
77c3fda
2.0.0-alpha.9
jorgebucaran Mar 8, 2019
c486729
Diff subscription arrays of different length
jorgebucaran Mar 13, 2019
651e05a
Inline create map to patch
jorgebucaran Mar 13, 2019
f9f922c
2.0.0-alpha.10
jorgebucaran Mar 13, 2019
ff3142e
Remove unused test file
jorgebucaran Mar 13, 2019
8202d92
Use rollup's --no-esModule
jorgebucaran Mar 13, 2019
17350bb
Remove prettier dev dep
jorgebucaran Mar 13, 2019
78c06a3
Back to all lower DOM events
jorgebucaran Mar 15, 2019
64437a8
Avoid nested if
jorgebucaran Mar 15, 2019
e912814
Expand Getting Started; add tentative outline
jorgebucaran Mar 16, 2019
220e449
Add Taking it up a notch and Putting it all together sections
jorgebucaran Mar 18, 2019
9377814
Implement to-do app code; add tentative section
jorgebucaran Mar 19, 2019
c7ae927
Use rAF with fallback to setTimeout to defer rendering
jorgebucaran Mar 30, 2019
8874ad3
Combine recycleElement and recycleChild into one
jorgebucaran Mar 30, 2019
16f6d0c
Fix bug in elements using selected attribute
jorgebucaran Apr 2, 2019
ff920d5
Create Dispatch Decorator (#822)
mrozbarry Apr 25, 2019
d7239d6
Consolidate custom/default payload into one argument (#830)
jorgebucaran Apr 25, 2019
76cef85
Support passive events & preventDefault/stopPropagation options
jorgebucaran Apr 25, 2019
f7a6674
eventCb→eventProxy
jorgebucaran Apr 25, 2019
4a2c2f0
Support a text node as root element
jorgebucaran Apr 25, 2019
6784b46
who wants more docs?
jorgebucaran Apr 25, 2019
64d0e86
Refactor: no breaking changes
jorgebucaran Apr 26, 2019
e953662
Codegolf Lazy
jorgebucaran Apr 30, 2019
9e7eca4
Refactor, more codegolf
jorgebucaran Apr 30, 2019
9d2561e
More docs
jorgebucaran May 1, 2019
17ee081
Refactor variable names
jorgebucaran May 2, 2019
2c0b364
Bug fix: track the root node
jorgebucaran May 2, 2019
d61f34e
More docs
jorgebucaran May 2, 2019
70dad04
Hyperapp β
jorgebucaran May 2, 2019
b5c3cc5
Fix bug in createClass using unknown variable (#834)
shooontan May 3, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 0 additions & 25 deletions CONTRIBUTING.md

This file was deleted.

20 changes: 4 additions & 16 deletions LICENSE.md
@@ -1,19 +1,7 @@
Copyright © 2017-present [Jorge Bucaran](https://github.com/jorgebucaran)
Copyright © Jorge Bucaran <<https://jorgebucaran.com>>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1,304 changes: 978 additions & 326 deletions README.md

Large diffs are not rendered by default.

106 changes: 0 additions & 106 deletions hyperapp.d.ts

This file was deleted.

42 changes: 10 additions & 32 deletions package.json
@@ -1,17 +1,15 @@
{
"name": "hyperapp",
"description": "1 kB JavaScript framework for building web applications.",
"version": "1.2.6",
"description": "JavaScript micro-framework for building web applications.",
"version": "2.0.0-beta.1",
"main": "dist/hyperapp.js",
"module": "src/index.js",
"typings": "hyperapp.d.ts",
"license": "MIT",
"repository": "hyperapp/hyperapp",
"homepage": "https://hyperapp.js.org",
"repository": "jorgebucaran/hyperapp",
"homepage": "https://github.com/jorgebucaran/hyperapp",
"files": [
"src",
"dist",
"hyperapp.d.ts"
"dist"
],
"author": "Jorge Bucaran",
"keywords": [
Expand All @@ -22,35 +20,15 @@
"vdom"
],
"scripts": {
"test": "jest --coverage --no-cache && tsc -p test/ts",
"test": "exit",
"build": "npm run bundle && npm run minify",
"bundle": "rollup -i src/index.js -o dist/hyperapp.js -m -f umd -n hyperapp",
"minify": "uglifyjs dist/hyperapp.js -o dist/hyperapp.js -mc pure_funcs=['Object.defineProperty'] --source-map includeSources,url=hyperapp.js.map",
"bundle": "rollup -i src/index.js -o dist/hyperapp.js --no-esModule -m -f umd -n hyperapp",
"minify": "terser dist/hyperapp.js -o dist/hyperapp.js -mc --source-map includeSources,url=hyperapp.js.map",
"prepare": "npm run build",
"format": "prettier --write {src,test}/**/*.js {,test/ts/}*.{ts,tsx}",
"release": "npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"babel": {
"presets": "env",
"plugins": [
[
"transform-react-jsx",
{
"pragma": "h"
}
]
]
},
"devDependencies": {
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.1",
"jest": "^22.4.3",
"prettier": "^1.11.1",
"rollup": "^0.57.1",
"typescript": "2.8.1",
"uglify-js": "3.3.16"
},
"prettier": {
"semi": false
"rollup": "^1.10.1",
"terser": "^3.17.0"
}
}