Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependent packages to the latest #5

Merged
merged 6 commits into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ references:

- run:
name: Prettier formatting
command: yarn format:check
command: yarn check:format

- run:
name: TSLint
command: yarn lint:ts

- run:
name: TypeScript type checking
command: yarn check-ts
command: yarn check:ts

- run:
name: Jest
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

## [Unreleased]

### Changed

- Upgrade dependent packages to the latest ([#5](https://github.com/marp-team/marpit-svg-polyfill/pull/5))

## v0.2.0 - 2018-12-31

### Fixed

- Fix incorrect scaling in split background ([#2](https://github.com/marp-team/marpit-svg-polyfill/pull/2))

## v0.1.0 - 2018-12-29

### Changed

- Split picking out logics into `polyfills()` function ([#1](https://github.com/marp-team/marpit-svg-polyfill/pull/1))

## v0.0.1 - 2018-12-29
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# @marp-team/marpit-svg-polyfill

[![CircleCI](https://img.shields.io/circleci/project/github/marp-team/marpit-svg-polyfill/master.svg?style=flat-square)](https://circleci.com/gh/marp-team/marpit-svg-polyfill/)
[![Codecov](https://img.shields.io/codecov/c/github/marp-team/marpit-svg-polyfill/master.svg?style=flat-square)](https://codecov.io/gh/marp-team/marpit-svg-polyfill)
[![npm](https://img.shields.io/npm/v/@marp-team/marpit-svg-polyfill.svg?style=flat-square)](https://www.npmjs.com/package/@marp-team/marpit-svg-polyfill)
[![CircleCI](https://img.shields.io/circleci/project/github/marp-team/marpit-svg-polyfill/master.svg?style=flat-square&logo=circleci)](https://circleci.com/gh/marp-team/marpit-svg-polyfill/)
[![Codecov](https://img.shields.io/codecov/c/github/marp-team/marpit-svg-polyfill/master.svg?style=flat-square&logo=codecov)](https://codecov.io/gh/marp-team/marpit-svg-polyfill)
[![npm](https://img.shields.io/npm/v/@marp-team/marpit-svg-polyfill.svg?style=flat-square&logo=npm)](https://www.npmjs.com/package/@marp-team/marpit-svg-polyfill)
[![LICENSE](https://img.shields.io/github/license/marp-team/marpit-svg-polyfill.svg?style=flat-square)](./LICENSE)

The polyfill for [the inline SVG slide][inline-svg] rendered by [Marpit].
Expand Down
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,45 +47,45 @@
},
"scripts": {
"build": "yarn --silent clean && rollup -c",
"check-audit": "yarn audit",
"check-ts": "tsc --noEmit",
"check:audit": "yarn audit",
"check:format": "yarn --silent format -c",
"check:ts": "tsc --noEmit",
"clean": "rimraf lib",
"format": "prettier \"**/*.{css,js,json,md,scss,ts,yaml,yml}\"",
"format:check": "yarn --silent format -l",
"format:write": "yarn --silent format --write",
"lint:ts": "tslint \"{src,test}/**/*.ts\"",
"prepack": "npm-run-all --npm-path yarn --parallel check-audit check-ts format:check lint:* test:coverage --parallel build types",
"preversion": "npm-run-all --npm-path yarn --parallel check-audit check-ts format:check lint:* test:coverage",
"prepack": "npm-run-all --npm-path yarn --parallel check:* lint:* test:coverage --parallel build types",
"preversion": "npm-run-all --npm-path yarn --parallel check:* lint:* test:coverage",
"test": "jest",
"test:coverage": "jest --coverage",
"types": "rimraf types && tsc --declaration --emitDeclarationOnly --outDir types",
"version": "node version.js && git add -A CHANGELOG.md",
"version": "curl https://raw.githubusercontent.com/marp-team/marp/master/version.js | node && git add -A CHANGELOG.md",
"watch": "rollup -w -c"
},
"devDependencies": {
"@marp-team/marpit": "^0.5.0",
"@types/jest": "^23.3.10",
"codecov": "^3.1.0",
"jest": "^23.6.0",
"jest-junit": "^5.2.0",
"@marp-team/marpit": "^0.8.0",
"@types/jest": "^24.0.11",
"codecov": "^3.2.0",
"jest": "^24.5.0",
"jest-junit": "^6.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.15.3",
"rimraf": "^2.6.2",
"rollup": "^1.0.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-terser": "^3.0.0",
"prettier": "^1.16.4",
"rimraf": "^2.6.3",
"rollup": "^1.6.1",
"rollup-plugin-commonjs": "^9.2.1",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^4.0.1",
"rollup-plugin-terser": "^4.0.4",
"rollup-plugin-typescript": "^1.0.0",
"ts-jest": "23.10.5",
"ts-jest": "24.0.0",
"tslib": "^1.9.3",
"tslint": "^5.12.0",
"tslint": "^5.14.0",
"tslint-config-airbnb": "^5.11.1",
"tslint-config-prettier": "^1.17.0",
"typescript": "^3.2.2"
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.3.4000"
},
"dependencies": {
"detect-browser": "^3.0.1"
"detect-browser": "^4.1.0"
},
"peerDependencies": {
"@marp-team/marpit": ">=0.5.0"
Expand Down
10 changes: 6 additions & 4 deletions test/polyfill.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Marpit } from '@marp-team/marpit'
import detectBrowser from 'detect-browser'
import * as detectBrowser from 'detect-browser'
import {
observe,
resetPolyfills,
Expand All @@ -15,8 +15,10 @@ beforeEach(() => {
afterEach(() => jest.restoreAllMocks())

describe('Marpit SVG polyfill', () => {
const browseWith = name =>
jest.spyOn(detectBrowser, 'detect').mockImplementation(() => ({ name }))
const browseWith = (name: detectBrowser.BrowserInfo['name']) =>
jest
.spyOn(detectBrowser, 'detect')
.mockImplementation(() => ({ name, version: '0.0.0', os: null }))

describe('#observe', () => {
it('has no operations when running in not supported browser', () => {
Expand Down Expand Up @@ -83,7 +85,7 @@ describe('Marpit SVG polyfill', () => {
Array.from(sections, section => {
const { transform, transformOrigin } = section.style

expect(transformOrigin).toBeUndefined()
expect(transformOrigin).toBeFalsy()
expect(transform).not.toContain('translate3d')
expect(transform).not.toContain('scale')
})
Expand Down
14 changes: 0 additions & 14 deletions version.js

This file was deleted.

Loading