diff --git a/.travis.yml b/.travis.yml index b260fdd..531309b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,13 @@ node_js: - "node" - "lts/*" +cache: + directories: + - "node_modules" + before_install: - npm install --global codecov -install: - - npm install - script: - npm run lint - npm run test -- --coverage diff --git a/CHANGELOG.md b/CHANGELOG.md index 77e1448..f5f2b6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,33 +5,38 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [2.1.0] - 2018-07-11 + +- Add [TypeScript](https://www.typescriptlang.org/) typings. + ## [2.0.0] - 2018-03-19 -* [BREAKING] Rename higher-order app from `render` to `withRender`. -* [BREAKING] Rename global exports from `window.*` to `window.hyperappRender.*`. -* [BREAKING] Rename server package from `@hyperapp/render/server` to `@hyperapp/render`. -* Add support for [lazy components](https://github.com/hyperapp/hyperapp/tree/1.2.0#lazy-components). +- [BREAKING] Rename higher-order app from `render` to `withRender`. +- [BREAKING] Rename global exports from `window.*` to `window.hyperappRender.*`. +- [BREAKING] Rename server package from `@hyperapp/render/server` to `@hyperapp/render`. +- Add support for [lazy components](https://github.com/hyperapp/hyperapp/tree/1.2.0#lazy-components). ## [1.3.0] - 2018-02-24 -* Scoped npm package name. Use `@hyperapp/render` instead of `hyperapp-render`. -* Render `style` attribute with `cssText` correctly. -* Better performance for numeric attributes. +- Scoped npm package name. Use `@hyperapp/render` instead of `hyperapp-render`. +- Render `style` attribute with `cssText` correctly. +- Better performance for numeric attributes. ## [1.2.0] - 2018-02-14 -* Ignore [jsx `__source`](https://babeljs.io/docs/plugins/transform-react-jsx-source/) attribute. +- Ignore [jsx `__source`](https://babeljs.io/docs/plugins/transform-react-jsx-source/) attribute. ## [1.1.0] - 2018-02-07 -* Compatibility with Hyperapp [v1.1.0](https://github.com/hyperapp/hyperapp/releases/tag/1.1.0) +- Compatibility with Hyperapp [v1.1.0](https://github.com/hyperapp/hyperapp/releases/tag/1.1.0) after internal VNode schema change. ## 1.0.0 - 2018-01-24 -* Initial public release. +- Initial public release. -[Unreleased]: https://github.com/hyperapp/render/compare/v2.0.0...HEAD +[unreleased]: https://github.com/hyperapp/render/compare/v2.1.0...HEAD +[2.1.0]: https://github.com/hyperapp/render/compare/v2.0.0...v2.1.0 [2.0.0]: https://github.com/hyperapp/render/compare/v1.3.0...v2.0.0 [1.3.0]: https://github.com/hyperapp/render/compare/v1.2.0...v1.3.0 [1.2.0]: https://github.com/hyperapp/render/compare/v1.1.0...v1.2.0 diff --git a/README.md b/README.md index ee7ffbe..8fc9e2a 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,8 @@ npm install @hyperapp/render --save ``` Or using a [CDN](https://en.wikipedia.org/wiki/Content_delivery_network) like -[unpkg.com](https://unpkg.com/@hyperapp/render@latest/hyperapp-render.min.js) or -[jsDelivr](https://cdn.jsdelivr.net/npm/@hyperapp/render@latest/hyperapp-render.min.js) +[unpkg.com](https://unpkg.com/@hyperapp/render/hyperapp-render.min.js) or +[jsDelivr](https://cdn.jsdelivr.net/npm/@hyperapp/render/hyperapp-render.min.js) with the following script tag: ```html diff --git a/package.json b/package.json index 07961a7..4a2f991 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@hyperapp/render", - "version": "2.0.0", + "version": "2.1.0", "description": "Render Hyperapp to an HTML string with SSR and Node.js streaming support", "repository": "hyperapp/render", "author": "Vladimir Kutepov", @@ -25,14 +25,17 @@ "src/node.d.ts": "./src/browser.d.ts", "src/node.js": "./src/browser.js" }, + "dependencies": { + "@types/node": "*", + "hyperapp": "^1.2.0" + }, "devDependencies": { "@babel/core": "7.0.0-beta.52", "@babel/plugin-transform-react-jsx": "7.0.0-beta.52", "@babel/preset-env": "7.0.0-beta.52", "@babel/register": "7.0.0-beta.52", - "@types/node": "^6.0.114", "babel-core": "^7.0.0-0", - "babel-jest": "^23.2.0", + "babel-jest": "^23.4.0", "benchr": "^4.3.0", "eslint": "^4.19.1", "eslint-config-airbnb": "^17.0.0", @@ -42,8 +45,7 @@ "eslint-plugin-react": "^7.10.0", "fs-extra": "^6.0.1", "husky": "^0.14.3", - "hyperapp": "^1.2.6", - "jest": "^23.3.0", + "jest": "^23.4.0", "prettier": "^1.13.7", "rollup": "^0.62.0", "rollup-plugin-babel": "4.0.0-beta.7", @@ -52,10 +54,6 @@ "rollup-plugin-uglify": "^4.0.0", "typescript": "^2.9.2" }, - "peerDependencies": { - "@types/node": ">=6.x", - "hyperapp": "^1.2.6" - }, "scripts": { "lint": "node tools/lint", "test": "node tools/test",