Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -21,6 +20,7 @@ jobs:
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
scope: "@nullsablex"
cache: npm

- name: Install dependencies
Expand All @@ -30,6 +30,6 @@ jobs:
run: npm run build

- name: Publish to npm
run: npm publish --provenance
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project are documented in this file.

This project follows Semantic Versioning.

## [0.1.2] - 2026-02-16

### Changed

- Package name migrated to scoped npm package: `@nullsablex/counter-up`.
- README updated for scoped installation/import and npm badges.
- Release workflow updated with npm scope configuration for `@nullsablex`.

## [0.1.1] - 2026-02-16

### Added
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Counter Up

<p align="left">
<a href="https://www.npmjs.com/package/counter-up"><img alt="npm version" src="https://img.shields.io/npm/v/counter-up?color=blue"></a>
<a href="https://www.npmjs.com/package/counter-up"><img alt="npm downloads" src="https://img.shields.io/npm/dm/counter-up?color=blue"></a>
<a href="https://www.npmjs.com/package/@nullsablex/counter-up"><img alt="npm version" src="https://img.shields.io/npm/v/%40nullsablex%2Fcounter-up?color=blue"></a>
<a href="https://www.npmjs.com/package/@nullsablex/counter-up"><img alt="npm downloads" src="https://img.shields.io/npm/dm/%40nullsablex%2Fcounter-up?color=blue"></a>
<a href="https://github.com/NullSablex/counter-up/releases"><img alt="release" src="https://img.shields.io/github/v/release/NullSablex/counter-up?color=blue"></a>
<a href="./LICENSE"><img alt="license" src="https://img.shields.io/github/license/NullSablex/counter-up?color=brightgreen"></a>
<a href="https://github.com/NullSablex/counter-up/graphs/contributors"><img alt="contributors" src="https://img.shields.io/github/contributors/NullSablex/counter-up?color=brightgreen"></a>
Expand All @@ -25,7 +25,7 @@ Biblioteca JavaScript para animação de números no DOM, sem dependências exte
## Instalação

```bash
npm install counter-up
npm install @nullsablex/counter-up
```

O pacote já inclui os arquivos prontos de `dist/` (ESM, UMD e minificados).
Expand All @@ -41,7 +41,7 @@ Acesse a demonstração online no GitHub Pages:
### ESM (elemento único)

```js
import { counterUp } from "counter-up";
import { counterUp } from "@nullsablex/counter-up";

counterUp("#total", {
start: 0,
Expand All @@ -55,7 +55,7 @@ counterUp("#total", {
### ESM (múltiplos elementos por classe)

```js
import { counterUp } from "counter-up";
import { counterUp } from "@nullsablex/counter-up";

const counters = counterUp(".metric", {
start: 0,
Expand Down
2 changes: 1 addition & 1 deletion dist/counterup.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* counter-up v0.1.1 | Author: NullSablex | https://github.com/NullSablex/counter-up.git | MIT License */
/* @nullsablex/counter-up v0.1.2 | Author: NullSablex | https://github.com/NullSablex/counter-up.git | MIT License */
const easings = {
linear: (t) => t,
easeInOutQuad: (t) => (t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2),
Expand Down
2 changes: 1 addition & 1 deletion dist/counterup.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/counterup.umd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* counter-up v0.1.1 | Author: NullSablex | https://github.com/NullSablex/counter-up.git | MIT License */
/* @nullsablex/counter-up v0.1.2 | Author: NullSablex | https://github.com/NullSablex/counter-up.git | MIT License */
(function (global, factory) {
if (typeof module === "object" && typeof module.exports === "object") {
module.exports = factory();
Expand Down
2 changes: 1 addition & 1 deletion dist/counterup.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "counter-up",
"version": "0.1.1",
"name": "@nullsablex/counter-up",
"version": "0.1.2",
"description": "Biblioteca JS pura para animação de contadores numéricos",
"author": "NullSablex",
"repository": {
Expand Down
Loading