@exabugs/dynamodb-client 0.7.5 → 0.8.0

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
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.8.0] - 2025-12-28
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ - **Removed asanowa-specific parameters for library generalization**
15
+ - Removed `cognito_client_id` parameter (aud verification not needed for generic library)
16
+ - Removed `cognito_admin_ui_client_id` parameter (asanowa-specific, moved to project-specific configuration)
17
+ - Removed `cognito_user_pool_domain` parameter (OAuth flow specific, not needed for JWT verification)
18
+ - Removed `COGNITO_CLIENT_ID` environment variable from Records Lambda
19
+ - Removed `COGNITO_REGION` environment variable (redundant, extracted from user pool ID)
20
+ - Removed Admin UI Cognito parameters from Parameter Store module (asanowa-specific)
21
+
22
+ ### Migration Guide
23
+
24
+ If your project was using the removed parameters:
25
+
26
+ 1. **cognito_client_id**: Remove from module call. JWT verification now works without aud validation for better generalization.
27
+ 2. **cognito_admin_ui_client_id** and **cognito_user_pool_domain**: Move these to your project-specific Parameter Store configuration.
28
+ 3. **COGNITO_REGION**: No longer needed. Region is automatically extracted from `cognito_user_pool_id`.
29
+
30
+ ### What remains
31
+
32
+ - `cognito_user_pool_id`: Still required for JWT signature verification (JWKS endpoint construction)
33
+
10
34
  ## [0.7.5] - 2025-12-28
11
35
 
12
36
  ### Removed
@@ -1,5 +1,5 @@
1
- // @exabugs/dynamodb-client v0.7.5
2
- // Built: 2025-12-28T11:12:48.213Z
1
+ // @exabugs/dynamodb-client v0.8.0
2
+ // Built: 2025-12-28T12:59:33.043Z
3
3
  "use strict";
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exabugs/dynamodb-client",
3
- "version": "0.7.5",
3
+ "version": "0.8.0",
4
4
  "description": "DynamoDB Single-Table Client SDK with MongoDB-like API, Shadow Records, and Lambda implementation for serverless applications",
5
5
  "author": "exabugs",
6
6
  "license": "MIT",
package/terraform/main.tf CHANGED
@@ -116,8 +116,6 @@ resource "aws_lambda_function" "records" {
116
116
  REGION = var.region
117
117
  TABLE_NAME = var.dynamodb_table_name
118
118
  COGNITO_USER_POOL_ID = var.cognito_user_pool_id
119
- COGNITO_CLIENT_ID = var.cognito_client_id
120
- COGNITO_REGION = var.region
121
119
  LOG_LEVEL = var.log_level
122
120
  # シャドウ設定(環境変数ベース)
123
121
  SHADOW_CREATED_AT_FIELD = var.shadow_created_at_field
@@ -184,9 +182,7 @@ module "parameter_store" {
184
182
  records_function_arn = aws_lambda_function.records.arn
185
183
 
186
184
  # Cognito設定
187
- cognito_user_pool_id = var.cognito_user_pool_id
188
- cognito_admin_ui_client_id = var.cognito_admin_ui_client_id
189
- cognito_user_pool_domain = var.cognito_user_pool_domain
185
+ cognito_user_pool_id = var.cognito_user_pool_id
190
186
 
191
187
  # DynamoDB設定
192
188
  dynamodb_table_name = var.dynamodb_table_name
@@ -42,60 +42,6 @@ resource "aws_ssm_parameter" "lambda_records_function_arn" {
42
42
  }
43
43
  }
44
44
 
45
- # 外部参照用のパラメータ(実際の値を設定)
46
- # アプリケーション(Admin UI、Fetch Lambda等)がこれらの値を参照する
47
-
48
- # Cognito User Pool ID (Admin UI参照用)
49
- resource "aws_ssm_parameter" "app_admin_ui_cognito_user_pool_id" {
50
- name = "/${var.project_name}/${var.environment}/app/admin-ui/cognito-user-pool-id"
51
- type = local.parameter_type
52
- tier = local.parameter_tier
53
- value = var.cognito_user_pool_id
54
- overwrite = true
55
-
56
- description = "Cognito User Pool ID for Admin UI"
57
-
58
- tags = {
59
- Environment = var.environment
60
- ManagedBy = "terraform"
61
- Category = "app-config"
62
- }
63
- }
64
-
65
- # Cognito Client ID (Admin UI参照用)
66
- resource "aws_ssm_parameter" "app_admin_ui_cognito_client_id" {
67
- name = "/${var.project_name}/${var.environment}/app/admin-ui/cognito-client-id"
68
- type = local.parameter_type
69
- tier = local.parameter_tier
70
- value = var.cognito_admin_ui_client_id
71
- overwrite = true
72
-
73
- description = "Cognito Client ID for Admin UI"
74
-
75
- tags = {
76
- Environment = var.environment
77
- ManagedBy = "terraform"
78
- Category = "app-config"
79
- }
80
- }
81
-
82
- # Cognito Domain (Admin UI参照用)
83
- resource "aws_ssm_parameter" "app_admin_ui_cognito_domain" {
84
- name = "/${var.project_name}/${var.environment}/app/admin-ui/cognito-domain"
85
- type = local.parameter_type
86
- tier = local.parameter_tier
87
- value = "${var.cognito_user_pool_domain}.auth.${var.region}.amazoncognito.com"
88
- overwrite = true
89
-
90
- description = "Cognito Domain for Admin UI"
91
-
92
- tags = {
93
- Environment = var.environment
94
- ManagedBy = "terraform"
95
- Category = "app-config"
96
- }
97
- }
98
-
99
45
  # DynamoDB Table Name (外部参照用)
100
46
  resource "aws_ssm_parameter" "infra_dynamodb_table_name" {
101
47
  name = "/${var.project_name}/${var.environment}/infra/dynamodb-table-name"
@@ -30,16 +30,6 @@ variable "cognito_user_pool_id" {
30
30
  type = string
31
31
  }
32
32
 
33
- variable "cognito_admin_ui_client_id" {
34
- description = "Admin UI用Cognito User Pool Client ID"
35
- type = string
36
- }
37
-
38
- variable "cognito_user_pool_domain" {
39
- description = "Cognito User Pool Domain"
40
- type = string
41
- }
42
-
43
33
  variable "dynamodb_table_name" {
44
34
  description = "DynamoDB Table Name"
45
35
  type = string
@@ -30,21 +30,7 @@ variable "cognito_user_pool_id" {
30
30
  type = string
31
31
  }
32
32
 
33
- variable "cognito_client_id" {
34
- description = "Cognito App Client ID(オプション、指定時は aud を検証)"
35
- type = string
36
- default = ""
37
- }
38
33
 
39
- variable "cognito_user_pool_domain" {
40
- description = "Cognito User Pool Domain"
41
- type = string
42
- }
43
-
44
- variable "cognito_admin_ui_client_id" {
45
- description = "Admin UI用Cognito User Pool Client ID"
46
- type = string
47
- }
48
34
 
49
35
  variable "log_retention_days" {
50
36
  description = "CloudWatch Logsの保持期間(日数)"