Daniel Salazar
e51d0c4600
feat: metering service allowence checks and subscription integration 🚀 ( #1749 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* feat: metering allowence checks
* fix: bad math
2025-10-15 02:28:25 -07:00
Daniel Salazar
96a58ced29
metering: new usage endpoint + puter-js changes for it ( #1738 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* metering: new usage endpoint
* metering: new usage endpoint + puter-js changes for it
2025-10-14 12:44:40 -07:00
jelveh
2819ec7b06
Update index.js
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-10-13 00:36:15 -07:00
Nariman Jelveh
661f13fc92
improve caching mechanism by deleting specific caches on item addition in FileSystem module ( #1745 )
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-10-12 19:50:48 -07:00
Neal Shah
9e0ba954ff
fix npm pacjage not importing init.cjs ( #1743 )
2025-10-12 19:46:04 -04:00
jelveh
6a72c261e2
closes #1722
2025-10-12 16:28:12 -07:00
Nariman Jelveh
f083e6b060
Improve puterjs caching ( #1739 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* add regular cache checking for popular directories
* Update index.js
* implement `readdir` request deduplication to improve performance
* Update index.js
2025-10-11 21:03:38 -07:00
Nariman Jelveh
6fdea68eec
chore: add http-server as a dev dependency and update package scripts ( #1718 )
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-10-08 19:13:05 -07:00
KernelDeimos
e59f4e6c16
devex: reduce webpack verbosity
2025-10-08 19:25:53 -04:00
Daniel Salazar
6d35496252
chore: publish npm ( #1698 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* chore: bump puter-js version and publish
* chore: package-lock
2025-10-07 11:56:18 -07:00
Daniel Salazar
2a2a1f6a99
fix: backward compatibility for puter kv incr/decr ( #1697 )
2025-10-07 11:39:23 -07:00
Nariman Jelveh
84a28b9637
Sidepanel ( #1694 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* add AI side panel to UIDesktop
* integrated `UIAIChat` component into `UIDesktop` for AI interactions.
* added styles for AI side panel, including buttons and chat message formatting in style.css, enhancing user experience with AI features.
* add support for window-based side panels
* remove window resizing logic that is simply broken
* whitelisting added
* Add `showWindow` and `hideWindow` methods to Puter.js
2025-10-06 18:40:44 -07:00
Daniel Salazar
e3f9455cae
test: vitest tests for puter js ( #1693 )
2025-10-06 15:00:40 -07:00
ProgrammerIn-wonderland
82732b9e96
Safari fix for TLS connections in puter
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-10-05 02:06:36 -04:00
Nariman Jelveh
cc8a658122
Update UI.js ( #1668 )
2025-10-03 14:59:23 -07:00
ProgrammerIn-wonderland
f60e02565f
add conditional type overload for streaming
2025-10-03 16:38:44 -04:00
Kishan_Singh
1affbb4cc8
fix: support async iterator for AI chat streaming mode in types
2025-10-03 16:38:44 -04:00
jelveh
847b3a07a4
Improve item.add cache invalidation logic so that it doesn't purge the entire cache
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-09-29 00:02:03 -07:00
jelveh
a69072b31b
More precise cache invalidation in case of item rename
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-09-28 23:43:36 -07:00
jelveh
fe022cff1d
Back to native purge to build from first principles?!
2025-09-28 22:50:55 -07:00
jelveh
1195e319a8
update kv.js version in package.json
2025-09-28 22:05:30 -07:00
Nariman Jelveh
ebb0162d79
Increase cache efficiency
2025-09-28 21:30:31 -07:00
Nariman Jelveh
7382264648
more nuanced cache invalidation strategy with logging enabled by default
2025-09-28 20:35:51 -07:00
Nariman Jelveh
a965df0cc0
Remove cache expiry in puter.js
2025-09-28 19:16:29 -07:00
Nariman Jelveh
72341c78dc
Update index.js
2025-09-28 18:59:44 -07:00
jelveh
ef74a1a660
fix: prevent unnecessary updates on socket events
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
Updated the `bindSocketEvents` method to check the `original_client_socket_id` before posting updates for 'cache.updated' and 'item.renamed' events. This prevents unnecessary updates when the event originates from the same client socket.
2025-09-28 14:35:45 -07:00
Xiaochen Cui
891093fd2b
fix a typo ( #1627 )
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-09-26 21:45:00 -07:00
Nariman Jelveh
fae33301a8
fix the issue with last_valid_ts always being 0
2025-09-26 15:05:44 -07:00
Xiaochen Cui and Nariman Jelveh
860388c3cb
update client-cache logic ( #1626 )
...
* client-cache: remove pulling
* client-cache: fix wrong ts field
* client-cache: purge cache on any local update
* client-cache: last_updated_time -> last_valid_time
* client-cache: update cache on remote update
* client-cache: update last_valid_ts every sec
* client-cache: switch to localstorage
* do the cache and purge test when `setAuthToken` is called
---------
Co-authored-by: Nariman Jelveh <nj@puter.com >
2025-09-26 11:44:12 -07:00
Nariman Jelveh
a0b567da52
chore: update @heyputer/kv.js dependency to version 0.2.0 and initialize cache with dbName in puter-js ( #1623 )
2025-09-26 10:58:16 -07:00
Daniel Salazar and Neal Shah
d70d412115
feat: DAV Locks support + refactor of DAV method handler ( #1486 )
...
* feat: DAV Locks support + refactor of DAV method handler
* format: Restore old whitespace for CoreModule.js
* fix: options route registering after likecycle hooks
---------
Co-authored-by: Neal Shah <30693865+ProgrammerIn-wonderland@users.noreply.github.com >
2025-09-26 11:00:29 -04:00
Xiaochen Cui
7bfa85d4fe
client-cache: remove pulling ( #1620 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* client-cache: remove pulling
* client-cache: fix wrong ts field
* client-cache: purge cache on any local update
2025-09-25 16:56:01 -07:00
velzie
8b9fefa4a2
fix puterjs throwing errors after consuming message events not meant for it ( #1612 )
2025-09-25 11:11:34 -07:00
Xiaochen Cui
681c084180
client-cache: update cache-invalidation policy to ts-based comparison ( #1611 )
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-09-24 18:08:09 -07:00
Nariman Jelveh
8b7e764af9
add instancesOpen to puter.js UI
2025-09-24 17:03:36 -07:00
Daniel Salazar
bf76a1edea
feat: allow setting puter origin via globalThis variables
2025-09-23 13:26:12 -07:00
Nariman Jelveh
e0316b9cbe
remove unnecessary console.log()
2025-09-22 16:36:48 -07:00
jelveh
b93890b008
Update package.json
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-09-21 22:36:40 -07:00
jelveh
502ef3c32b
Update README.md for Puter.js: Enhance formatting, add installation instructions, and include community links
2025-09-21 22:33:13 -07:00
dependabot[bot]
4dfdd2839f
build(deps): bump webpack from 5.89.0 to 5.101.3 in /src/puter-js ( #1601 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
Bumps [webpack](https://github.com/webpack/webpack ) from 5.89.0 to 5.101.3.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.89.0...v5.101.3 )
---
updated-dependencies:
- dependency-name: webpack
dependency-version: 5.101.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-21 14:50:30 -07:00
Daniel Salazar
44284eb788
fix: typedefs
2025-09-19 17:12:01 -07:00
Daniel Salazar
d6fbe94364
npm: fixed publish
2025-09-19 16:52:18 -07:00
dependabot[bot]
a3cbee1b58
build(deps): bump serialize-javascript in /src/puter-js ( #1594 )
...
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/yahoo/serialize-javascript/releases )
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.1...v6.0.2 )
---
updated-dependencies:
- dependency-name: serialize-javascript
dependency-version: 6.0.2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-19 14:28:36 -07:00
Daniel Salazar
9d5a09f0bc
fix: package name
2025-09-19 14:01:03 -07:00
Daniel Salazar
a936333006
npm: release to npm
2025-09-19 13:58:25 -07:00
jelveh
a023c24c35
Update package.json
2025-09-19 13:55:19 -07:00
jelveh
41191c65d7
Update puter.js README.md
2025-09-19 13:52:54 -07:00
Daniel Salazar
493334b030
chore: update README for puter.js to publish on npm
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
2025-09-19 02:34:33 -07:00
Nariman Jelveh
31fffb087d
Refactor file system operations in GUI and puter.js to use eventual consistency ( #1579 )
...
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
* Refactor file system operations in GUI and puter.js to use eventual consistency for stat and readdir calls
This update modifies multiple instances of file system operations to include a consistency option set to 'eventual'. This change aims to improve performance and responsiveness by allowing for eventual consistency in file system interactions across various components, including helpers, UI elements, and IPC handling.
* Update cache expiration time for file system operations in readdir and stat to 1 hour
* feat: add network connectivity monitoring and cache purging
This update introduces a new feature that monitors network connectivity and purges the cache when the connection is lost. The implementation includes event listeners for online/offline changes and visibility changes to ensure cache consistency during network disruptions.
* clean up logs
2025-09-18 17:13:39 -07:00
jelveh
e4ada292f1
Update index.js
2025-09-17 15:59:24 -07:00