Socket
Socket
Sign inDemoInstall

ts-patch

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-patch - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

28

CHANGELOG.md

@@ -5,13 +5,33 @@ # Changelog

### [2.0.1](https://github.com/nonara/ts-patch/compare/v1.4.5...v2.0.1) (2021-11-01)
### Bug Fixes
* Corrected path error in previous release ([7c56d56](https://github.com/nonara/ts-patch/commit/7c56d56b5165affb9c58a3c65c2753391f3e967a))
## [2.0.0](https://github.com/nonara/ts-patch/compare/v1.4.5...v2.0.0) (2021-11-01)
### ⚠ BREAKING CHANGES
### Summary
* Cleaner, lighter weight patch (#66)
This is not the planned rewrite, but the codebase was in desperate need of an update. The patch build system with rollup was failing with newer versions and was hacky under the best of circumstances, anyway. This new version has a proper custom build system that produces a much leaner patch. Additionally, I reorganized the codebase, improved tests, and dropped old TS support.
### Features
_Note: If you absolutely need it, it will still work with older TS. Simply fork and remove the version check_
* Cleaner, lighter weight patch ([#66](https://github.com/nonara/ts-patch/issues/66)) ([78dcff5](https://github.com/nonara/ts-patch/commit/78dcff59bb7dd3ba35ca81b14aab7e07a8c593b8))
### Changes
- Soft deprecated `--basedir` (use `--dir`)
- Zero bundled dependencies in patch (much lighter)
- ⚠️ Hard deprecated `--persist` option (use `package.json` -> `prepare` script)
- ⚠️ Requires TS >= 4.0
_(⚠️ denotes potential "breaking" change)_
### Development Changes
- Removed rollup and created light-weight custom build system
- Cleaned up file structure
- Improved test speed & methodology
- Changed patch detection signature
### [1.4.5](https://github.com/nonara/ts-patch/compare/v1.4.4...v1.4.5) (2021-10-25)

@@ -18,0 +38,0 @@

4

lib/system/helpers.js

@@ -68,7 +68,7 @@ "use strict";

exports.appRoot = (function () {
var moduleDir = path_1.default.join(__dirname, '../../../');
var moduleDir = path_1.default.join(__dirname, '../../');
var chkFile = function (pkgFile) {
return (fs_1.default.existsSync(pkgFile) && (require(pkgFile).name === 'ts-patch')) ? path_1.default.dirname(pkgFile) : void 0;
};
var res = chkFile(path_1.default.join(moduleDir, 'package.json')) || chkFile(path_1.default.join(moduleDir, '../package.json'));
var res = chkFile(path_1.default.join(moduleDir, 'package.json')) || chkFile(path_1.default.join(moduleDir, '../../package.json'));
if (!res)

@@ -75,0 +75,0 @@ throw new Error("Error getting app root. No valid ts-patch package file found in " + moduleDir);

{
"name": "ts-patch",
"version": "2.0.0",
"version": "2.0.1",
"description": "Patch typescript to support custom transformers in tsconfig.json",

@@ -5,0 +5,0 @@ "main": "./index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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