-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: deprecate UserManagement, UserBase, OidcUserBase * fix: simplify WebDeployment custom resource building * feat: upgrade to TS 5.0 * fix: update pnpm-lock * fix: ts errors from stitches code; temporarily remove .d.ts declarations to resolve issues with stitches and TS 5.0 * fix: use tsx instead of ts-node
- Loading branch information
1 parent
5a5a9fc
commit 7af36c2
Showing
202 changed files
with
1,441 additions
and
1,333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"gboost-infra": minor | ||
--- | ||
|
||
Deprecate `UserManagement`, `UserBase`, and `OidcUserBase` because they're poor abstraction layers. User directory/pool infra is very custom and consuming developers will need to open source code to learn what's being abstracted. Recommend developers use AWS CDK's Cognito L3 constructs to setup user pools and identity providers if using Cognito and for user management developers can see `gboost create` auth template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"gboost-ui": minor | ||
--- | ||
|
||
Deprecate `UserManagement` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"gboost-common": minor | ||
"gboost-infra": minor | ||
"gboost-node": minor | ||
"gboost-ui": minor | ||
"gboost": minor | ||
--- | ||
|
||
Upgrade to TS 5.0 and enforce stricter configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Tips | ||
|
||
## JavaScript | ||
|
||
- Avoid `export * from "./some-file"`. It makes tracking down imported functions/classes difficult. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
export * from "./convert-case.js"; | ||
export * from "./user-management.js"; | ||
export * from "./merge-deep.js"; | ||
export * from "./get-error-message.js"; | ||
export { | ||
camelToKebab, | ||
camelToSnake, | ||
lowerToPascal, | ||
pascalToKebabCase, | ||
} from "./convert-case"; | ||
export { | ||
type CognitoGroup, | ||
type CognitoUser, | ||
CognitoUserStatus, | ||
CreateCognitoUser, | ||
type Filter, | ||
type ListUsersArgs, | ||
type ListUsersInGroupArgs, | ||
} from "./user-management"; | ||
export { mergeDeep } from "./merge-deep"; | ||
export { getErrorMessage } from "./get-error-message"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { fileURLToPath } from "node:url"; | ||
import { resolve } from "node:path"; | ||
import { build } from "esbuild"; | ||
|
||
interface BuildFunctionProps { | ||
/** | ||
* Path relative to gboost-infra/src | ||
*/ | ||
entryPointPath: string; | ||
/** | ||
* Path relative to gboost-infra/lib | ||
*/ | ||
outFilePath: string; | ||
} | ||
|
||
const thisFilePath = fileURLToPath(import.meta.url); | ||
const libDir = resolve(thisFilePath, "../../lib"); | ||
const srcDir = resolve(thisFilePath, "../../src"); | ||
|
||
/** | ||
* We need a separate build step for building functions used in custom resources | ||
* because `tsc` (used to "build" other source code in gboost-infra) only converts | ||
* from .ts to .js, it doesn't transpile and minify so we use esbuild. | ||
*/ | ||
export async function buildFunction(params: BuildFunctionProps) { | ||
return build({ | ||
entryPoints: [resolve(srcDir, params.entryPointPath)], | ||
bundle: true, | ||
external: ["@aws-sdk/*"], | ||
outfile: resolve(libDir, params.outFilePath), | ||
platform: "node", | ||
target: "node18", | ||
minify: true, | ||
format: "esm", | ||
sourcemap: true, | ||
banner: { | ||
js: `import module from 'module';if (typeof globalThis.require === "undefined"){globalThis.require = module.createRequire(import.meta.url);}`, | ||
}, | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from "./gov-cloud-compat.js"; | ||
export * from "./suppress-nags/suppress-nags.js"; | ||
export * from "./suppress-nags/suppression.js"; | ||
export { GovCloudCompat } from "./gov-cloud-compat.js"; | ||
export { SuppressNags } from "./suppress-nags/suppress-nags.js"; | ||
export { Suppression } from "./suppress-nags/suppression.js"; |
16 changes: 8 additions & 8 deletions
16
packages/gboost-infra/src/aspects/suppress-nags/suppress-nags.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.