pure-md5 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,12 +3,9 @@
3
3
  **A lightweight, zero-dependency JavaScript library for MD5 hashing with streaming support for large files.**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/pure-md5.svg?style=flat&color=informational)](https://npmjs.org/package/pure-md5)
6
- [![npm downloads](https://img.shields.io/npm/dm/pure-md5.svg?style=flat&color=blue)](https://npmjs.org/package/pure-md5)
6
+ [![npm downloads](https://img.shields.io/npm/dw/pure-md5.svg?style=flat&color=blue)](https://npmjs.org/package/pure-md5)
7
+ [![Coverage Status](https://coveralls.io/repos/github/eustatos/pure-md5/badge.svg?branch=main)](https://coveralls.io/github/eustatos/pure-md5?branch=main)
7
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
8
- [![Build Status](https://img.shields.io/github/actions/workflow/status/eustatos/pure-md5/npm-publish.yml?branch=main&style=flat&logo=github)](https://github.com/eustatos/pure-md5/actions/workflows/npm-publish.yml)
9
- [![codecov](https://img.shields.io/codecov/c/github/eustatos/pure-md5/main?style=flat&logo=codecov)](https://codecov.io/gh/eustatos/pure-md5)
10
- [![Bundle Size](https://img.shields.io/bundlephobia/minzip/pure-md5?style=flat&color=success&label=.bundle%20size)](https://bundlephobia.com/result?p=pure-md5)
11
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.6+-blue?style=flat&logo=typescript)](https://www.typescriptlang.org/)
12
9
 
13
10
  ---
14
11
 
@@ -298,6 +295,3 @@ If you find this project helpful, please consider supporting it:
298
295
  - [RFC 1321 - The MD5 Message-Digest Algorithm](https://www.ietf.org/rfc/rfc1321.txt)
299
296
  - [Node.js crypto documentation](https://nodejs.org/api/crypto.html)
300
297
 
301
- ---
302
-
303
- *Made with ❤️ by [Aleksandr Astashkin](https://github.com/eustatos)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pure-md5",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A lightweight JavaScript function for hashing messages by the MD5 algorithm",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,8 +27,9 @@
27
27
  "build:watch": "tsup --watch",
28
28
  "build:prod": "tsup --minify",
29
29
  "dev": "tsup --watch",
30
- "test": "jest --config jestconfig.json --coverage --passWithNoTests",
31
- "coverage": "codecov -f coverage/coverage-final.json",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest",
32
+ "test:coverage": "vitest run --coverage",
32
33
  "changeset": "changeset",
33
34
  "changeset:version": "changeset version",
34
35
  "changeset:publish": "changeset publish"
@@ -84,12 +85,10 @@
84
85
  "devDependencies": {
85
86
  "@changesets/changelog-github": "^0.5.2",
86
87
  "@changesets/cli": "^2.29.8",
87
- "@types/jest": "^29.5.14",
88
- "codecov": "^3.8.3",
89
- "jest": "^29.7.0",
90
- "ts-jest": "^29.1.5",
88
+ "@vitest/coverage-v8": "^4.1.2",
91
89
  "tsup": "^8.5.1",
92
- "typescript": "^5.6.3"
90
+ "typescript": "^5.6.3",
91
+ "vitest": "^4.1.2"
93
92
  },
94
93
  "keywords": [
95
94
  "md5"
Binary file
@@ -1,12 +0,0 @@
1
- // Тестируем tree-shaking: импортируем только md5
2
- // Должны увидеть только необходимые части, а не весь бандл
3
-
4
- const code = `
5
- import { md5 } from './dist/index.js';
6
-
7
- console.log(md5('test'));
8
- `;
9
-
10
- console.log('Testing tree-shaking with current setup...');
11
- console.log('If you see all module exports, tree-shaking is not working well.');
12
- console.log('If you see only md5, tree-shaking is working.');