@hasna/uptime 0.1.21 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.22] - 2026-06-28
10
+
11
+ ### Fixed
12
+
13
+ - Clarified production hosted-token errors and docs to cover both explicit
14
+ hosted auth production mode and `NODE_ENV=production`.
15
+ - Added built CLI entrypoint regression coverage for packaged hosted startup
16
+ rejecting raw hosted tokens under `NODE_ENV=production`.
17
+
9
18
  ## [0.1.21] - 2026-06-28
10
19
 
11
20
  ### Fixed
package/README.md CHANGED
@@ -107,7 +107,8 @@ Hosted tokens can be provided as a single legacy token through
107
107
  ```
108
108
 
109
109
  Use scoped JSON for hosted deployments. A single raw hosted token is kept only
110
- for local compatibility and expands to broad read/write/probe/report scopes.
110
+ for local compatibility and expands to broad read/write/probe/report scopes;
111
+ it is rejected when hosted auth mode or `NODE_ENV` is `production`.
111
112
  Endpoints that accept request bodies require `content-type: application/json`.
112
113
 
113
114
  ## Uptime Semantics
package/dist/api.js CHANGED
@@ -4286,7 +4286,7 @@ function parseHostedTokenValue(value, defaultWorkspaceId, source) {
4286
4286
  return parseHostedTokensConfig(trimmed, defaultWorkspaceId, source);
4287
4287
  }
4288
4288
  if (isHostedProductionMode()) {
4289
- throw new ApiError(`${source} must be scoped hosted token JSON when HASNA_UPTIME_HOSTED_AUTH_MODE=production`, 500);
4289
+ throw new ApiError(`${source} must be scoped hosted token JSON when hosted auth mode or NODE_ENV is production`, 500);
4290
4290
  }
4291
4291
  return [{
4292
4292
  token: trimmed,
package/dist/cli/index.js CHANGED
@@ -6880,7 +6880,7 @@ function parseHostedTokenValue(value, defaultWorkspaceId, source) {
6880
6880
  return parseHostedTokensConfig(trimmed, defaultWorkspaceId, source);
6881
6881
  }
6882
6882
  if (isHostedProductionMode()) {
6883
- throw new ApiError(`${source} must be scoped hosted token JSON when HASNA_UPTIME_HOSTED_AUTH_MODE=production`, 500);
6883
+ throw new ApiError(`${source} must be scoped hosted token JSON when hosted auth mode or NODE_ENV is production`, 500);
6884
6884
  }
6885
6885
  return [{
6886
6886
  token: trimmed,
@@ -7014,7 +7014,7 @@ function buildAwsDeploymentPlan(options = {}) {
7014
7014
  const image = clean(options.image, `${imageRepositoryUri}@sha256:<image-digest>`);
7015
7015
  const evidenceBucket = clean(options.evidenceBucket, `hasna-${stage}-${prefix}-evidence`);
7016
7016
  const hostedSqliteDbPath = clean(options.hostedSqliteDbPath, DEFAULT_HOSTED_SQLITE_DB);
7017
- const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.21");
7017
+ const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.22");
7018
7018
  const protectedAccessMode = options.protectedAccessMode ?? DEFAULT_PROTECTED_ACCESS_MODE;
7019
7019
  const protectedAccessUrl = protectedAccessMode === "cloudfront_default_domain" ? "https://<cloudfront-domain>" : `https://${hostname}`;
7020
7020
  const cluster = `${prefix}-${stage}`;
@@ -21,7 +21,7 @@ function buildAwsDeploymentPlan(options = {}) {
21
21
  const image = clean(options.image, `${imageRepositoryUri}@sha256:<image-digest>`);
22
22
  const evidenceBucket = clean(options.evidenceBucket, `hasna-${stage}-${prefix}-evidence`);
23
23
  const hostedSqliteDbPath = clean(options.hostedSqliteDbPath, DEFAULT_HOSTED_SQLITE_DB);
24
- const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.21");
24
+ const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.22");
25
25
  const protectedAccessMode = options.protectedAccessMode ?? DEFAULT_PROTECTED_ACCESS_MODE;
26
26
  const protectedAccessUrl = protectedAccessMode === "cloudfront_default_domain" ? "https://<cloudfront-domain>" : `https://${hostname}`;
27
27
  const cluster = `${prefix}-${stage}`;
package/dist/index.js CHANGED
@@ -4286,7 +4286,7 @@ function parseHostedTokenValue(value, defaultWorkspaceId, source) {
4286
4286
  return parseHostedTokensConfig(trimmed, defaultWorkspaceId, source);
4287
4287
  }
4288
4288
  if (isHostedProductionMode()) {
4289
- throw new ApiError(`${source} must be scoped hosted token JSON when HASNA_UPTIME_HOSTED_AUTH_MODE=production`, 500);
4289
+ throw new ApiError(`${source} must be scoped hosted token JSON when hosted auth mode or NODE_ENV is production`, 500);
4290
4290
  }
4291
4291
  return [{
4292
4292
  token: trimmed,
@@ -4420,7 +4420,7 @@ function buildAwsDeploymentPlan(options = {}) {
4420
4420
  const image = clean(options.image, `${imageRepositoryUri}@sha256:<image-digest>`);
4421
4421
  const evidenceBucket = clean(options.evidenceBucket, `hasna-${stage}-${prefix}-evidence`);
4422
4422
  const hostedSqliteDbPath = clean(options.hostedSqliteDbPath, DEFAULT_HOSTED_SQLITE_DB);
4423
- const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.21");
4423
+ const runtimePackageVersion = clean(options.runtimePackageVersion, "0.1.22");
4424
4424
  const protectedAccessMode = options.protectedAccessMode ?? DEFAULT_PROTECTED_ACCESS_MODE;
4425
4425
  const protectedAccessUrl = protectedAccessMode === "cloudfront_default_domain" ? "https://<cloudfront-domain>" : `https://${hostname}`;
4426
4426
  const cluster = `${prefix}-${stage}`;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "service": "open-uptime",
3
3
  "package": "@hasna/uptime",
4
- "intendedVersion": "0.1.21",
4
+ "intendedVersion": "0.1.22",
5
5
  "accountProfile": "<aws-profile>",
6
6
  "accountId": "<aws-account-id>",
7
7
  "region": "us-east-1",
@@ -19,7 +19,7 @@ alb_ingress_cidr_blocks = []
19
19
  private_subnet_ids = ["subnet-replace-private-a", "subnet-replace-private-b"]
20
20
  private_route_table_ids = ["rtb-replace-private"]
21
21
  container_image = "123456789012.dkr.ecr.us-east-1.amazonaws.com/open-uptime@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
22
- runtime_package_version = "0.1.21"
22
+ runtime_package_version = "0.1.22"
23
23
  certificate_arn = null
24
24
  hosted_zone_id = null
25
25
  app_env_secret_arn = "arn:aws:secretsmanager:us-east-1:123456789012:secret:open-uptime/prod/app/env"
@@ -201,7 +201,7 @@ variable "container_image" {
201
201
  variable "runtime_package_version" {
202
202
  description = "Published @hasna/uptime package version that CodeBuild should build into the ECR image."
203
203
  type = string
204
- default = "0.1.21"
204
+ default = "0.1.22"
205
205
 
206
206
  validation {
207
207
  condition = can(regex("^[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z.-]+)?$", var.runtime_package_version))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/uptime",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Local-first uptime and downtime monitoring service with CLI, MCP, SDK, SQLite persistence, and a dashboard.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",