unassertify
Advanced tools
Comparing version 2.1.1 to 3.0.0
@@ -0,1 +1,14 @@ | ||
## [3.0.0](https://github.com/unassert-js/unassertify/releases/tag/v3.0.0) (2022-08-07) | ||
#### Features | ||
* [Upgrade unassert to v2.0.0](https://github.com/unassert-js/unassertify/pull/9) | ||
* change .js to .cjs ([97c32f0b](https://github.com/unassert-js/unassertify/commit/97c32f0bf288787fed27d4abf285fe31c6864ec8)) | ||
#### Breaking Changes | ||
This release will not affect most users. This is a major release of "just in case" for unassert-v2 which is completely rewritten. | ||
### [2.1.1](https://github.com/unassert-js/unassertify/releases/tag/v2.1.1) (2018-04-19) | ||
@@ -2,0 +15,0 @@ |
{ | ||
"name": "unassertify", | ||
"description": "Browserify transform for unassert: Encourages programming with assertions by providing tools to compile them away", | ||
"version": "2.1.1", | ||
"version": "3.0.0", | ||
"author": { | ||
@@ -18,18 +18,19 @@ "name": "Takuto Wada", | ||
"dependencies": { | ||
"acorn": "^5.1.0", | ||
"acorn": "^8.0.0", | ||
"convert-source-map": "^1.1.1", | ||
"escodegen": "^1.6.1", | ||
"multi-stage-sourcemap": "^0.2.1", | ||
"escodegen": "^2.0.0", | ||
"multi-stage-sourcemap": "^0.3.1", | ||
"through": "^2.3.7", | ||
"unassert": "^1.3.1" | ||
"unassert": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^13.1.0", | ||
"coffeeify": "^2.0.0", | ||
"espower-loader": "^1.0.1", | ||
"event-stream": "^3.3.4", | ||
"browserify": "^17.0.0", | ||
"coffeeify": "^3.0.0", | ||
"coffeescript": "^2.7.0", | ||
"event-stream": "^4.0.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"jshint": "^2.9.3", | ||
"mocha": "^3.0.2", | ||
"power-assert": "^1.4.1" | ||
"mocha": "^10.0.0", | ||
"power-assert": "^1.4.1", | ||
"semistandard": "^16.0.0", | ||
"snazzy": "^9.0.0" | ||
}, | ||
@@ -40,3 +41,3 @@ "files": [ | ||
"LICENSE", | ||
"index.js", | ||
"index.cjs", | ||
"package.json" | ||
@@ -54,3 +55,3 @@ ], | ||
"license": "MIT", | ||
"main": "index.js", | ||
"main": "index.cjs", | ||
"repository": { | ||
@@ -61,5 +62,14 @@ "type": "git", | ||
"scripts": { | ||
"lint": "jshint index.js", | ||
"fmt": "semistandard --fix index.cjs 'test/*.cjs'", | ||
"lint": "semistandard --verbose index.cjs 'test/*.cjs' | snazzy", | ||
"test": "npm run lint && mocha --require intelli-espower-loader" | ||
}, | ||
"semistandard": { | ||
"globals": [ | ||
"describe", | ||
"context", | ||
"beforeEach", | ||
"it" | ||
] | ||
} | ||
} |
@@ -8,5 +8,5 @@ unassertify | ||
[![Build Status][travis-image]][travis-url] | ||
[![Build Status][ci-image]][ci-url] | ||
[![NPM version][npm-image]][npm-url] | ||
[![Dependency Status][depstat-image]][depstat-url] | ||
[![Code Style][style-image]][style-url] | ||
[![License][license-image]][license-url] | ||
@@ -22,2 +22,3 @@ | ||
- [unassert-cli](https://github.com/unassert-js/unassert-cli): CLI for unassert | ||
- [rollup-plugin-unassert](https://github.com/unassert-js/rollup-plugin-unassert): RollupJS plugin for unassert | ||
@@ -46,9 +47,9 @@ | ||
```javascript | ||
var source = require('vinyl-source-stream'); | ||
var browserify = require('browserify'); | ||
var glob = require('glob'), | ||
const source = require('vinyl-source-stream'); | ||
const browserify = require('browserify'); | ||
const glob = require('glob'), | ||
gulp.task('production_build', function() { | ||
var files = glob.sync('./src/*.js'); | ||
var b = browserify({entries: files}); | ||
const files = glob.sync('./src/*.js'); | ||
const b = browserify({entries: files}); | ||
b.transform('unassertify'); | ||
@@ -70,3 +71,3 @@ return b.bundle() | ||
var assert = require('assert'); | ||
const assert = require('node:assert'); | ||
@@ -113,5 +114,10 @@ function add (a, b) { | ||
* `assert.notDeepStrictEqual(actual, expected, [message])` | ||
* `assert.fail(actual, expected, message, operator)` | ||
* `assert.match(string, regexp[, message])` | ||
* `assert.doesNotMatch(string, regexp[, message])` | ||
* `assert.throws(block, [error], [message])` | ||
* `assert.doesNotThrow(block, [message])` | ||
* `await assert.rejects(asyncFn, [error], [message])` | ||
* `await assert.doesNotReject(asyncFn, [error], [message])` | ||
* `assert.fail([message])` | ||
* `assert.fail(actual, expected, message, operator)` | ||
* `assert.ifError(value)` | ||
@@ -122,4 +128,22 @@ * `console.assert(value, [message])` | ||
* `var assert = require("assert")` | ||
* `var assert = require("power-assert")` | ||
* `import assert from "assert"` | ||
* `import assert from "assert/strict"` | ||
* `import assert from "node:assert"` | ||
* `import assert from "node:assert/strict"` | ||
* `import * as assert from "assert"` | ||
* `import * as assert from "node:assert"` | ||
* `import * as assert from "assert/strict"` | ||
* `import * as assert from "node:assert/strict"` | ||
* `import { strict as assert } from "assert"` | ||
* `import { strict as assert } from "node:assert"` | ||
* `import { default as assert } from "assert"` | ||
* `import { default as assert } from "node:assert"` | ||
* `const assert = require("assert")` | ||
* `const assert = require("node:assert")` | ||
* `const assert = require("assert/strict")` | ||
* `const assert = require("node:assert/strict")` | ||
* `const assert = require("assert").strict` | ||
* `const assert = require("node:assert").strict` | ||
* `const { strict: assert } = require("assert")` | ||
* `const { strict: assert } = require("node:assert")` | ||
@@ -129,5 +153,20 @@ and assignments. | ||
* `assert = require("assert")` | ||
* `assert = require("power-assert")` | ||
* `assert = require("node:assert")` | ||
* `assert = require("assert/strict")` | ||
* `assert = require("node:assert/strict")` | ||
* `assert = require("assert").strict` | ||
* `assert = require("node:assert").strict` | ||
#### Auto Variable Tracking | ||
unassert automatically removes assertion calls based on their imported variable names. | ||
So if import declaration is as follows, | ||
* `import strictAssert, { ok, equal as eq } from 'node:assert/strict';` | ||
unassert removes all `strictAssert`, `ok`, `eq` calls. | ||
AUTHOR | ||
@@ -164,9 +203,9 @@ --------------------------------------- | ||
[travis-url]: https://travis-ci.org/unassert-js/unassertify | ||
[travis-image]: https://secure.travis-ci.org/unassert-js/unassertify.svg?branch=master | ||
[ci-image]: https://github.com/unassert-js/unassertify/workflows/Node.js%20CI/badge.svg | ||
[ci-url]: https://github.com/unassert-js/unassertify/actions?query=workflow%3A%22Node.js+CI%22 | ||
[depstat-url]: https://gemnasium.com/unassert-js/unassertify | ||
[depstat-image]: https://gemnasium.com/unassert-js/unassertify.svg | ||
[license-url]: https://github.com/unassert-js/unassertify/blob/master/LICENSE | ||
[license-image]: https://img.shields.io/badge/license-MIT-brightgreen.svg | ||
[style-url]: https://github.com/standard/semistandard | ||
[style-image]: https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16792
112
204
9
1
+ Addedacorn@8.14.0(transitive)
+ Addedescodegen@2.1.0(transitive)
+ Addedestraverse@5.3.0(transitive)
+ Addedmulti-stage-sourcemap@0.3.1(transitive)
+ Addedunassert@2.0.2(transitive)
- Removedacorn@5.7.47.4.1(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcall-matcher@2.0.0(transitive)
- Removeddeep-equal@1.1.2(transitive)
- Removeddeep-is@0.1.4(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedescodegen@1.14.3(transitive)
- Removedespurify@2.1.1(transitive)
- Removedestraverse@4.3.0(transitive)
- Removedfast-levenshtein@2.0.6(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-arguments@1.1.1(transitive)
- Removedis-date-object@1.0.5(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedlevn@0.3.0(transitive)
- Removedmulti-stage-sourcemap@0.2.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject-is@1.1.6(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedoptionator@0.8.3(transitive)
- Removedprelude-ls@1.1.2(transitive)
- Removedregexp.prototype.flags@1.5.3(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedtype-check@0.3.2(transitive)
- Removedunassert@1.6.0(transitive)
- Removedword-wrap@1.2.5(transitive)
Updatedacorn@^8.0.0
Updatedescodegen@^2.0.0
Updatedmulti-stage-sourcemap@^0.3.1
Updatedunassert@^2.0.0