Commit Graph

921 Commits (0a4fb34ffa743bd3c11cdd03fb59ec7ec1f6b423)
 

Author SHA1 Message Date
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
Jan van Brügge fd2daaf259
chore(test): enable tests for old safari
3 tests are still failing for safari 9.1 at the moment. On safari 10.1
all the tests pass however. As El Captain is pretty old now, the tests
now run on Sierra. The current safari version is updated to 14

ISSUES CLOSED: #469
4 years ago
Jan van Brügge 17d116f19b
chore(test): enable tests again for old google chrome
Chrome 49 was disabled in the browserstack tests because of failing
tests. Trying those tests now again, only a single CSS variable test is
failing. As chrome 49 was the first chrome version to support css
variables it is very likely that this is a bug in the browser itself,
especially as chrome 50 works as expected. Thus this commits enables the
browserstack tests for chrome 50

ISSUES CLOSED: #468
4 years ago
Jan van Brügge 942b2a8424
chore(test): drop IE10 from tested browsers
Currently even IE11 is marked as End-Of-Life (EOL), IE10 is even
longer. Karma internally uses `Object.setPrototypeOf` which is not
supported in IE10. Rather than trying to polyfill this, we should only
test IE11 and MS Edge
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 795e9968d9
chore(tools): do not use environments for CI
The environment was used to ensure that the browserstack access keys
are only available after approval, so a potentially malicious actor
can't modify the testing code and extract those secrets. This however
creates a lot of noise in the notifications of the maintainers and it
drastically reduces the feedback cycle for the contributor in case their
change causes an issue in one of the supported browsers. Additionally
the potential harm in extracting the access keys is pretty low. The
snabbdombot account has only user access, so it can't change
browserstack settings and it can only access the automate features. So
the only thing that can happen is that our PRs fail because some third
party is running browser tests and thus exhausting our 5 parallel tests
limit. In that case we can simply change the access key of the
snabbdombot account. For this reason, the secrets are now repository
secrets and the CI does not need an approval to run
4 years ago
Jan van Brügge 07f768c5a6
chore(docs): explain how to setup JSX with snabbdom 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 f98d64b90a
chore(docs): reformat README with prettier 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 cd55ebd34e
chore(test): fix custom elements tests 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 e2a8acab7d
chore(tools): add markdown and import plugin 4 years ago
Jan van Brügge 5a539559ef
chore(refactor): apply eslint hints 4 years ago
Jan van Brügge 37f58835fa
chore(refactor): format code with prettier 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
Jan van Brügge 3f428cf808
chore(tools): remove custom compiler plugin 4 years ago
Mohammad Hasani d66905438d
fix: node similarity checking (#949) 4 years ago
Mohammad Hasani 3aa02ed1ad
Support custom elements v1 (#829)
* feat(core): support custom elements v1

closes #141

* style: remove unintentional spaced

* feat: move `is` attribute to the data object

* refactor: code review requested changes

* refactor: remove redundant functions

Co-authored-by: Simon Friis Vindum <simonfv@gmail.com>
4 years ago
Shahar Or (mightyiam) e22a369ce2 docs(docs): add WebCell to readme 4 years ago
Shahar Or (mightyiam) 8f160a07e6 chore(relic): disable renovate bot
Fixes #929.
4 years ago
Shahar Or (mightyiam) 8741f90d06 chore(deps): update webpack packages 4 years ago
Shahar Or (mightyiam) 373572ec41 chore(deps): update dependency karma-firefox-launcher to v2 4 years ago
Shahar Or (mightyiam) 2d88e73c13 chore(deps): update eslint packages 4 years ago
Renovate Bot f4e0b1a12a chore(deps): update dependency @types/faker to v5.1.6 4 years ago
Renovate Bot 9d031ad7eb chore(deps): pin dependencies 4 years ago
Shahar Or (mightyiam) d1582aa60a chore(deps): update dependency faker to v5.4.0 4 years ago
Shahar Or (mightyiam) 0b4607b678 chore(deps): update dependency mathjs to v9 4 years ago
Shahar Or (mightyiam) 1463152a00 chore(npm): update to npm@7 4 years ago