Skip to content

Commit c73aabf

Browse files
committedMay 1, 2021
feat: bump dependencies
1 parent ea87210 commit c73aabf

File tree

6 files changed

+18987
-3761
lines changed

6 files changed

+18987
-3761
lines changed
 

‎package-lock.json

+18,934-3,709
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+46-46
Original file line numberDiff line numberDiff line change
@@ -57,71 +57,71 @@
5757
"prettier:write": "prettier --write \"src/**/*.ts\""
5858
},
5959
"dependencies": {
60-
"@types/chai": "^4.2.11",
61-
"@types/mocha": "^7.0.2",
62-
"@types/node": "^13.9.3",
63-
"@typescript-eslint/eslint-plugin": "^2.24.0",
64-
"@typescript-eslint/parser": "^2.24.0",
65-
"@wessberg/rollup-plugin-ts": "^1.2.21",
66-
"autoprefixer": "^9.7.4",
67-
"boxen": "^4.2.0",
60+
"@rollup/plugin-commonjs": "18.0.0",
61+
"@rollup/plugin-json": "4.1.0",
62+
"@rollup/plugin-node-resolve": "11.2.1",
63+
"@rollup/pluginutils": "4.1.0",
64+
"@types/chai": "^4.2.17",
65+
"@types/mocha": "^8.2.2",
66+
"@types/node": "^15.0.1",
67+
"@typescript-eslint/eslint-plugin": "^4.22.0",
68+
"@typescript-eslint/parser": "^4.22.0",
69+
"@wessberg/rollup-plugin-ts": "^1.3.14",
70+
"autoprefixer": "^10.2.5",
71+
"boxen": "^5.0.1",
6872
"brotli": "^1.3.2",
69-
"chai": "^4.2.0",
73+
"chai": "^4.3.4",
7074
"colors": "^1.4.0",
71-
"cssnano": "^4.1.10",
72-
"escodegen": "^1.14.1",
73-
"eslint": "^6.8.0",
74-
"eslint-config-prettier": "^6.10.1",
75+
"cssnano": "^5.0.2",
76+
"escodegen": "^2.0.0",
77+
"eslint": "^7.25.0",
78+
"eslint-config-prettier": "^8.3.0",
7579
"esprima": "^4.0.1",
76-
"estraverse": "^4.3.0",
77-
"filesize": "^6.1.0",
80+
"estraverse": "^5.2.0",
81+
"filesize": "^6.3.0",
7882
"fs": "0.0.1-security",
79-
"fs-extra": "^9.0.0",
80-
"gzip-size": "^5.1.1",
83+
"fs-extra": "^9.1.0",
84+
"gzip-size": "^6.0.0",
8185
"html-minifier": "^4.0.0",
82-
"karma": "^4.4.1",
86+
"karma": "^6.3.2",
8387
"karma-chai": "^0.1.0",
8488
"karma-chrome-launcher": "^3.1.0",
85-
"karma-iframes": "^1.2.2",
86-
"karma-mocha": "^1.3.0",
87-
"karma-rollup-preprocessor": "^7.0.3",
88-
"livereload": "^0.9.1",
89+
"karma-iframes": "^1.3.0",
90+
"karma-mocha": "^2.0.1",
91+
"karma-rollup-preprocessor": "^7.0.7",
92+
"livereload": "^0.9.3",
8993
"magic-string": "^0.25.7",
9094
"minimist": "^1.2.5",
91-
"mocha": "^7.1.1",
92-
"node-sass": "^4.13.1",
95+
"mocha": "^8.3.2",
96+
"node-sass": "^5.0.0",
9397
"path": "^0.12.7",
94-
"postcss": "^7.0.27",
98+
"postcss": "^8.2.13",
9599
"precss": "^4.0.0",
96-
"prettier": "^2.0.1",
100+
"prettier": "^2.2.1",
97101
"recursive-readdir-sync": "^1.0.6",
98-
"rollup": "^2.1.0",
99-
"rollup-plugin-license": "^0.13.0",
100-
"rollup-plugin-progress": "^1.1.1",
101-
"rollup-plugin-serve": "^1.0.1",
102-
"rollup-plugin-terser": "^5.3.0",
103-
"rollup-plugin-visualizer": "^3.3.2",
104-
"@rollup/plugin-commonjs": "11.0.2",
105-
"@rollup/plugin-json": "4.0.2",
106-
"@rollup/plugin-node-resolve": "7.1.1",
107-
"@rollup/pluginutils": "3.0.8",
102+
"rollup": "^2.46.0",
103+
"rollup-plugin-license": "^2.3.0",
104+
"rollup-plugin-progress": "^1.1.2",
105+
"rollup-plugin-serve": "^1.1.0",
106+
"rollup-plugin-terser": "^7.0.2",
107+
"rollup-plugin-visualizer": "^5.4.1",
108108
"targz": "^1.0.1",
109-
"ts-lit-plugin": "1.1.10",
110-
"typescript": "^3.8.3",
111-
"web-component-analyzer": "^1.0.3",
112-
"workbox-build": "^5.1.1"
109+
"ts-lit-plugin": "1.2.1",
110+
"typescript": "^4.2.4",
111+
"web-component-analyzer": "^1.1.6",
112+
"workbox-build": "^6.1.5"
113113
},
114114
"devDependencies": {
115-
"@appnest/readme": "^1.2.5",
115+
"@appnest/readme": "^1.2.7",
116116
"@types/escodegen": "0.0.6",
117117
"@types/esprima": "^4.0.2",
118-
"@types/estraverse": "0.0.6",
118+
"@types/estraverse": "5.1.0",
119119
"@types/filesize": "^5.0.0",
120-
"@types/fs-extra": "^8.1.0",
120+
"@types/fs-extra": "^9.0.11",
121121
"@types/gzip-size": "^5.1.1",
122-
"@types/node-sass": "^4.11.0",
123-
"lit-element": "^2.3.1",
124-
"lit-html": "^1.2.1",
122+
"@types/node-sass": "^4.11.1",
123+
"lit-element": "^2.5.0",
124+
"lit-html": "^1.4.0",
125125
"weightless": "0.0.37"
126126
},
127127
"contributors": [

‎src/lib/create-rollup-config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export const defaultResolvePlugins = ({
150150
// Teaches Rollup how to transpile Typescript
151151
// https://github.com/wessberg/rollup-plugin-ts
152152
ts({
153+
/* @ts-ignore */
153154
transpiler: "babel",
154155
...configOrDefault(tsConfig)
155156
}),

‎src/lib/rollup-plugins/compress/rollup-plugin-compress.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { compress as brotliCompress } from "brotli";
1+
import brotli from "brotli";
22
import { yellow, green } from "colors";
33
import { appendFile, readFileSync } from "fs-extra";
44
import readdir from "recursive-readdir-sync";
@@ -23,7 +23,7 @@ const defaultConfig: IRollupPluginCompressConfig = {
2323
verbose: true,
2424
include: [],
2525
exclude: [],
26-
compressors: [compressGzip, compressBrotli],
26+
compressors: [compressGzip], /*, compressBrotli],*/
2727
timeout: 2000
2828
};
2929

@@ -53,7 +53,7 @@ export function compressGzip({ src, verbose }: { src: string; verbose: boolean }
5353
* @param verbose
5454
*/
5555
export function compressBrotli({ src, verbose }: { src: string; verbose: boolean }) {
56-
const buffer = brotliCompress(readFileSync(src));
56+
const buffer = brotli.compress(readFileSync(src));
5757
const dest = `${src}.br`;
5858

5959
appendFile(dest, buffer, (err: Error) => {

‎src/lib/rollup-plugins/html-template/rollup-plugin-html-template.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async function generateFile({
151151
transform,
152152
polyfillConfig,
153153
transformScript
154-
}: IRollupPluginHtmlTemplateConfig & { bundle: OutputBundle; filter: (path: string) => boolean }) {
154+
}: IRollupPluginHtmlTemplateConfig & { bundle: OutputBundle; filter: (path: string) => boolean }): Promise<void> {
155155
return new Promise((res, rej) => {
156156
readFile(template, (err, buffer) => {
157157
// If the file could not be read, abort!

‎src/lib/rollup-plugins/import-styles/rollup-plugin-import-styles.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import MagicString from "magic-string";
22
import postcss from "postcss";
3+
import Processor from "postcss/lib/processor";
34
import { ResolveIdResult, SourceDescription } from "rollup";
45
import { emptySourcemap } from "../util";
56
import sass from "node-sass";
67
import { resolve, dirname } from "path";
78

89
export type Transformer = (css: string) => string;
910
export type GetTransformer = (id: string, isGlobal: boolean) => Transformer;
10-
1111
export interface IRollupPluginImportStylesConfig {
1212
// Postcss plugins.
1313
plugins: any[];
@@ -88,7 +88,7 @@ async function processFile({
8888
overwrite,
8989
postcssConfig,
9090
sassConfig
91-
}: IRollupPluginImportStylesConfig & { overwrite: Transformer; data: string; id: string; processor: postcss.Processor }) {
91+
}: IRollupPluginImportStylesConfig & { overwrite: Transformer; data: string; id: string; processor: Processor }) {
9292
return new Promise(res => {
9393
// Compile the data using the sass compiler
9494
const css = sass

0 commit comments

Comments
 (0)
Please sign in to comment.