Skip to content

Commit

Permalink
Dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Sep 4, 2024
1 parent c5e399a commit 752ccba
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To install Pup, make sure you run the latest version of your runtime environment
**Deno**:

```bash
deno run -Ar jsr:@pup/pup@1.0.0-rc.43 setup --channel prerelease
deno run -Ar jsr:@pup/pup@1.0.0-rc.44 setup --channel prerelease
```

This command downloads the latest version of Pup and installs it on your system. The `--channel prerelease` option is included as there is no stable version of Pup yet. Read more abour release
Expand Down
2 changes: 1 addition & 1 deletion application.meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

const Application = {
name: "pup",
version: "1.0.0-rc.43",
version: "1.0.0-rc.44",
url: "jsr:@pup/pup@$VERSION",
description: "Powerful universal process manager, designed to keep your scripts, applications and services alive.",
canary_url: "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts",
Expand Down
12 changes: 6 additions & 6 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pup/pup",
"version": "1.0.0-rc.43",
"version": "1.0.0-rc.44",

"exports": {
".": "./pup.ts",
Expand All @@ -16,7 +16,7 @@
"lint": {
"exclude": ["cov_profile", "docs/_site"],
"rules": {
"exclude": ["verbatim-module-syntax"]
"exclude": ["verbatim-module-syntax", "no-node-globals"]
}
},

Expand All @@ -40,11 +40,11 @@
"@cross/env": "jsr:@cross/env@~1.0.2",
"@cross/fs": "jsr:@cross/fs@~0.1.11",
"@cross/jwt": "jsr:@cross/jwt@~0.5.0",
"@cross/kv": "jsr:@cross/kv@~0.16.3",
"@cross/runtime": "jsr:@cross/runtime@~1.0.0",
"@cross/kv": "jsr:@cross/kv@^0.16.4",
"@cross/runtime": "jsr:@cross/runtime@^1.1.0",
"@cross/service": "jsr:@cross/service@~1.0.3",
"@cross/test": "jsr:@cross/test@~0.0.9",
"@cross/utils": "jsr:@cross/utils@~0.13.0",
"@cross/utils": "jsr:@cross/utils@^0.14.0",
"@hexagon/croner": "jsr:@hexagon/croner@~8.1.0",
"@oak/oak": "jsr:@oak/oak@~16.1.0",
"@pup/api-client": "jsr:@pup/api-client@~2.0.0",
Expand All @@ -56,7 +56,7 @@
"@std/encoding": "jsr:@std/encoding@~1.0.0",
"@std/io": "jsr:@std/io@~0.224.0",
"@std/path": "jsr:@std/path@~1.0.1",
"@std/semver": "jsr:@std/semver@~0.224.0",
"@std/semver": "jsr:@std/semver@^1.0.3",
"dax-sh": "npm:dax-sh@~0.41.0",
"filesize": "npm:filesize@~10.1.1",
"json5": "npm:json5@~2.2.3",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Universal Process Manager"
},
"substitute": {
"$PUP_VERSION": "1.0.0-rc.43"
"$PUP_VERSION": "1.0.0-rc.44"
},
"top_links": [
{
Expand Down
5 changes: 5 additions & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ nav_order: 13

All notable changes to this project will be documented in this section.

## [1.0.0-rc.44] - 2024-09-04

- fix(core): Fix limit of application state writes
- chore(deps): Full dependency update

## [1.0.0-rc.43] - 2024-07-23

- fix(core): Fix child process API token expiration
Expand Down
24 changes: 12 additions & 12 deletions lib/core/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ class Status {
public async writeToStore(applicationState: ApiApplicationState) {
if (this.storeName) {
try {
const kv = new KV({ autoSync: false, disableIndex: true })
await kv.open(this.storeName)

// Initialize lastWrite if it's not set
if (!this.lastWrite) {
this.lastWrite = 0
}

// Write application_state at most once per APPLICATION_STATE_WRITE_LIMIT_MS
if (Date.now() - this.lastWrite > APPLICATION_STATE_WRITE_LIMIT_MS) {
const kv = new KV({ autoSync: false, disableIndex: true })
await kv.open(this.storeName)

// Initialize lastWrite if it's not set
if (!this.lastWrite) {
this.lastWrite = 0
}

this.lastWrite = Date.now()
await kv.set(["application_state", Date.now()], applicationState)
}

// Always write last_application_state
await kv.set(["last_application_state"], applicationState)
await kv.close()
// Always write last_application_state
await kv.set(["last_application_state"], applicationState)
await kv.close()
}
} catch (e) {
console.error("Error while writing status to kv store: " + e.message)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/core/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { globToRegExp, relative } from "@std/path"
import { delay } from "@std/async"

type FileAction = "any" | "access" | "create" | "modify" | "remove" | "other"
type FileAction = "any" | "access" | "create" | "modify" | "remove" | "other" | "rename"

export interface FileEvent {
path: string
Expand Down
15 changes: 15 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
"canary_url": "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts",
"stable": [],
"prerelease": [
{
"version": "1.0.0-rc.44",
"url": "jsr:@pup/pup@1.0.0-rc.44",
"deno": "1.43.0",
"deno_unstable": "1.43.0",
"default_permissions": [
"--allow-env",
"--allow-read",
"--allow-write",
"--allow-sys=loadavg,systemMemoryInfo,osUptime,osRelease,uid,gid",
"--allow-net",
"--allow-run",
"--allow-ffi"
]
},
{
"version": "1.0.0-rc.43",
"url": "jsr:@pup/pup@1.0.0-rc.43",
Expand Down

0 comments on commit 752ccba

Please sign in to comment.