Commit Graph

306 Commits (996d2ddf5110a0806d8d88f7dfaa15305a787a20)

Author SHA1 Message Date
iambumblehead 1487e0a1e9
chore(tools): lint all files, simplify npm lint script command (#1074)
Co-authored-by: chris <chris@bumblehead.com>
1 year ago
iambumblehead c17b3435af
chore(tools): add lint job to ci pipeline (#1068)
Co-authored-by: chris <chris@bumblehead.com>
1 year ago
Michael Reinstein 7ec0e9018a
fix: generate valid javascript modules in build (#1080)
Before this change snabbdom could only be consumed by bundlers like webpack.
Now we add the `.js` extension to the build outputs so browsers can import the modules directly as well.
ISSUES FIXED: #963
1 year ago
iambumblehead 49c01df531
chore(tools): remove devdependency lodash-es; used once, ~622kB (#1073)
Co-authored-by: chris <chris@bumblehead.com>
1 year ago
iambumblehead 87a27eba02
chore(tools): remove un-needed dot-files; .prettierignore (#1076)
Co-authored-by: chris <chris@bumblehead.com>
1 year ago
iambumblehead d05aec634d
chore(tools): remove devdependency cross-env; un-maintained, not used, ~86kB (#1072)
Co-authored-by: chris <chris@bumblehead.com>
1 year ago
iambumblehead 13dc0b93aa
chore(tools): remove un-needed dot files; .node-version, .npmignore, .nvmrc (#1071)
Co-authored-by: chris <chris@bumblehead.com>
1 year ago
iambumblehead 52d7022116
chore(tools): use npm files directive for smaller publish size (#1063)
Co-authored-by: chris <chris@bumblehead.com>
1 year ago
Jan van Brügge 2df8d5865d
chore(tools): fix eslint config 1 year ago
Jan van Brügge 0a4fb34ffa
chore(test): move from deprecated karma to web-test-runner for browser tests (#1052) 1 year ago
Jan van Brügge 6ff10c720b
chore(deps): update devDependencies
ISSUES CLOSED: #1051
1 year ago
Jan van Brügge f30fa33707
chore(deps): update devDependencies (#1036) 2 years ago
Jan van Brügge 3be76a428b
chore(release): v3.5.1 3 years ago
Jan van Brügge fed2f31b89
chore(release): v3.5.0 3 years ago
Jan van Brügge 9d9275467a
chore(deps): update devDependencies 3 years ago
Jan van Brügge 23b842256f
chore(release): v3.4.0 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
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
Jan van Brügge ce95a24e73
chore(release): v3.2.0 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 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
Jan van Brügge 7c93d793f9
chore(deps): update dev dependencies (#962) 4 years ago
Jan van Brügge 014ad7e74d
chore(deps): update devDependencies (#956) 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 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 f2d49f1658
chore(deps): update devDependencies 4 years ago
Jan van Brügge 0e34828632
chore(test): make tests run again on older browsers
When removing unnecessary dependencies, polyfills like core-js were
removed, as well as webpack which bundled the tests to es5. With this
commit, tests that need specific browser features are skipped if the
browser does not support them and the code is compiled to es5 by
karma-typescript
4 years ago
Jan van Brügge afec1f609f
chore(tools): replace standard-version with release-it
release-it automates all the steps defined in CONTRIBUTING.md. In
addition to that it can also create GitHub releases with the relevant
part of the CHANGELOG
4 years ago
Jan van Brügge 91b9f13c85
chore(tools): remove remark
Now that we use prettier, we can automatically format the README
anyways. The only difference then would be the automatic table of
contents, but the structure of the README does not change often and is
not very complex, so there is not really a need to automate this
4 years ago
Jan van Brügge 02dffe1060
chore(deps): update dependencies 4 years ago
Jan van Brügge a973885c8a
chore(docs): reorder fields in package.json
This puts the fields a user of snabbdom would be interested in at the
very top (including stuff like license information, homepage etc). After
that come the fields interesting to a snabbdom developer like scripts
and devDependencies. Lastly is the configuration for dev tooling
4 years ago
Jan van Brügge 7a0606c424
chore(deps): remove unused dependencies 4 years ago
Jan van Brügge 821d12af27
chore(tools): use commithelper instead of commitlint
commitlint can't provide the user with a convenient prompt to create a
fitting commit message, while commitizen is not able to lint an existing
commit message. The newly released commithelper does both
4 years ago
Jan van Brügge aad70ebb8c
chore(tools): do not run tests on pre-commit 4 years ago
Jan van Brügge 5d5fc5a362
feat: add JSX namespace to jsx factory
This allows the user to use multiple different JSX factory functions in
the same project as each one brings their own types
4 years ago
Jan van Brügge 8d0a666182
chore(tools): enable eslint with prettier config
ISSUES CLOSED: #709
4 years ago
Jan van Brügge b7ddb94583
chore(tools): replace webpack with karma-typescript for unit tests
ISSUES CLOSED: #538, #801
4 years ago
Jan van Brügge ebf6915794
feat: offer esm and commonjs bundles
This makes it easier to use snabbdom with tools like mocha that do not
support ES modules
4 years ago
Jan van Brügge 7af7e3f684
feat: export everything from 'snabbdom'
ISSUES CLOSED: #913, #748
BREAKING CHANGE:
The imports of snabbdom functions have changed. Every file in the
project had to be imported on its own, e.g.
```
import { h } from 'snabbdom/h'
import { VNode } from 'snabbdom/vnode'
```
Now, the main snabbdom package exports all of the public API like
```
import { h, VNode } from 'snabbdom'
```
This means consumers of the snabbdom package need to update their
imports. The change makes the use of the `exports` field in
`package.json` unnecessary, which caused issues for TypeScript users
4 years ago
Jan van Brügge a1e505370d
chore(refactor): move tests to own folder 4 years ago