Commit graph

55 commits

Author SHA1 Message Date
b5cc33df0c fix: eslint warning in dev runner 2021-02-28 08:22:44 -08:00
673f4c87db feat: add dangerouslySetInnerHTML attr
This adds are new attribute to Elements, "dangerouslySetInnerHTML", which like the same attribute from React allows one to take a stirng of unescaped HTML and render it unconditionally. This is of course a potentially dangerous operation that can open your app up to XSS attacks, but for interoperating with existing content management systems and libraries that output HTML (e.g. markdown renderers).

Using "dangerouslySetInnerHTML" on an element with children will generate an error within createElement, since it doesn't make sense to have both children and inner HTML.
2021-01-02 21:24:17 -08:00
db6def8af9 chore: ensure eslint ignores dist/ dir 2021-01-02 13:42:50 -08:00
85361ce603 chore: use *.json extension for config files
For consistency and readability we're explicitly adding the .json extension to config files.
2021-01-02 13:42:22 -08:00
9d4fcdc281 chore: update * pin prettier version & format code 2021-01-02 13:40:18 -08:00
69831308ac chore: ensure lf line-endings are used in repo 2021-01-02 13:37:46 -08:00
5d9d327950 doc: update README bades to use mainline branch 2020-06-24 08:59:22 -07:00
d1d865147e chore: add repository field to package.json 2020-06-14 13:48:24 -07:00
f56182137a 0.1.5 2020-06-14 12:16:18 -07:00
9e6f20c0de chore(release): update changlog for v0.1.5 2020-06-14 12:15:17 -07:00
13df38cff0 fix: stack size exceed error on purging module cache 2020-06-14 12:06:59 -07:00
6a4b1927d1 0.1.4 2020-06-10 18:20:20 -07:00
08b5d2bca3 chore(release): update changelog for v0.1.4 2020-06-10 18:19:32 -07:00
4cece520ea chore: rename temp dir for clarity 2020-06-10 18:16:19 -07:00
2300148c24 chore: cleanup test output dir 2020-06-10 18:12:38 -07:00
aadf13c5a8 test: cross platform
test: add osx and windows to test platforms in travis
2020-06-10 17:11:10 -07:00
15683cb1d1 fix: dont require config file
Fixes a couple of issues with config files in websnacks projects.

First, config files are no longer required and the dev and build
commands will no longer error out if a websnacks.ts/js file doesn't
exist.

Second, all optional user config params are now actually optional -
before some parameters were assumed to exist and would error out if not
present (e.g. the "watch" parameter).

Finally, e2e tests were added to prevent regressions on these issues
and test helpers were extracted to a separate file.
2020-06-10 12:39:54 -07:00
9a37a4d03d doc: ensure badges all use flat-square style 2020-06-09 16:11:34 -07:00
c5a4434945 doc: update README travis bad to .com 2020-06-09 16:05:49 -07:00
7de98d7025 Merge pull request #11 from websnacksjs/fix/dev-watch
fix: dev cmd didn't watch files due to import mangling
2020-06-09 15:07:57 -07:00
cb9c4342de fix: dev cmd didn't watch files due to import mangling
Appearently the esModuleInterop flag in TypeScript is not compatible
with node-watch, and the import helper was mangling the import as a
result and causing an error in the dev command that resulted in files
not being watched.

This fixes that import issue and adds an e2e test to help prevent a
regression of this issue in the future.
2020-06-09 13:56:11 -07:00
28ef4fb20d 0.1.3 2020-06-04 14:36:49 -07:00
d99c8c9063 doc: update CHANGELOG for 0.1.3 release 2020-06-04 14:36:24 -07:00
65f95e6a84 Merge pull request #10 from websnacksjs/feat/fragment
feat: provide Fragment component
2020-06-04 14:32:11 -07:00
f773d79b91 feat: provide Fragment component
Adds a new Fragment component that provides the same functionality as
React.Fragment. See issue #9 for details.

closes issue #9
2020-06-04 11:25:34 -07:00
72e015b4c2 0.1.2 2020-06-03 17:56:06 -07:00
3617664460 chore(release): update changelog for v0.1.2 2020-06-03 17:55:40 -07:00
dc6802e4c0 chore: fix some eslint warnings 2020-06-03 17:52:54 -07:00
cbd80f381c fix: type signature of Component too narrow 2020-06-03 17:27:12 -07:00
8dd0fb94e9 chore: remove extraneous publish script 2020-06-03 12:33:45 -07:00
0eaa6468a7 0.1.1 2020-06-03 10:40:56 -07:00
9dc95d314b doc: update changelog for v0.1.1 release 2020-06-03 10:36:00 -07:00
e7c8c9f7bd chore: add release script & supporting scripts 2020-06-03 10:35:28 -07:00
815fcadd15 Merge pull request #8 from websnacksjs/feat/array-elements
feat: support rendering array elements
2020-06-03 09:14:17 -07:00
7b80d2f324 feat: support rendering array elements 2020-06-02 16:39:44 -07:00
3304958b01 test: show stack of thrown errors 2020-06-02 15:46:24 -07:00
2b60c35ae2 Merge pull request #6 from websnacksjs/fix/render-numbers
fix: support number elements in jsx templates
2020-06-02 15:45:39 -07:00
bda8e216e2 fix: support number elements in jsx templates 2020-06-02 15:38:39 -07:00
fc6480c531 doc: update badges in README 2020-06-02 11:50:20 -07:00
4d96993ae8 Merge pull request #4 from websnacksjs/fix/nodejs10-support
Fix: support nodejs v10
2020-06-02 00:08:06 -07:00
87f487b0c0 chore: port clean script to node v10 2020-06-02 00:00:43 -07:00
c83937ed96 fix: target es2018 to support node 10+ 2020-06-01 23:49:19 -07:00
0a609a4539 test: fix false-pos in runner due to exit code 2020-06-01 23:44:33 -07:00
dcbc07021d chore: resolve linting errors & warnings 2020-06-01 23:29:59 -07:00
3649147824 chore: fix eslint/prettier 2020-06-01 22:22:36 -07:00
7ad7e870fb chore: update deps 2020-06-01 22:11:23 -07:00
e3e44d9378 doc: add shields to README 2020-06-01 09:51:43 -07:00
9fdf61164f Merge pull request #2 from websnacksjs/feat/ci
Feat: add CI and testing support
2020-05-31 10:31:01 -07:00
bbb114868b docs: add travis badge to README 2020-05-31 10:18:43 -07:00
54d350e89d fix: output declarations, sourcemaps again 2020-05-30 11:58:03 -07:00