nhb-toolbox 4.30.20 → 4.30.22

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +3 -2
  2. package/README.md +15 -114
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,9 +4,10 @@
4
4
 
5
5
  All notable changes to the package will be documented here.
6
6
 
7
- ## [4.30.20] - 2026-05-26
7
+ ## [4.30.20-22] - 2026-05-26
8
8
 
9
- - **Fixed** token audience(s) validation issue in `Signet` class.
9
+ - **Fixed** token audience(s) validation issue in `Signet` class, previously it was returning `false` even for valid tokens.
10
+ - **Removed** *github packages* support, only *npm registry* will be used for distribution.
10
11
 
11
12
  ## [4.30.16] - 2026-05-24
12
13
 
package/README.md CHANGED
@@ -45,6 +45,15 @@
45
45
  </a>
46
46
  </p>
47
47
 
48
+ >[!Info] Notice
49
+ >`nhb-toolbox` is now split into 3 packages for better maintenance, organization and user experience.
50
+ >It will not receive any new features, only critical bug fixes will be provided in the future updates.
51
+ >
52
+ >The new packages are:
53
+ > <a target="_blank" href="https://toolbox-x.nazmul-nhb.dev"> <img src="https://img.shields.io/badge/Toolbox--X-toolbox--x-steelblue" alt="toolbox-x" /> </a>
54
+ > <a target="_blank" href="https://chronos.nazmul-nhb.dev"> <img src="https://img.shields.io/badge/Chronos--Date-chronos--date-teal" alt="chronos-date" /> </a>
55
+ > <a target="_blank" href="https://github.com/nazmul-nhb/bn-calendar"> <img src="https://img.shields.io/badge/Bangla_Calendar-bn--calendar-red" alt="bn-calendar" /> </a>
56
+
48
57
  ## JavaScript/TypeScript Utility Library
49
58
 
50
59
  **NHB Toolbox** provides battle-tested utilities for professional JavaScript/TypeScript development. Carefully crafted to solve common challenges with elegant, production-ready solutions:
@@ -60,17 +69,6 @@
60
69
 
61
70
  ## Installation
62
71
 
63
- `nhb-toolbox` is published to two package registries:
64
-
65
- - **NPM Registry** (default public registry)
66
- - **GitHub Packages** (GitHub’s package registry, scoped package)
67
-
68
- ---
69
-
70
- ### Installing from NPM Registry (default)
71
-
72
- This is the simplest way to install and requires no additional setup.
73
-
74
72
  Choose your preferred package manager:
75
73
 
76
74
  ```shell
@@ -85,109 +83,6 @@ pnpm add nhb-toolbox
85
83
  yarn add nhb-toolbox
86
84
  ```
87
85
 
88
- > Use this if you want the stable public version without extra config.
89
-
90
- ---
91
-
92
- ### Installing from GitHub Packages
93
-
94
- GitHub Packages requires authentication and scoped package names.
95
-
96
- <details>
97
-
98
- <summary>
99
- <strong>Details</strong>
100
- </summary>
101
-
102
- #### Step 1: Authenticate with GitHub Packages
103
-
104
- Create or use a **GitHub Personal Access Token (PAT)** with `read:packages` permission.
105
-
106
- Add the following to your project’s `.npmrc` file (create if it doesn’t exist):
107
-
108
- ```ini
109
- @nazmul-nhb:registry=https://npm.pkg.github.com
110
- //npm.pkg.github.com/:_authToken=YOUR_GITHUB_PERSONAL_ACCESS_TOKEN
111
- ```
112
-
113
- > Replace `YOUR_GITHUB_PERSONAL_ACCESS_TOKEN` with your actual token.
114
-
115
- #### Step 2: Install the package with scoped name
116
-
117
- Choose your preferred package manager:
118
-
119
- ```shell
120
- npm i @nazmul-nhb/nhb-toolbox
121
- ```
122
-
123
- ```shell
124
- pnpm add @nazmul-nhb/nhb-toolbox
125
- ```
126
-
127
- ```shell
128
- yarn add @nazmul-nhb/nhb-toolbox
129
- ```
130
-
131
- ---
132
-
133
- #### Where do consumers get the GitHub token?
134
-
135
- - **The token is personal and private** — *each consumer must create own*.
136
-
137
- - Your **GitHub Personal Access Token (PAT)** **should never be shared publicly or with consumers**.
138
-
139
- ---
140
-
141
- #### How consumers create own token
142
-
143
- 1. **Go to GitHub account settings** → **Developer settings** → **Personal access tokens** → **Tokens (classic)**.
144
-
145
- 2. Click **Generate new token**, then:
146
-
147
- - Give it a name (e.g., `npm package read access`).
148
-
149
- - Set expiration as prefer.
150
-
151
- - **Enable only the `read:packages` permission** (to allow reading packages).
152
-
153
- 3. Generate the token and **copy it immediately** — won't see it again.
154
-
155
- ---
156
-
157
- #### What should consumers do with the token?
158
-
159
- - Add it to `.npmrc` file (or environment) to authenticate with GitHub Packages.
160
-
161
- Example `.npmrc` snippet:
162
-
163
- ```ini
164
- @nazmul-nhb:registry=https://npm.pkg.github.com
165
- //npm.pkg.github.com/:_authToken=PERSONAL_ACCESS_TOKEN_HERE
166
- ```
167
-
168
- </details>
169
-
170
- ---
171
-
172
- ### Summary
173
-
174
- | Registry | Package Name | Registry URL | Requires Auth? |
175
- | --------------- | ------------------------- | -------------------------------------------------------- | ------------------------------ |
176
- | NPM Registry | `nhb-toolbox` | [https://registry.npmjs.org](https://registry.npmjs.org) | No |
177
- | GitHub Packages | `@nazmul-nhb/nhb-toolbox` | [https://npm.pkg.github.com](https://npm.pkg.github.com) | Yes (PAT with `read:packages`) |
178
-
179
- ---
180
-
181
- If you want to use both, just configure `.npmrc` accordingly and install the appropriate package name depending on your needs.
182
-
183
- ---
184
-
185
- ### Notes
186
-
187
- - The GitHub Packages version may include pre-release or private builds.
188
- - NPM Registry version is the recommended default for most users.
189
- - You can safely use either registry depending on your environment.
190
-
191
86
  ---
192
87
 
193
88
  ## Changelog
@@ -523,6 +418,12 @@ debounceAction(fetchResults, 300);
523
418
  </a>
524
419
  </div>
525
420
 
421
+ <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
422
+ <a target="_blank" href="https://www.npmjs.com/package/chronos-date">
423
+ <img src="https://img.shields.io/badge/Chronos--Date-chronos--date-teal" alt="chronos-date" />
424
+ </a>
425
+ </div>
426
+
526
427
  <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
527
428
  <a target="_blank" href="https://www.npmjs.com/package/bn-calendar">
528
429
  <img src="https://img.shields.io/badge/Bangla_Calendar-bn--calendar-red" alt="bn-calendar" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "4.30.20",
3
+ "version": "4.30.22",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",