Commit graph

3528 commits

Author SHA1 Message Date
Matias Kinnunen
2b5c2f0fc6
Fix inconsistent capitalizations of "JavaScript" (#2639) 2020-11-08 15:05:17 -08:00
Isiah Meadows
bd66955f1e Unbreak tests 2020-10-14 03:28:45 -07:00
Isiah Meadows
045e4f720a
Allow Mithril to be loaded in non-browser environments without modification (#2633) 2020-10-14 03:12:47 -07:00
Oscar
3ad404039f
fix some typos (#2487)
* fix some typos

Found some typos. Mainly unescaped `|` in tables, but also a few other irregularities. Not all problems are visible in the website docs.

* fix `<>` and `|` rendering

Fix those symbols inside a Markdown table, so they render correctly on the website and Github.

Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-10-06 17:29:09 -07:00
Isiah Meadows
9f0dc2ab46
Runtime-deprecate ospec, change change-log to changelog, fix a few assorted bugs (#2578) 2020-09-29 13:27:07 -07:00
Isiah Meadows
1630b06106
Create push-master.yml 2020-09-14 20:59:17 -07:00
dependabot[bot]
0c16242f18
Bump acorn from 7.1.0 to 7.4.0 (#2630)
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.4.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/7.1.0...7.4.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 20:13:53 -07:00
dependabot[bot]
ebd3cc180b
Bump handlebars from 4.4.2 to 4.7.6 (#2629)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.4.2 to 4.7.6.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.4.2...v4.7.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 20:13:45 -07:00
dependabot[bot]
46a518dcd0
Bump lodash from 4.17.15 to 4.17.20 (#2628)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 20:13:36 -07:00
dependabot[bot]
0fd8e230c3
Bump minimist from 1.2.0 to 1.2.3 (#2627)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.3.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-14 20:13:21 -07:00
Isiah Meadows
13af2d4cad Add Open Collective asset [skip ci] 2020-09-14 19:06:56 -07:00
Isiah Meadows
6d1dab07eb Fix assets [skip ci] 2020-09-14 18:55:29 -07:00
Miguel Espinoza
ff3e12e5d3
Update installation.md (#2608) [skip ci]
Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-07-12 13:26:56 -07:00
Stephan Behnke
dca44b14ab
replace slave label with replica (#2605)
Co-authored-by: Stephan Behnke <git@stephanbehnke.de>
2020-06-19 09:15:19 -07:00
Isiah Meadows
31d1df5caa
Fix #2601 (#2603)
Fix issue where ending a stream in the middle of a stream callback would result in erroneous parent stream state for the rest of that emit.
2020-06-16 08:36:40 -07:00
ZeikJT
cf7a841c4c
Remove extra isLifecycleMethod call from removeAttr (#2594) 2020-05-17 00:50:16 -07:00
kczx3
f9c9f6682d
ES6 and m.trust docs patch (#2593) 2020-05-07 15:19:36 -07:00
Denis Sikuler
0680f55893
Replace mocha by ospec in testing page (#2585) 2020-04-20 18:16:03 -07:00
Tim Gates
11e8e861fc
docs: Fix simple typo, subsequece -> subsequence (#2582)
There is a small typo in mithril.js, render/render.js.

Should read `subsequence` rather than `subsequece`.
2020-04-08 12:07:28 -07:00
akessner
39c08f967a
change link to go to ospec instead of mocha (#2576)
* change link to go to ospec instead of mocha

Updated link regarding [issue 2575](https://github.com/MithrilJS/mithril.js/issues/2575)

* Update docs/testing.md

Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-03-15 13:33:49 -07:00
Isiah Meadows
d555498005
updated to the Vimeo showcase (#2573) 2020-03-04 19:37:35 -08:00
Boaz Blake
2ac9bfd363 adding more community examples (#2567)
Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-01-08 15:39:38 -05:00
Kamil Tomšík
b34b3c3524 Exclude archive of previous docs (#2561)
* remove docs archive (fix #2552)

* Update docs/change-log.md

Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>

Co-authored-by: Isiah Meadows <contact@isiahmeadows.com>
2020-01-05 11:29:41 -05:00
Pierre-Yves Gérardy
4a3a486d80
Pimp the docs linter (and assorted changes) (#2553)
### Pimp the docs linter (and assorted changes)

 #### `scripts/lint-docs.js`

- Add an optional cache for faster runs
- Add a final report
- Don't return anything from `exec()`
- Cover more files

 #### `scripts/_command.js`

- Look for a "--cache" option

 #### `package.json` scripts

- Added `watch:lint-docs`
- Added `cleanup:lint` to remove the eslint and lint-docs cache files
- Changed `lint:docs` to use the `--cache` option
- Added `test:js` so that we can run the test suite without the linter
- Changed `test` to defer to `test:js`

 #### Actual lint fixes:

- Bad link in a migration guide
- The unicode dashes in the "https://en.wikipedia.org/wiki/Subject–verb–object" are not escaped by marked

### Some more lint-docs pimping

#### `scripts/lint-docs.js`

- some code reorg and cleanup (take a hint from the local coding conventions)
- fix misc bugs
- pass a User-Agent header to the requests
- even nicer reporting

#### `package.json`

- bump the @babel/parser dep to the latest

#### Docs

- tweaks based on lints missed due to previous bugs

### Docs: use the github page for velocity.js, the home page has too many errors.

Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>
2019-12-19 23:40:52 +01:00
Rasmus Porsager
d257025253 Flems in docs (#2348) [skip ci]
* Initial addition of flems - fixes #526

* Fix leftover ```js code blocks

* Add DOCTYPE

* Fix edge & IE11

* Don't show console

* Change orientation on mobile

* Use mithril@next for playground link

* Improve loading and structure

* Fix header alignment in IE

* Don't rotate logo

* Fix conflicts

* Allow `js` tags

* Fix code block query

* Fix Routing section and flems

* Fix firefox

* Improve flems styling

* Improve copy

* Fix data -> body in m.request sample

* Add flems in docs usage description
2019-10-14 13:06:39 -04:00
Isiah Meadows
512eef378e
Recast key docs to be much clearer and more accurate (#2540)
* Recast key docs to be much clearer and more accurate [skip ci]

Also, fix a couple broken hash links I noticed while making this.

* Ensure `diff` blocks are highlighted correctly
2019-10-11 04:29:11 -04:00
Isiah Meadows
d4551f49f5
Add streams to releases again, include minified bundle, drop in… (#2539)
* Minify stream, add stream stuff to releases again

* Kill off a lot of tech debt, drop internal utilities from npm

1. Kill `module/`, internalize `bundler/`, privatize `test-utils/`

We've been telling people to move elsewhere from these for a while, and
it's about time we just pull the plug here and finally remove them.

- We officially removed the bundler from the public API in v2.0, and
  that was the only one of these that was ever publicly documented.
  Usage should be low enough by now it shouldn't break anyone- I'm not
  seeing bundler bugs being reported anymore, either.
- The `module/` utility was so narrow and caveat-filled that I'm not
  sure anyone really used it (even us core Mithril devs never really
  used it), and we only had it documented in the repo folder it lived
  in. I think only one bug was ever filed, and it's because it somehow
  ended up completely non-functional without any of us realizing it.
- The test utilities were meant to be internal from day 1, but people
  started using it despite us core developers constantly telling people
  to look elsewhere and even the docs recommending specific alternatives
  without mention of our internal mocks. (Now if people would RTFM,
  that'd be nice...)

2. Add dedicated HTML test files to verify ospec and the promise
   polyfill, and ensure the promise tests are in pure ES5.

These are made specially for those and should be much easier to just run
now.

3. Fix the benchmark script to use the real DOM in browsers and to not
   require as many dependencies to create. Also, tweak them to be much
   more effective and precise on what's being tested.

Previously, it was rendering to the HTML file itself, while now it's
rendering to the `body`. This means in browsers, it's triggering layout
and everything, benchmarking how well Mithril optimizes for style and
layout recalcs, too. It also puts some pressure on the hyperscript
parser attribute application, so that can be noticed as well.

* Update dependencies
2019-10-03 04:58:14 -04:00
Isiah Meadows
34f4363357
Add m.censor, adjust m.route.Link to use it (#2538)
Also, restructure a few things for better code reuse.
2019-09-30 18:44:39 -04:00
Isiah Meadows
3fa1630f91
Add params: to m.route.Link, fix docs (#2537) 2019-09-30 17:16:24 -04:00
Isiah Meadows
b98ab29efd
Make errors and their messages more accurate and helpful (#2536)
Also, I normalized them to all be sentences for consistency, and I moved
the reentrancy check from `m.mount` to `m.render` to be a little more
helpful. The router change during mounting is inconsequential and only
to avoid the new modified error, and the change to the update loop is to
send the original error if an error occurred while initializing the
default route. (This is all around more useful anyways.)

And while I was at it, I fixed an obscure bug with sync redraws.
2019-09-30 16:08:04 -04:00
Isiah Meadows
475747800a Update CoC 2019-09-28 13:38:36 -04:00
Isiah Meadows
9a76b53baa Resolve a vulnerability alert [skip ci]
Skipping CI because it works locally and shouldn't have any impact on
tests.
2019-09-23 19:15:23 -04:00
Isiah Meadows
da211d74ba Update per v1.1.7 release 2019-09-23 19:11:32 -04:00
soulofmischief
0ea6a190b6 Fix assertion descriptions (#2405)
* Fix assertion descriptions

Move return statement to the end of define()

* ospec: Fix assertion definitions

* Fix typo in assertion

* Add test for descriptions being returned on fail

* Reference result instead of self in returned description method

* Fix style errors
2019-09-22 03:35:07 -04:00
Gustavo Rodrigues
ddb3d4ab07 Update fetch() browser support in docs (#2522)
* Update fetch() browser support in docs

As https://caniuse.com/#feat=fetch shows it's supported since Safari 10.1.

* Update docs/request.md

Co-Authored-By: Isiah Meadows <contact@isiahmeadows.com>

[skip ci]
2019-08-30 08:55:32 -04:00
Isiah Meadows
c6dc7ebe64 Update release docs [skip ci] 2019-08-21 19:01:12 -04:00
Már Örlygsson
8ef0c2cd79 docs: Add release dates to all change-log files (#2513)
* docs: Add release dates to all change-log files

* docs: Add dates for the most recent releases

[skip ci]
2019-08-21 18:55:34 -04:00
Isiah Meadows
98d6553988 ospec@4.0.1 2019-08-18 15:30:31 -04:00
Isiah Meadows
9b1155c4aa Fix a docs generation bug [skip ci] 2019-08-18 14:53:53 -04:00
Isiah Meadows
caef6a8f09 v2.0.4 2019-08-18 14:21:31 -04:00
Isiah Meadows
4c15e258e0 Preparing for release 2019-08-18 14:20:22 -04:00
Isiah Meadows
22e6d37a26 Refactor the scripts to work as advertised
- Correct docs generation to always fetch its dependency
- Don't try to close a handle that's already been closed by other methods
- Allow the release script to actually be testable.
2019-08-17 21:58:57 -04:00
Isiah Meadows
30ad45caa1
Unbreak m.trust (#2516)
* Actually return the check from `maybeSetContentEditable`

Lots of code paths relied on it being a boolean. When I created the
abstraction, I apparently forgot to make sure it returned the result.

* Don't forget to copy instance state over

* Update changelog [skip ci]

* Fix changelog issue [skip ci]
2019-08-17 14:38:10 -04:00
Sam Szreter
bcf427a3be Fix ospec --require with relative paths (#2511) 2019-08-11 11:23:23 -04:00
Mohammed Saud
d3826c38eb Fix typo (#2504)
In section "Migrating from v1.x":
- "remvoed" should be "removed"
2019-08-07 09:47:42 -04:00
Saxon Stiller
720cccf73a update webpack babel config for webpack 4.x | babel-loader 8.x… (#2497) 2019-07-31 23:15:44 -04:00
Isiah Meadows
615a9364f0 Remember to close file handle [skip ci] 2019-07-29 15:13:42 -04:00
Isiah Meadows
0d10dc2c89 v2.0.3 2019-07-27 20:57:02 -04:00
Isiah Meadows
e58e9186f8 Take 2 2019-07-27 20:53:19 -04:00
Isiah Meadows
9d3ce5fa6d v2.0.2 2019-07-27 20:29:19 -04:00