Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rollup/plugin-typescript

Package Overview
Dependencies
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-typescript - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

13

CHANGELOG.md
# @rollup/plugin-typescript ChangeLog
## v4.1.2
_2020-05-20_
### Bugfixes
- fix: memory leak. fixes #322 (#352)
### Updates
- docs: update readme examples (#391)
- docs: update link to @rollup/plugin-babel in README.md (#372)
## v4.1.1

@@ -4,0 +17,0 @@

21

dist/index.es.js

@@ -466,10 +466,13 @@ import { resolve, dirname, relative, win32, posix } from 'path';

emitParsedOptionsErrors(ts, this, parsedOptions);
program = createWatchProgram(ts, this, {
formatHost,
resolveModule,
parsedOptions,
writeFile(fileName, data) {
emittedFiles.set(fileName, data);
}
});
// Fixes a memory leak https://github.com/rollup/plugins/issues/322
if (!program) {
program = createWatchProgram(ts, this, {
formatHost,
resolveModule,
parsedOptions,
writeFile(fileName, data) {
emittedFiles.set(fileName, data);
}
});
}
},

@@ -511,3 +514,3 @@ buildEnd() {

generateBundle(outputOptions) {
parsedOptions.fileNames.forEach(fileName => {
parsedOptions.fileNames.forEach((fileName) => {
const output = findTypescriptOutput(ts, parsedOptions, fileName, emittedFiles);

@@ -514,0 +517,0 @@ output.declarations.forEach((id) => {

@@ -470,10 +470,13 @@ 'use strict';

emitParsedOptionsErrors(ts, this, parsedOptions);
program = createWatchProgram(ts, this, {
formatHost,
resolveModule,
parsedOptions,
writeFile(fileName, data) {
emittedFiles.set(fileName, data);
}
});
// Fixes a memory leak https://github.com/rollup/plugins/issues/322
if (!program) {
program = createWatchProgram(ts, this, {
formatHost,
resolveModule,
parsedOptions,
writeFile(fileName, data) {
emittedFiles.set(fileName, data);
}
});
}
},

@@ -515,3 +518,3 @@ buildEnd() {

generateBundle(outputOptions) {
parsedOptions.fileNames.forEach(fileName => {
parsedOptions.fileNames.forEach((fileName) => {
const output = findTypescriptOutput(ts, parsedOptions, fileName, emittedFiles);

@@ -518,0 +521,0 @@ output.declarations.forEach((id) => {

{
"name": "@rollup/plugin-typescript",
"version": "4.1.1",
"version": "4.1.2",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -30,3 +30,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-typescript

See [rollup-plugin-babel](https://github.com/rollup/rollup-plugin-babel).
See [@rollup/plugin-babel](https://github.com/rollup/plugins/tree/master/packages/babel).

@@ -148,4 +148,4 @@ ## Usage

// rollup.config.js
import typescript from 'rollup-plugin-typescript';
import commonjs from 'rollup-plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import commonjs from '@rollup/plugin-commonjs';

@@ -180,3 +180,3 @@ export default {

import jsx from 'acorn-jsx';
import typescript from 'rollup-plugin-typescript';
import typescript from '@rollup/plugin-typescript';

@@ -183,0 +183,0 @@ export default {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc