nhb-toolbox 4.30.21 → 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 +0 -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.21] - 2026-05-26
7
+ ## [4.30.20-22] - 2026-05-26
8
8
 
9
- - **Fixed** token audience(s) validation issue in `Signet` class, previously it was returning false even for valid tokens.
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
@@ -69,17 +69,6 @@
69
69
 
70
70
  ## Installation
71
71
 
72
- `nhb-toolbox` is published to two package registries:
73
-
74
- - **NPM Registry** (default public registry)
75
- - **GitHub Packages** (GitHub’s package registry, scoped package)
76
-
77
- ---
78
-
79
- ### Installing from NPM Registry (default)
80
-
81
- This is the simplest way to install and requires no additional setup.
82
-
83
72
  Choose your preferred package manager:
84
73
 
85
74
  ```shell
@@ -94,109 +83,6 @@ pnpm add nhb-toolbox
94
83
  yarn add nhb-toolbox
95
84
  ```
96
85
 
97
- > Use this if you want the stable public version without extra config.
98
-
99
- ---
100
-
101
- ### Installing from GitHub Packages
102
-
103
- GitHub Packages requires authentication and scoped package names.
104
-
105
- <details>
106
-
107
- <summary>
108
- <strong>Details</strong>
109
- </summary>
110
-
111
- #### Step 1: Authenticate with GitHub Packages
112
-
113
- Create or use a **GitHub Personal Access Token (PAT)** with `read:packages` permission.
114
-
115
- Add the following to your project’s `.npmrc` file (create if it doesn’t exist):
116
-
117
- ```ini
118
- @nazmul-nhb:registry=https://npm.pkg.github.com
119
- //npm.pkg.github.com/:_authToken=YOUR_GITHUB_PERSONAL_ACCESS_TOKEN
120
- ```
121
-
122
- > Replace `YOUR_GITHUB_PERSONAL_ACCESS_TOKEN` with your actual token.
123
-
124
- #### Step 2: Install the package with scoped name
125
-
126
- Choose your preferred package manager:
127
-
128
- ```shell
129
- npm i @nazmul-nhb/nhb-toolbox
130
- ```
131
-
132
- ```shell
133
- pnpm add @nazmul-nhb/nhb-toolbox
134
- ```
135
-
136
- ```shell
137
- yarn add @nazmul-nhb/nhb-toolbox
138
- ```
139
-
140
- ---
141
-
142
- #### Where do consumers get the GitHub token?
143
-
144
- - **The token is personal and private** — *each consumer must create own*.
145
-
146
- - Your **GitHub Personal Access Token (PAT)** **should never be shared publicly or with consumers**.
147
-
148
- ---
149
-
150
- #### How consumers create own token
151
-
152
- 1. **Go to GitHub account settings** → **Developer settings** → **Personal access tokens** → **Tokens (classic)**.
153
-
154
- 2. Click **Generate new token**, then:
155
-
156
- - Give it a name (e.g., `npm package read access`).
157
-
158
- - Set expiration as prefer.
159
-
160
- - **Enable only the `read:packages` permission** (to allow reading packages).
161
-
162
- 3. Generate the token and **copy it immediately** — won't see it again.
163
-
164
- ---
165
-
166
- #### What should consumers do with the token?
167
-
168
- - Add it to `.npmrc` file (or environment) to authenticate with GitHub Packages.
169
-
170
- Example `.npmrc` snippet:
171
-
172
- ```ini
173
- @nazmul-nhb:registry=https://npm.pkg.github.com
174
- //npm.pkg.github.com/:_authToken=PERSONAL_ACCESS_TOKEN_HERE
175
- ```
176
-
177
- </details>
178
-
179
- ---
180
-
181
- ### Summary
182
-
183
- | Registry | Package Name | Registry URL | Requires Auth? |
184
- | --------------- | ------------------------- | -------------------------------------------------------- | ------------------------------ |
185
- | NPM Registry | `nhb-toolbox` | [https://registry.npmjs.org](https://registry.npmjs.org) | No |
186
- | GitHub Packages | `@nazmul-nhb/nhb-toolbox` | [https://npm.pkg.github.com](https://npm.pkg.github.com) | Yes (PAT with `read:packages`) |
187
-
188
- ---
189
-
190
- If you want to use both, just configure `.npmrc` accordingly and install the appropriate package name depending on your needs.
191
-
192
- ---
193
-
194
- ### Notes
195
-
196
- - The GitHub Packages version may include pre-release or private builds.
197
- - NPM Registry version is the recommended default for most users.
198
- - You can safely use either registry depending on your environment.
199
-
200
86
  ---
201
87
 
202
88
  ## Changelog
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhb-toolbox",
3
- "version": "4.30.21",
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",