smooth-loader 1.2.4 → 1.2.6

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.
@@ -0,0 +1,30 @@
1
+ name: Publish package to NPM
2
+
3
+ # Good article: https://medium.com/@codewithwaheed/publish-your-first-package-using-npm-and-github-actions-e453ca9f9fd2
4
+
5
+ on:
6
+ push:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ name: Publish to NPM registry
13
+
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v6
17
+
18
+ - name: Setup Node.js
19
+ uses: actions/setup-node@v7
20
+ with:
21
+ node-version: "20"
22
+ registry-url: "https://registry.npmjs.org/"
23
+
24
+ - name: Install Deps
25
+ run: npm ci
26
+
27
+ - name: Publish Library
28
+ run: npm publish
29
+ env:
30
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release Notes
2
2
 
3
+ ## v1.2.6 (2026-11-18)
4
+
5
+ - Moved to GitHub
6
+
7
+ ## v1.2.5 (2026-08-27)
8
+
9
+ - Change CI runner
10
+
3
11
  ## v1.2.4 (2026-08-13)
4
12
 
5
13
  - Improved forgejo action workflow file
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- ![Smooth loader logo](https://smooth-loader.codeberg.page/images/logo.png)
1
+ ![Smooth loader logo](https://smooth-loader.serhiicho.com/images/logo.png)
2
2
 
3
3
  Smooth loader allows you smoothly lazy load images and background images. Lazy Loading defers the loading of an image that is not needed on the page immediately. An image, not visible to the user when the page loads, is loaded later when the user scrolls and the image actually becomes visible. If the user never scrolls, an image that is not visible to the user never gets loaded.
4
4
 
5
5
  This package is a MUST-HAVE for every website containing multiple images on the page. It's surely the best lazy loading package on NPM that you can configure to your own needs.
6
6
 
7
- ## Follow the [official documentation](https://smooth-loader.codeberg.page) for all the details
7
+ ## Follow the [official documentation](https://smooth-loader.serhiicho.com) for all the details
8
8
 
9
9
  ## Contribute
10
10
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "smooth-loader",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "This package allows you to lazy load your images using IntersectionObserver technology. It supports loading background images as well as the regular images with img tag.",
5
5
  "main": "lib/js/index.js",
6
6
  "types": "lib/js",
7
7
  "author": "Serhii Cho",
8
8
  "license": "MIT",
9
- "homepage": "https://smooth-loader.codeberg.page",
9
+ "homepage": "https://smooth-loader.serhiicho.com",
10
10
  "devDependencies": {
11
11
  "typescript": "^5.9.3"
12
12
  },
@@ -1,30 +0,0 @@
1
- name: Publish package to NPM
2
- enable-email-notifications: true
3
-
4
- # Good article: https://medium.com/@codewithwaheed/publish-your-first-package-using-npm-and-github-actions-e453ca9f9fd2
5
-
6
- on:
7
- push:
8
- branches: [master]
9
-
10
- jobs:
11
- publish:
12
- runs-on: burn
13
- name: Publish to NPM registry
14
- steps:
15
- - name: Checkout
16
- uses: actions/checkout@v4
17
-
18
- - name: Setup Node.js
19
- uses: https://github.com/actions/setup-node@v2
20
- with:
21
- node-version: '20'
22
- registry-url: 'https://registry.npmjs.org/'
23
-
24
- - name: Install Deps
25
- run: npm install
26
-
27
- - name: Publish Library
28
- run: npm publish
29
- env:
30
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}