@alwatr/hash-string 5.2.0 → 5.2.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.2.2](https://github.com/Alwatr/nanolib/compare/@alwatr/hash-string@5.2.1...@alwatr/hash-string@5.2.2) (2025-08-23)
7
+
8
+ ### Code Refactoring
9
+
10
+ * Updated all package.json files in the project to change dependency version specifiers from "workspace:^" to "workspace:*" for consistency and to allow for more flexible version resolution. ([db6a4f7](https://github.com/Alwatr/nanolib/commit/db6a4f76deec2d1d8039978144e4bc51b6f1a0e3)) by @alimd
11
+
12
+ ## <small>5.2.1 (2025-04-15)</small>
13
+
14
+ **Note:** Version bump only for package @alwatr/hash-string
15
+
6
16
  ## [5.2.0](https://github.com/Alwatr/nanolib/compare/@alwatr/hash-string@5.1.0...@alwatr/hash-string@5.2.0) (2025-04-01)
7
17
 
8
18
  ### Features
package/README.md CHANGED
@@ -39,6 +39,14 @@ Generates a simple hash from the input string or number.
39
39
 
40
40
  Returns a hashed string with the specified prefix.
41
41
 
42
+ ### djb2Hash(str: string): number
43
+
44
+ Implements the DJB2 hash algorithm, a fast and efficient string hashing function created by Daniel J. Bernstein.
45
+
46
+ - **str**: The string to hash
47
+
48
+ Returns a 32-bit unsigned integer hash value.
49
+
42
50
  ## Features
43
51
 
44
52
  - Fast and lightweight hashing algorithm
package/dist/main.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/hash-string v5.2.0 */
1
+ /* @alwatr/hash-string v5.2.2 */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -63,7 +63,7 @@ function nanoHash(str, prefix, repeat = 1) {
63
63
  }
64
64
 
65
65
  // src/main.ts
66
- __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/hash-string", "5.2.0");
66
+ __dev_mode__: import_package_tracer.packageTracer.add("@alwatr/hash-string", "5.2.2");
67
67
  // Annotate the CommonJS export names for ESM import in node:
68
68
  0 && (module.exports = {
69
69
  djb2Hash,
package/dist/main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /* @alwatr/hash-string v5.2.0 */
1
+ /* @alwatr/hash-string v5.2.2 */
2
2
 
3
3
  // src/main.ts
4
4
  import { packageTracer } from "@alwatr/package-tracer";
@@ -39,7 +39,7 @@ function nanoHash(str, prefix, repeat = 1) {
39
39
  }
40
40
 
41
41
  // src/main.ts
42
- __dev_mode__: packageTracer.add("@alwatr/hash-string", "5.2.0");
42
+ __dev_mode__: packageTracer.add("@alwatr/hash-string", "5.2.2");
43
43
  export {
44
44
  djb2Hash,
45
45
  nanoHash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwatr/hash-string",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
4
4
  "description": "A simple utility to generate a hash string.",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "keywords": [
@@ -71,14 +71,14 @@
71
71
  "clean": "rm -rfv dist *.tsbuildinfo"
72
72
  },
73
73
  "dependencies": {
74
- "@alwatr/package-tracer": "^5.5.2"
74
+ "@alwatr/package-tracer": "5.5.4"
75
75
  },
76
76
  "devDependencies": {
77
- "@alwatr/nano-build": "^5.5.2",
78
- "@alwatr/prettier-config": "^5.0.0",
79
- "@alwatr/tsconfig-base": "^5.0.0",
77
+ "@alwatr/nano-build": "5.5.4",
78
+ "@alwatr/prettier-config": "5.0.0",
79
+ "@alwatr/tsconfig-base": "5.0.0",
80
80
  "jest": "^29.7.0",
81
- "typescript": "^5.8.2"
81
+ "typescript": "^5.8.3"
82
82
  },
83
- "gitHead": "2756475ba2fa108bae7af6d8d9747e0c7815dfa2"
83
+ "gitHead": "dd749e0b9adecdefa8e906669858c014b53bdab0"
84
84
  }