Commit Graph

908 Commits (75cc9de952ef6f690c4d182cd176b073e1673894)
 

Author SHA1 Message Date
Jan van Brügge 75cc9de952
chore(refactor): run prettier on all files 3 years ago
Jan van Brügge 515bc97c27
fix: use array access instead of string.startsWith
Currently we still support IE11 which does not have that method. Direct
array access solves this problem
3 years ago
Ryota Kameoka dca0b0c9af
feat: export `Options` type (#1005) 3 years ago
Jan van Brügge 47ef5c14e9
feat: toVnode is support dataset (#1008)
ISSUES CLOSED: #976

Co-authored-by: DM <dmoosocool@gmail.com>
3 years ago
Censwin ffc9a09bb2
chore(docs): translate README into chinese (#1002) 3 years ago
Jan van Brügge aa4dc9c3a9
chore(deps): update devDependencies 3 years ago
Jan van Brügge b130c26cc1
chore(release): v3.3.1 3 years ago
Censwin 44afd38682
chore(docs): style module does remove styles if removed from the object (#1001)
ISSUES FIXED: #1000
3 years ago
macarc f89f085f55
fix: ensure SVG namespaces are added to nodes (#996)
This ensures that SVG namespaces are correct on children and when copying a thunk.

ISSUES CLOSED: #388 #867

Co-authored-by: macarc <pipescore@outlook.com>
Co-authored-by: Jan van Brügge <supermanitu@gmail.com>
3 years ago
Jan van Brügge 9de2307dd9
chore(release): v3.3.0 3 years ago
Jan van Brügge 77d6753dd4
chore(test): remove snabbdom benchmarks
The benchmark code was not yet updated to version 3 of snabbdom and
thus cannot be run at the moment. Further, it depends on faker, which is
not available any more. So for now, the benchmark code and all its
dependencies have been removed. In the future we should again add
benchmarks and can reference this commit for some code.
3 years ago
Jan van Brügge cf3e6ac038
chore(deps): update dev dependencies
This also converts the lockfile from version 1 to version 2
3 years ago
Ryota Kameoka 50ff2db407
feat: support JSX fragments (#974)
ISSUES CLOSED: #560
3 years ago
Jan van Brügge ce95a24e73
chore(release): v3.2.0 3 years ago
Jan van Brügge df0f031255
fix: assert that fragment functions are implemented 3 years ago
cary 044dfef8c3
chore(refactor): make patching child vnode more readable (#992)
Co-authored-by: wangzhangsheng(cary) <wb-wzs728893@alibaba-inc.com>
3 years ago
Ryota Kameoka 9e2cecd249
chore(docs): add a documentation for `fragment` function 3 years ago
Ryota Kameoka 35058798ae
feat: allow DocumentFragment as a container 3 years ago
Ryota Kameoka 7e86386292
feat: support DocumentFragment
Snabbdom now can handle `DocumentFragment` via `fragment` function.
https://developer.mozilla.org/docs/Web/API/DocumentFragment

ISSUES CLOSED: #560
3 years ago
Toby Mao e54012e811
chore(docs): remove outdated note about eventlisteners from README
This functionality was always unnecessary, because the example could be done with a curried function for example:
```js
function makeEventListener(number) {
    return (event) => console.log("button " + number + " was clicked!");
}
```

ISSUES FIXED: #988
3 years ago
dependabot[bot] 621bbc54cd
chore(deps): bump path-parse from 1.0.6 to 1.0.7 (#986) 3 years ago
Jan van Brügge 6696e627df
chore(deps): update dev dependencies 3 years ago
shanyue 60832ac91b
chore(tools): add npm run example (#982) 3 years ago
Jan van Brügge b22e46a9a9
chore(release): v3.1.0 3 years ago
Jan van Brügge 5a5cce2161
chore(test): fix tests for string object children (#983) 3 years ago
Toby Mao 19d1d29260
feat: allow String and Number objects to be used as children (#979)
ISSUES FIXED: #977
3 years ago
shanyue 79457fdf14
chore(refactor): simplify init() code using "for of" (#980) 3 years ago
Jan van Brügge 27e9c4d5dc
chore(release): v3.0.3 4 years ago
Jan van Brügge b8707ad68e
fix: build and test code before release 4 years ago
Jan van Brügge ca33a03142
chore(release): v3.0.2 4 years ago
Jan van Brügge 9e7db265ee
chore(deps): update dev dependencies (#968) 4 years ago
George Treviranus ecc87ab07e
chore(docs): add additional JSX usage information (#967) 4 years ago
Mike Reinstein 95fa8ad6b6
fix: avoid className check to handle SVG elements within shadow DOM (#966)
ISSUES FIXED: #965
4 years ago
Jan van Brügge 7c93d793f9
chore(deps): update dev dependencies (#962) 4 years ago
Jan van Brügge 310bd757c7
chore(docs): explain that the repo uses conventional commits
This adds a new section to CONTRIBUTING.md that explains that we are
using conventional commits and that commithelper can be used to create
valid commit messages
4 years ago
Jan van Brügge 66d08e4861
chore(tools): do not use npm exec in git hooks
`npm exec` was added in npm version 7, so users of older versions of
npm will get a very weird error and are not able to commit
4 years ago
Jan van Brügge 714f4ad770
chore(tools): enable the use of secrets on PRs from forks
The only secret that is configured is the access key for browserstack.
The worst case of getting it extracted is that someone can run tests on
browserstack with our account. The snabbdombot user has no admin
privileges, so in that case we can just issue a new access key
4 years ago
Jan van Brügge 014ad7e74d
chore(deps): update devDependencies (#956) 4 years ago
Jan van Brügge 255c87d1a9
chore(tools): lower browserstack concurrency 4 years ago
Jan van Brügge adbdf229d2
chore(release): v3.0.1 4 years ago
Jan van Brügge 995b983f04
fix: reference type declarations in package.json 4 years ago
Jan van Brügge a16b47e947
chore(release): v3.0.0 4 years ago
Jan van Brügge ad80c6ea53
feat: allow symbols as keys (#954)
ISSUES CLOSED: #124
4 years ago
Jan van Brügge 852401345e
feat: mark the snabbdom package as side effect free
This is useful for bundlers. When dealing with reexports, this setting
allows e.g. webpack to optimize reexports. See the webpack documentation
for more information about this setting
4 years ago
Jan van Brügge 30b7df61ab
fix: remove the hero module (#953)
The hero module is very specific and not really a good fit for a low
level library like snabbdom. Users that still want to use it can copy
the code from the hero example instead

ISSUES CLOSED: #517
BREAKING CHANGE:
Snabbdom does not export the hero module any more. If you require this
module, copy the code from examples/hero/hero.js and add it to your
project
4 years ago
Jan van Brügge e313d41b37
chore(tools): remove obsolete tsconfig.json
This was forgotten by #948
4 years ago
Jan van Brügge f2d49f1658
chore(deps): update devDependencies 4 years ago
Jan van Brügge e537a94ba3
chore(tools): run CI on pushes to the master branch 4 years ago
Jan van Brügge f3a088596e
chore(tools): new tooling (#948) 4 years ago
Jan van Brügge 96384b3cc0
chore(test): enable tests for old iPhone
Since disabling the tests the internals of snabbdom apparently changed
enough so this works again

ISSUES CLOSED: #470
4 years ago