Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

declapract-typescript-ehmpathy

ehmpathy730MIT0.39.9TypeScript support: included

declapract best practices declarations for typescript

readme

declapract-typescript-ehmpathy

declapract = declared best practices

this repo contains the ehmpathy org's declared best practices for typescript, for usage with declapract

usage

  1. add declapract to your repo

    npm install --save-dev declapract
  2. add a declapract usage config to your repo

    # declapract.use.yml
    declarations: npm:declapract-typescript-ehmpathy
    useCase: lambda-service # specify which use case your repo is following, see `declapract-typescript-ehmpathy:src/useCases.yml` for options
    variables: # specify the values of the variables to use against checks
    organizationName: 'awesome-org'
    projectName: 'svc-awesome-thing'
    infrastructureNamespaceId: 'abcde12345'
    slackReleaseWebHook: 'https://...'
  3. clone a declared best practices example, do bootstrap a new repo

    declapract clone lambda-service-with-rds # bootstrap a new lambda-service-with-rds repo
  4. check that your repo is conforming to best practices

    declapract check
  5. fix a specific practice that your repo is failing to conform to (if it has an automatic fix declared)

    declapract fix --practice dates-and-times # e.g., apply a fix for the the dates-and-times practice

changelog

Changelog

0.39.9 (2025-07-05)

Bug Fixes

0.39.8 (2025-07-05)

Bug Fixes

  • audit: bump deps to eliminate audit concerns (94b934e)

0.39.7 (2025-06-25)

Bug Fixes

  • license: add license to packages (fef5d36)

0.39.6 (2025-06-25)

Bug Fixes

  • deps: bump to simpler log package name (2ed3423)
  • pkg: add license (784492c)

0.39.5 (2025-06-23)

Bug Fixes

  • cicd: bump github runners to ubuntu 24.04 (7c131d2)

0.39.4 (2025-02-24)

Bug Fixes

  • jest: ensure isauthed declaration doesnt cause init errors (b888de2)

0.39.3 (2024-12-27)

Bug Fixes

  • tests: fail fast on missed creds for acceptance tests (c4869d4)

0.39.2 (2024-12-27)

Bug Fixes

  • deps: bump dao generator version (6461959)

0.39.1 (2024-12-27)

Bug Fixes

  • config: drop get queue url in favor of simple-async-tasks version (68cd124)

0.39.0 (2024-12-26)

Features

  • config: expose util for standard cache directory per config (cab8bae)

0.38.0 (2024-12-26)

Features

  • config: expose util for standard queue url per async task (2b54138)

0.37.7 (2024-12-26)

Bug Fixes

  • pkg: update depcheckr per missed dep (e7bec48)
  • tests: fail fast on missed creds for integration tests (b0ea4ae)

0.37.6 (2024-12-26)

Bug Fixes

  • deps: bump from error-fns to helpful-errors (93ad4e1)

0.37.5 (2024-12-12)

Bug Fixes

  • deps: bump visualogic dep; contexts++ (544d725)

0.37.4 (2024-12-12)

Bug Fixes

  • cicd: ensure terraform is provisioned for test-lint (ca837cc)

0.37.3 (2024-11-25)

Bug Fixes

  • deps: bump error-fns dep for observability++ (cdffb8e)
  • lint: unblock default inputs for input via context args (4f1c9e3)
  • sls: add permissions for athena queries against glue tables (37336a4)
  • sls: enable publication to kinesis firehose namespaced by the service (555f923)

0.37.2 (2024-09-16)

Bug Fixes

0.37.1 (2024-09-16)

Bug Fixes

  • db: expose database context from with database connection (8a95457)
  • db: expose types of rows on dbConnection.query (c6cef7e)

0.37.0 (2024-09-16)

Features

  • env: expose env .access, .server, .region (d653a07)

0.36.5 (2024-09-11)

Bug Fixes

  • expo: improve react native expo deployments (d72788c)

0.36.4 (2024-09-05)

Bug Fixes

  • expo: remove copypasta from aws-account-id choice (ed2aad9)

0.36.3 (2024-09-05)

Bug Fixes

  • expo: drop extra apostrophe on web bucket config (c2ebf48)
  • expo: wait on dev builds to get qr code (3619c36)

0.36.2 (2024-09-05)

Bug Fixes

  • expo: use dev access secrets for test and dev (2f2552a)

0.36.1 (2024-09-05)

Bug Fixes

  • expo: enable dev deployments on demand (75f337b)

0.36.0 (2024-09-05)

Features

  • expo: declare react native expo usecase and practices (b3f703b)

0.35.10 (2024-09-03)

Bug Fixes

  • tf: split terraform common, aws, and github (5c1de7a)

0.35.9 (2024-09-03)

Bug Fixes

  • deps: bump per npm audit (8d00aed)
  • docs: correct url on readme (7bc8de3)

0.35.8 (2024-09-03)

Bug Fixes

  • deps: further soften peerdep (44e7e98)

0.35.7 (2024-09-03)

Bug Fixes

  • deps: soften peer dependency version (ff42947)

0.35.6 (2024-09-01)

Bug Fixes

  • tests: ensure ts-node min 10.9.2 to prevent jest issues (13e0d8c)

0.35.5 (2024-08-19)

Bug Fixes

  • deps: bump min sql schema deps (18c07f1)

0.35.4 (2024-08-03)

Bug Fixes

  • packages: remove some service usecase practices from package usecase (0c3d42f)

0.35.3 (2024-08-03)

Bug Fixes

  • deps: bump min version of visualogic (343fe39)

0.35.2 (2024-08-03)

Bug Fixes

  • cicd: use docker compose v2 to unblock github actions builds (9ab2665)

0.35.1 (2024-08-03)

Bug Fixes

  • env: override tz instead of throw, for initial safety (988b41a)

0.35.0 (2024-08-01)

Features

  • config: declare org, project, env, and aws on config (db74e3c)

0.34.0 (2024-08-01)

Features

  • cicd: alert on deploy.prod.assure failure (78720d0)

Bug Fixes

  • cmd: drop unsued imports from sayHello example (167b520)
  • deps: bump schema control min version (37353c4)

0.33.15 (2024-07-28)

Bug Fixes

  • sls: ensure TZ:UTC envvar automatically fixed on sls (8b2d336)

0.33.14 (2024-07-28)

Bug Fixes

  • rds: expose withExpectOutput and findByRef on daos (c08ea74)

0.33.13 (2024-07-27)

Bug Fixes

  • husky: pause nvm check hook (5a60dd8)
  • rds: database context comment (5dbc141)

0.33.12 (2024-07-27)

Bug Fixes

  • deps: bump to latest best (67f7d48)
  • husky: auto add executable to husky on install (9a220c4)

0.33.11 (2024-07-27)

Bug Fixes

  • deps: resolve copypasta deps combination (95cf73b)
  • nvm: post-checkout instead of post-rewrite (ae45ba8)

0.33.10 (2024-07-27)

Bug Fixes

  • tests: ensure to FORCE_COLOR on test outputs for consistent snapshots (7e43647)

0.33.9 (2024-07-27)

Bug Fixes

  • cicd: cache@v4 to resolve 2min cleanup postcache (f67d805)

0.33.8 (2024-07-27)

Bug Fixes

  • deps: bump to latest best (c9ccb8e)

0.33.7 (2024-07-27)

Bug Fixes

  • deps: bump deps to latest best (d29c962)

0.33.6 (2024-07-27)

Bug Fixes

  • git: restore safe gitignore update (8a6bdcf)

0.33.5 (2024-07-27)

Bug Fixes

  • nvm: use.nvm on git.pull (1136af3)

0.33.4 (2024-07-27)

Bug Fixes

  • audit: bump deps per audit (159ca43)
  • deps: bump best practice dep versions (2ca1ec4)

0.33.3 (2024-07-27)

Bug Fixes

  • pkg: ensure best practice for license for packages is consistent (35e98ed)

0.33.2 (2024-07-26)

Bug Fixes

  • cicd: ensure to wait for install to succeed (e9b9368)

0.33.1 (2024-07-26)

Bug Fixes

0.33.0 (2024-07-26)

Features

  • cmds: add as-commands based best practice for commands (fe4abe2)

Bug Fixes

  • cmds: add to lambda-service usecase the commands practice (26a4d6e)

0.32.0 (2024-07-26)

Features

  • tz: ensure a pit of success with failfast on unexpected timezones (506806c)

Bug Fixes

  • deps: bump deps versions (c8f1165)

0.31.11 (2024-07-14)

Bug Fixes

  • cicd: stablize the node-modules dependencies hash (b3f044b)
  • eslint: ensure dobjs declaration not flagged (76ca30f)

0.31.10 (2024-07-14)

Bug Fixes

  • git: auto ignore package-lock.json from local git diff reports (4c842ae)

0.31.9 (2024-07-14)

Bug Fixes

  • dbconn: use context based dbconn transactions, per procedure-fns standard (6d2d436)

0.31.8 (2024-05-26)

Bug Fixes

  • pkg: specify generate.dao.postgres to differ from .dynamodb (e73b1ce)

0.31.7 (2024-05-26)

Bug Fixes

  • sls: add athena query s3 bucket permissions (382ca70)

0.31.6 (2024-05-25)

Bug Fixes

  • ts-jest: prevent issue with typescript v5.3 via tsnode update (e524add)

0.31.5 (2024-05-11)

Bug Fixes

  • ts: upgrade typescript version to v5.4.5 (bc91bc7)

0.31.4 (2024-05-11)

Bug Fixes

  • cicd: enable prod deploy from branches on dispatch (3d481b0)
  • sls: ensure lambdas have access to list bucket objects in namespaced s3 bucket (4e7f61d)

0.31.3 (2024-04-26)

Bug Fixes

  • deps: bump min dynamodb-dao-gen dependency (051f5ce)
  • gitignore: check in yalc.lock to show when replacements are expected (b4c2ae7)

0.31.2 (2024-04-24)

Bug Fixes

0.31.1 (2024-04-23)

Bug Fixes

  • cicd: upgrade deploy dispatch gh action usability (6ca3ed8)

0.31.0 (2024-04-20)

Features

  • context: add withDatabaseContext method to begin support of contexts (2f92c64)

0.30.3 (2024-04-20)

Bug Fixes

  • cicd: remove unhelpful yet problem-prone setup-node cache specifier (c954549)
  • db: support wrapping fns with multiple parameters withDatabaseConnection (d7462d5)

0.30.2 (2023-11-17)

Bug Fixes

  • sls: bump default timeout to 60 sec for reslilience (4aa9e0b)

0.30.1 (2023-11-05)

Bug Fixes

  • tf: ignore homepage_url changes on github_repository (5cdf9d6)

0.30.0 (2023-10-30)

Features

  • cicd: add workflow-dispatch to deploy (#98) (52b462f)

0.29.2 (2023-10-29)

Bug Fixes

  • sls: ensure plugins dont have unnessesary newline (2ba1d74)

0.29.1 (2023-10-29)

Bug Fixes

  • sls: automatically fix missing prune plugin (6504e92)

0.29.0 (2023-09-23)

Features

  • yalc: support yalc in gitignore and husky precommit check (b150337)

0.28.2 (2023-09-17)

Bug Fixes

  • cicd: unit and integration test only --changedSince=main by default (af77cf0)

0.28.1 (2023-09-16)

Bug Fixes

  • deps: bump test-fns version (6bdf19a)

0.28.0 (2023-09-16)

Features

  • standards: use error-fns, test-fns, and bump simple-lambda-handlers (65bd0c1)

0.27.2 (2023-09-15)

Bug Fixes

  • jest: ensure jest env identifies reports correct test type in env assert (d03ffed)

0.27.1 (2023-09-05)

Bug Fixes

  • cicd: ensure pullreq-title requirement identified correctly (6568d18)
  • depcheck: remove serverless-prune-plugin from ignore as it doesnt flag when used (6a0d585)

0.27.0 (2023-09-01)

Features

  • tests: ensure that tests run in utc for reliability (720d7d0)

Bug Fixes

  • cicd: review pullrequest title against commitlint (4ef35d7)
  • sls: ensure services have privs to delete from their dynamodb tables (856863f)

0.26.0 (2023-08-07)

Features

  • artifacts: use simple-artifact-builder to create deployment artifact (#25) (b880f1d)
  • checks: add checks that prevent failures in upgrades; also, improve existing checks (94c8675)
  • cicd: add account id checks; fix deploy on prod; improve release commit message; add withDbTxn wrapper (21fc495)
  • cicd: cancel running ci jobs when pr is updated (90a6848)
  • cicd: enable specifying a custom github actions runner (aea0fb8)
  • cicd: improve speed of cicd by leveraging setup-node ~/.npm caching (b299b2e)
  • cicd: increase speed of cicd with better npm caching (acae886)
  • cicd: provision aws, github, sql-schema w/ gh-actions (11cbc9d)
  • cicd: publish on tag, test on commit; also, update prettier practices (d1e8cd7)
  • cicd: speed up deployments by leveraging reusable parallelized test workflow (11cbc9d)
  • cicd: upgrade to using the more stable v3 of please-release plugin (3a37c77)
  • conventional-commits: add conventional commits flow to best practices (df8c0b0)
  • deps: upgrade to using type-fns instead of simple-type-guards (f0a1a80)
  • dynamodb: add dynamodb-dao-generator to dyanmodb peristance usecase (79afdca)
  • dynamodb: support docker provisioned dynamodb local for test env (#28) (01a96f5)
  • errors: add unexpected code path error util (f250aa0)
  • fixes: fine tune practices and add fixes to remaining checks (dcb7a7c)
  • fmt: add terraform format; improve some more existing checks and fixes (fa14120)
  • github: add github provisions (fe3ec20)
  • init: define initial set of best-practices (66284e3)
  • jest: upgrade jest deps to latest (2eeeea0)
  • json: update to declapractv0.2 to make json checks easier to write, and failures easier to read (84d4213)
  • linting: add depcheck to linting process (5e34e0b)
  • nonpublished-modules: autofix common deprecated nonpublished modules (standard-lambda-handlers, deep-omit) (6fa8935)
  • packagejson: enforce package json key relative orders; also, upgrade to leverage automatic json additions fix of declapract (632c562)
  • practices: add config account check, add lambda-clients check, and fix persist-with-rds practice and tf practice (684e095)
  • prettier: auto sort imports w/ prettier (e94554e)
  • rds: add provision:schema:sync command to persist-with-rds practice scripts (382e7d3)
  • runtime-type-checking: autofix old joi .valid format (fb1a25d)
  • s3: support service-scoped s3 namespace and permissions (886a869)
  • sls: add pruning to sls deployments (21e4f78)
  • terraform: encrypt terraform backends; also, improve fixes for bad practices and best practices (341a4d6)
  • tf: expose aws account id and aws region as tf locals (2d9efa3)
  • typescript: upgrade typescript version and config (fbf2152)
  • usecases: expose the npm-package and typescript-project usecases (70e37d2)
  • usecases: support the nextjs web app use case (4351a38)
  • uuid: make it easier to import uuid util w/ deps.ts (095cac6)

Bug Fixes

  • artifact: bump simple-artifact-builder version to avoid node fs.rmdir dep warning (c45cac9)
  • audit: bump conv-commits cli to resolve audit (2106afb)
  • bad-practice: fix the deep-omit nonpublished module badpractice autofix (4aeb1e4)
  • cicd-package: ensure publish-on-tag workflows are removed via bad practice (aa708d0)
  • cicd: add concurrency group cancelation to prevent redundant actions (0272093)
  • cicd: bump declapract version in order to compile (4173b66)
  • cicd: call integration-test-db --if-present (5357d71)
  • cicd: define test:commit and test:integration (d033b05)
  • cicd: dont duplicate test runs on deployments (11cbc9d)
  • cicd: drop old github actions workflows as bad practice (b786956)
  • cicd: ensure npm-package doesnt reference aws creds (2ccf0e3)
  • cicd: ensure package publish also uses npm cache (e689dff)
  • cicd: ensure package-lock is in sync with package json (ac1a6bf)
  • cicd: ensure release message has sufficient whitespace (98fb896)
  • cicd: ensure sql-schema-control actions also use cached npm (c486d00)
  • cicd: ensure terraform plan uses detailed exitcode in ghactions (7f86b8d)
  • cicd: ensure tests are run with FORCE_COLOR for snapshot consistency (c964068)
  • cicd: ensure that github actions test and deploy with node version specified in nvmrc (d527475)
  • cicd: ensure that plans output evaluated changes required correctly (940b020)
  • cicd: ensure the workspace name for packages is publish-on-tag (983913d)
  • cicd: fix deployment by upgrading publish-on-tag workflow (51198d0)
  • cicd: fix publish on tag (66691ec)
  • cicd: fix publish on tag (4cd6ae6)
  • cicd: fix publish on tag (967edc4)
  • cicd: mark publish-on-tag workflow as bad practice (070daa3)
  • cicd: reference the npm token from secrets correctly (16e79c6)
  • cicd: remove custom github runners feature, for better consistency (98e20bf)
  • cicd: remove deploy-dev-on-main workflow w/ bad practice def (0ef7480)
  • cicd: remove some service specific things from test-on-commit workflow (04f8fcd)
  • cicd: update packagelock to unblock cicd (937ca17)
  • cicd: upgrade node actions to use npm caching (31c3c79)
  • ci: ensure that test:types will not fail on declaration file errors, since we expect missing imports there (0c3138b)
  • ci: ensure that we throw an error if tf detects a change required for github repo (8c5e97f)
  • comments: update comments in the test env files for readability (1e59061)
  • commitlint: allow headerlength to expand to 140 (bbd178f)
  • commits: ensure test:commits handles case where no tags have been created yet (2a04dac)
  • config: add checks and fixes for using old config path (f09e818)
  • config: ensure aws parameterstore namespace uses tf local.service name variable instead of hardcoding (b99695c)
  • config: fix parameter store namespace defiend in tf (223bdcb)
  • config: sort imports in practice config (f7aaa34)
  • db-query: add additional observability to errors thrown while querying db (3a193e5)
  • decs: fine tune declarations to match lambda-services currently existing (81d9c4a)
  • dep: bump min version required of simple-lambda-testing-handler (a298a34)
  • deploy: ensure that package.json deploy script is not removed (4ee1eb7)
  • deploy: ensure that sls deployments have if-env dependency (7638b46)
  • deploy: exit with appropriate error code on deploy commands (8a6d382)
  • deps: add back lodash types in dev deps (c44a735)
  • deps: add flat to the deps of the pkg (fd988cc)
  • deps: bump declapract peer dep version minimum (d8142a6)
  • deps: bump declapract to latest (e1b2ac8)
  • deps: bump declapract version to remove vulnerabilities (875da72)
  • deps: bump deps (95b6b8a)
  • deps: bump min simple-artifact-builder version to avoid bug (d443688)
  • deps: bump min simple-artifact-builder version to rm sec vulns (af0d809)
  • deps: bump min version of simple-type-guards (8bb0b29)
  • deps: bump min version of sql-code-generator (03d7bc7)
  • deps: bump simple-artifact-builder version (ad4800d)
  • deps: bump simple-lambda-testing-methods dep version (1bf9eb7)
  • deps: bump versions of deps to make more reliable (334c4c1)
  • deps: drop dependency on dynamodb-dao-generator (5586fbb)
  • deps: drop uuidv4, use uuid instead; community converged (a50f527)
  • deps: ensure uuid is v9 and old module name is a bad practice (15ed76e)
  • deps: make declapract a peer dependency (de507d3)
  • deps: remove unneeded package dependencies (89f3373)
  • deps: remove unused dependencies from generated best practice checks (37e1a09)
  • deps: update packagelock post manual package.json update (aef9510)
  • deps: upgrade min ver of simple-lambda-testing-methods to 0.2.1 (3f10be4)
  • deps: upgrade peer deps to declapract@0.11.2 (772a048)
  • deps: upgrade type-fns version to resolve sec vulns (6b27dae)
  • domain: bump domain-objects version (597708a)
  • dynamodb: ensure to provision integration-test-db correctly (53f633d)
  • dynamodb: remove dynamodb local endpoint from default test setup (70d0127)
  • envi: check that stage isOfStage before return (30dbc66)
  • envs: change DEPLOYMENT_STAGE envvar to just STAGE (ed707be)
  • env: SERVERLESS_STAGE -> DEPLOYMENT_ENV (b6f9b33)
  • errors: drop extra closing bracket from error message (521e012)
  • eslint: remove typo from eslint config (7a3f9af)
  • eslint: upgrade eslint deps to latest (5e82cf7)
  • finetune some declarations, also prepare for publishing (c320930)
  • fix some custom check fns defined with old format (f099ee4)
  • formatting (599c50d)
  • formatting: use prettier import sort in defs to make sure all best practices have correct formatting (ef25ae0)
  • github: enable repos to automerge prs (53606b9)
  • github: ensure suite/install is required before merging (08156bf)
  • github: ensure that we use github tf provider 4.19.1 for auto-merge support (ca6db9a)
  • husky: ensure husky hooks are installed correctly (69298ca)
  • husky: ensure husky postinstall only executed for direct installs (af5b2df)
  • husky: ensure to exit 0 after skipping husky install (12d3324)
  • husky: set husky commands as executable (262393a)
  • improve typing on withDatabaseTransaction; remove soon to be deprecated -v flag for sls deploy (af7567b)
  • jest: upgrade jest config fix its relationship to tsconfig (d7f73fe)
  • lint: add explicit module boundary checks (8042852)
  • lint: add if-env package to the ignored dependencies (734efa2)
  • linting: add tslint bad practice (5bf00a1)
  • linting: ensure depchecks have all standard deps excluded and lint script syntax runs (fa3752c)
  • linting: ensure that lines-between-class-members is off (0c1a875)
  • linting: ensure to remove tslint package deps in badpractice too (2a9eeb9)
  • linting: ensure typescript compiler does not try to lint for us (c3dc190)
  • logger: bump best version of logger, to fix logs in aws-lambda env (8d2700c)
  • npm-package: ensure that npm packages are not marked as private (b9806f8)
  • npm-packages: split out environment vs environment-aws (07b9ab1)
  • order: pin test:lint:deps and :eslint order in package.json (6175ea1)
  • packages: add node registry url to packages to ensure they are publishable (7bbcb87)
  • pkg: add back the registry-url parameter to package-publish (a74b7b7)
  • pkg: add mit license to node-package best practices (f4f7629)
  • pkg: change pkg name to suffix with org name (cbb0f16)
  • pkg: ensure that cicd-package guarantees prepublish is defined (0c28e38)
  • pkg: ensure to build before publishing package (e33a906)
  • pkg: publish node packages with provenance and public access (cc3d5e1)
  • pkg: publish node packages without provenance (2928f15)
  • pkg: publish the dist dir in the package (cd12b89)
  • pkg: use declapract compilation to support publishing (36f76e3)
  • practs: bump best practs for faster cicd (b97b47e)
  • rds: bump versions of sql-*-generators and sql-schema-control (6c1d2e6)
  • rds: ensure datalake user can be created; also, make sure cicd user pwd is automatically pulled in (beef648)
  • rds: ensure docker integration test db is not blocked by other dbs (73b612e)
  • rds: ensure integration test directory prepared correctly (7635360)
  • rds: ensure packagejson scripts reference new docker integration-test-db location (7f01772)
  • rds: ensure schema and types-from-sql generate run fix:format (b9fda34)
  • rds: remove old integration test directory bad practice (7635360)
  • rds: remove syntax error in deploy.database.sh script (7290cd9)
  • readme: add a quick description of declapract to top of readme (13be5b8)
  • refs: replace uladkasach repo refs to ehmpathy repo refs (9f104f4)
  • release: CHANGELOG.md -> changelog.md (4db1413)
  • sls: allow read+write to global infra domain-driven cache (9638a29)
  • sls: be more explicit with the sls deploy flags (f1f7ddb)
  • sls: ensure services have perms to read/write their namespaced sqs queues, dynamodb tables, and sns topics (2e0ada3)
  • sls: improve comments and remove redundant quotes (f039fa2)
  • sls: improve sls.yml fix (f2607d3)
  • sls: remove region and account from s3 resource permissions (89b51ac)
  • sls: revert sls wildcard resource format change (b84a830)
  • sorts: add two linting subscripts to package-json-order practice (dfe4960)
  • src: add scripts directory as bad practice; prefer commands dir (d61c4b0)
  • terraform: ensure github tf provider is pinned to minor viersion (14526d0)
  • terraform: ensure theres not a permadiff on product/variables.tf (6e630f4)
  • test: finish removing env dependency from testing (61a771d)
  • test: fix failing unit test after name change (1ce766e)
  • testing: add fix to another variant of old acceptance test utils (ff9b0fb)
  • testing: detect and fix another acceptance test bad practice (c2c6c20)
  • testing: dont attempt to transform js files with ts-jest (b980fd6)
  • testing: enable passing with no acceptance tests (0c6d146)
  • testing: ensure tests against nontest stage are guarded against better (4053c58)
  • testing: ensure that ts-node is installed for jest.config.ts support (2df98ee)
  • testing: remove --coverage flag from unit and integration tests (f849b2a)
  • test: remove dependency of env from testing (6ceb9e1)
  • test: remove env dependency from int tests (314637b)
  • tests: allow user to say I_KNOW_WHAT_IM_DOING to run int tests in other envs (e62bb3a)
  • tests: ensure local acceptance tests are verbose and run in band (253f334)
  • tests: remove unnessesary snapshot (e32802d)
  • tests: resolve linting issues that were blocking tests (9e1bdc4)
  • tests: update test env setup files for stage safety and lint ignores (84e12ac)
  • tf-gh: add linear-history branch protection rule to main branch (c210de8)
  • tf: bump tf version to 3.74.3 (9950081)
  • ts: test_utils directories should not be compiled in build (787e39c)
  • tsc: remove exclusion of .declapract dir from tsc (4f70c7d)
  • ts: ensure packages emit type declarations in dist (f71e2ad)
  • ts: gitignore tsbuildinfo (a794ea9)
  • ts: remove exact optional property types requirement (83d28fb)
  • typescript: ensure declarations emitted only for packages (beba7cc)
  • typescript: remove the noPropertyAccessFromIndexSignature method (a4083c1)
  • typescript: set importsNotUsedAsValues to false due to preference (6ed623e)
  • usecase: ensure build:artifact only attempted if project uses artifact practice (74882eb)
  • usecase: ensure dependent practices are context aware for npm-package (e43d850)
  • usecase: ensure node package doesnt break on tf dependency of format (e82ad1b)
  • usecases: ensure testing and artifact usecases are exposed for lambda-service-with-rds (39fa430)
  • utils: enable withDatabaseConnection wrapper to optionally take in a dbConnection (60de828)
  • uuid: ensure that the uuid bad practice catches cases more generally (759e713)
  • uuid: ensure uuidv4 package is used (ed91b8e)
  • uuid: fix uuid bad-practices declaration name (0913821)

0.25.8 (2023-08-07)

Bug Fixes

  • pkg: publish node packages with provenance and public access (cc3d5e1)
  • pkg: publish node packages without provenance (2928f15)

0.25.7 (2023-08-06)

Bug Fixes

  • pkg: add mit license to node-package best practices (f4f7629)

0.25.6 (2023-08-01)

Bug Fixes

  • husky: ensure to exit 0 after skipping husky install (12d3324)

0.25.5 (2023-08-01)

Bug Fixes

  • husky: ensure husky postinstall only executed for direct installs (af5b2df)

0.25.4 (2023-07-31)

Bug Fixes

  • audit: bump conv-commits cli to resolve audit (2106afb)
  • husky: set husky commands as executable (262393a)
  • practs: bump best practs for faster cicd (b97b47e)

0.25.3 (2023-07-31)

Bug Fixes

  • cicd: add concurrency group cancelation to prevent redundant actions (0272093)
  • husky: ensure husky hooks are installed correctly (69298ca)
  • lint: add explicit module boundary checks (8042852)
  • src: add scripts directory as bad practice; prefer commands dir (d61c4b0)
  • tests: remove unnessesary snapshot (e32802d)

0.25.2 (2023-07-28)

Bug Fixes

  • cicd-package: ensure publish-on-tag workflows are removed via bad practice (aa708d0)
  • testing: ensure tests against nontest stage are guarded against better (4053c58)

0.25.1 (2023-07-28)

Bug Fixes

  • deps: drop dependency on dynamodb-dao-generator (5586fbb)

0.25.0 (2023-07-28)

Features

  • sls: add pruning to sls deployments (21e4f78)

Bug Fixes

  • cicd: ensure package publish also uses npm cache (e689dff)
  • cicd: ensure sql-schema-control actions also use cached npm (c486d00)
  • errors: drop extra closing bracket from error message (521e012)
  • pkg: add back the registry-url parameter to package-publish (a74b7b7)
  • pkg: ensure that cicd-package guarantees prepublish is defined (0c28e38)
  • pkg: ensure to build before publishing package (e33a906)

0.24.0 (2023-07-25)

Features

  • cicd: increase speed of cicd with better npm caching (acae886)

0.23.8 (2023-07-16)

Bug Fixes

  • cicd: mark publish-on-tag workflow as bad practice (070daa3)
  • envi: check that stage isOfStage before return (30dbc66)
  • ts: gitignore tsbuildinfo (a794ea9)

0.23.7 (2023-07-16)

Bug Fixes

  • test: remove env dependency from int tests (314637b)

0.23.6 (2023-07-16)

Bug Fixes

  • cicd: reference the npm token from secrets correctly (16e79c6)

0.23.5 (2023-07-16)

Bug Fixes

  • test: finish removing env dependency from testing (61a771d)

0.23.4 (2023-07-16)

Bug Fixes

  • cicd: call integration-test-db --if-present (5357d71)
  • test: remove dependency of env from testing (6ceb9e1)

0.23.3 (2023-07-16)

Bug Fixes

  • usecase: ensure build:artifact only attempted if project uses artifact practice (74882eb)

0.23.2 (2023-07-16)

Bug Fixes

0.23.1 (2023-07-16)

Bug Fixes

  • usecase: ensure dependent practices are context aware for npm-package (e43d850)
  • usecase: ensure node package doesnt break on tf dependency of format (e82ad1b)

0.23.0 (2023-07-15)

Features

  • tf: expose aws account id and aws region as tf locals (2d9efa3)

Bug Fixes

  • cicd: ensure npm-package doesnt reference aws creds (2ccf0e3)

0.22.8 (2023-05-27)

Bug Fixes

  • cicd: upgrade node actions to use npm caching (31c3c79)
  • lint: add if-env package to the ignored dependencies (734efa2)

0.22.7 (2023-05-25)

Bug Fixes

  • cicd: remove deploy-dev-on-main workflow w/ bad practice def (0ef7480)

0.22.6 (2023-05-25)

Bug Fixes

  • deploy: ensure that sls deployments have if-env dependency (7638b46)
  • deploy: exit with appropriate error code on deploy commands (8a6d382)

0.22.5 (2023-05-25)

Bug Fixes

  • order: pin test:lint:deps and :eslint order in package.json (6175ea1)

0.22.4 (2023-05-25)

Bug Fixes

  • cicd: drop old github actions workflows as bad practice (b786956)

0.22.3 (2023-05-25)

Bug Fixes

  • deploy: ensure that package.json deploy script is not removed (4ee1eb7)

0.22.2 (2023-05-24)

Bug Fixes

  • cicd: ensure terraform plan uses detailed exitcode in ghactions (7f86b8d)
  • dynamodb: remove dynamodb local endpoint from default test setup (70d0127)
  • ts: remove exact optional property types requirement (83d28fb)

0.22.1 (2023-05-24)

Bug Fixes

  • cicd: ensure that plans output evaluated changes required correctly (940b020)
  • rds: ensure integration test directory prepared correctly (7635360)
  • rds: remove old integration test directory bad practice (7635360)

0.22.0 (2023-05-23)

Features

  • cicd: provision aws, github, sql-schema w/ gh-actions (11cbc9d)
  • cicd: speed up deployments by leveraging reusable parallelized test workflow (11cbc9d)

Bug Fixes

  • cicd: dont duplicate test runs on deployments (11cbc9d)
  • deps: add flat to the deps of the pkg (fd988cc)
  • deps: bump versions of deps to make more reliable (334c4c1)
  • rds: ensure schema and types-from-sql generate run fix:format (b9fda34)

0.21.2 (2023-05-21)

Bug Fixes

  • deps: bump simple-lambda-testing-methods dep version (1bf9eb7)
  • rds: ensure docker integration test db is not blocked by other dbs (73b612e)
  • utils: enable withDatabaseConnection wrapper to optionally take in a dbConnection (60de828)

0.21.1 (2023-03-03)

Bug Fixes

  • tf-gh: add linear-history branch protection rule to main branch (c210de8)

0.21.0 (2023-02-28)

Features

  • dynamodb: add dynamodb-dao-generator to dyanmodb peristance usecase (79afdca)

Bug Fixes

  • cicd: ensure the workspace name for packages is publish-on-tag (983913d)
  • dynamodb: ensure to provision integration-test-db correctly (53f633d)
  • ts: test_utils directories should not be compiled in build (787e39c)

0.20.14 (2023-02-17)

Bug Fixes

  • deps: bump min simple-artifact-builder version to avoid bug (d443688)

0.20.13 (2023-02-16)

Bug Fixes

  • deps: bump min simple-artifact-builder version to rm sec vulns (af0d809)
  • deps: upgrade type-fns version to resolve sec vulns (6b27dae)
  • sorts: add two linting subscripts to package-json-order practice (dfe4960)

0.20.12 (2023-02-16)

Bug Fixes

  • linting: ensure typescript compiler does not try to lint for us (c3dc190)

0.20.11 (2023-02-16)

Bug Fixes

  • cicd: ensure package-lock is in sync with package json (ac1a6bf)

0.20.10 (2023-02-16)

Bug Fixes

  • deps: bump declapract peer dep version minimum (d8142a6)
  • rds: remove syntax error in deploy.database.sh script (7290cd9)

0.20.9 (2023-02-16)

Bug Fixes

  • deps: remove unused dependencies from generated best practice checks (37e1a09)

0.20.8 (2023-02-13)

Bug Fixes

  • rds: ensure datalake user can be created; also, make sure cicd user pwd is automatically pulled in (beef648)

0.20.7 (2023-02-12)

Bug Fixes

  • rds: bump versions of sql-*-generators and sql-schema-control (6c1d2e6)

0.20.6 (2023-02-12)

Bug Fixes

  • testing: remove --coverage flag from unit and integration tests (f849b2a)

0.20.5 (2023-02-12)

Bug Fixes

  • linting: ensure depchecks have all standard deps excluded and lint script syntax runs (fa3752c)

0.20.4 (2023-02-12)

Bug Fixes

  • deps: make declapract a peer dependency (de507d3)

0.20.3 (2023-02-12)

Bug Fixes

  • deps: add back lodash types in dev deps (c44a735)

0.20.2 (2023-02-10)

Bug Fixes

  • cicd: bump declapract version in order to compile (4173b66)

0.20.1 (2023-02-10)

Bug Fixes

  • deps: bump declapract version to remove vulnerabilities (875da72)
  • npm-package: ensure that npm packages are not marked as private (b9806f8)
  • ts: ensure packages emit type declarations in dist (f71e2ad)

0.20.0 (2023-02-10)

Features

  • linting: add depcheck to linting process (5e34e0b)

0.19.3 (2023-02-10)

Bug Fixes

  • cicd: ensure tests are run with FORCE_COLOR for snapshot consistency (c964068)
  • linting: ensure to remove tslint package deps in badpractice too (2a9eeb9)

0.19.2 (2023-02-10)

Bug Fixes

  • deps: remove unneeded package dependencies (89f3373)
  • linting: add tslint bad practice (5bf00a1)

0.19.1 (2023-02-10)

Bug Fixes

  • envs: change DEPLOYMENT_STAGE envvar to just STAGE (ed707be)
  • npm-packages: split out environment vs environment-aws (07b9ab1)
  • testing: enable passing with no acceptance tests (0c6d146)

0.19.0 (2023-02-10)

Features

  • deps: upgrade to using type-fns instead of simple-type-guards (f0a1a80)

Bug Fixes

  • deps: update packagelock post manual package.json update (aef9510)

0.18.0 (2023-02-10)

Features

  • uuid: make it easier to import uuid util w/ deps.ts (095cac6)

0.17.8 (2023-02-09)

Bug Fixes

  • terraform: ensure theres not a permadiff on product/variables.tf (6e630f4)

0.17.7 (2023-02-09)

Bug Fixes

  • linting: ensure that lines-between-class-members is off (0c1a875)
  • testing: dont attempt to transform js files with ts-jest (b980fd6)

0.17.6 (2023-02-09)

Bug Fixes

  • testing: ensure that ts-node is installed for jest.config.ts support (2df98ee)

0.17.5 (2023-02-09)

Bug Fixes

  • rds: ensure packagejson scripts reference new docker integration-test-db location (7f01772)

0.17.4 (2023-02-05)

Bug Fixes

  • deps: bump simple-artifact-builder version (ad4800d)
  • deps: ensure uuid is v9 and old module name is a bad practice (15ed76e)

0.17.3 (2022-12-27)

Bug Fixes

  • usecases: ensure testing and artifact usecases are exposed for lambda-service-with-rds (39fa430)

0.17.2 (2022-12-23)

Bug Fixes

  • artifact: bump simple-artifact-builder version to avoid node fs.rmdir dep warning (c45cac9)
  • packages: add node registry url to packages to ensure they are publishable (7bbcb87)

0.17.1 (2022-12-21)

Bug Fixes

  • jest: upgrade jest config fix its relationship to tsconfig (d7f73fe)

0.17.0 (2022-12-19)

Features

  • artifacts: use simple-artifact-builder to create deployment artifact (#25) (b880f1d)
  • dynamodb: support docker provisioned dynamodb local for test env (#28) (01a96f5)

Bug Fixes

  • cicd: fix deployment by upgrading publish-on-tag workflow (51198d0)

0.16.0 (2022-12-19)

Features

  • cicd: upgrade to using the more stable v3 of please-release plugin (3a37c77)
  • jest: upgrade jest deps to latest (2eeeea0)
  • s3: support service-scoped s3 namespace and permissions (886a869)
  • typescript: upgrade typescript version and config (fbf2152)
  • usecases: expose the npm-package and typescript-project usecases (70e37d2)

Bug Fixes

  • cicd: define test:commit and test:integration (d033b05)
  • cicd: ensure release message has sufficient whitespace (98fb896)
  • cicd: remove some service specific things from test-on-commit workflow (04f8fcd)
  • cicd: update packagelock to unblock cicd (937ca17)
  • commitlint: allow headerlength to expand to 140 (bbd178f)
  • deps: drop uuidv4, use uuid instead; community converged (a50f527)
  • eslint: upgrade eslint deps to latest (5e82cf7)
  • pkg: change pkg name to suffix with org name (cbb0f16)
  • readme: add a quick description of declapract to top of readme (13be5b8)
  • refs: replace uladkasach repo refs to ehmpathy repo refs (9f104f4)
  • test: fix failing unit test after name change (1ce766e)
  • tests: resolve linting issues that were blocking tests (9e1bdc4)
  • tf: bump tf version to 3.74.3 (9950081)
  • typescript: remove the noPropertyAccessFromIndexSignature method (a4083c1)
  • typescript: set importsNotUsedAsValues to false due to preference (6ed623e)

0.15.0 (2022-03-01)

Features

  • cicd: cancel running ci jobs when pr is updated (90a6848)

Bug Fixes

  • deps: upgrade min ver of simple-lambda-testing-methods to 0.2.1 (3f10be4)
  • tests: ensure local acceptance tests are verbose and run in band (253f334)
  • tsc: remove exclusion of .declapract dir from tsc (4f70c7d)

0.14.2 (2022-01-21)

Bug Fixes

  • github: ensure that we use github tf provider 4.19.1 for auto-merge support (ca6db9a)

0.14.1 (2022-01-18)

Bug Fixes

  • deps: bump min version of simple-type-guards (8bb0b29)
  • github: enable repos to automerge prs (53606b9)
  • sls: ensure services have perms to read/write their namespaced sqs queues, dynamodb tables, and sns topics (2e0ada3)

0.14.0 (2021-12-29)

Features

  • errors: add unexpected code path error util (f250aa0)

0.13.0 (2021-12-29)

Features

  • cicd: improve speed of cicd by leveraging setup-node ~/.npm caching (b299b2e)

0.12.1 (2021-12-21)

Bug Fixes

  • cicd: remove custom github runners feature, for better consistency (98e20bf)

0.12.0 (2021-12-21)

Features

  • cicd: enable specifying a custom github actions runner (aea0fb8)

Bug Fixes

  • db-query: add additional observability to errors thrown while querying db (3a193e5)
  • deps: bump deps (95b6b8a)
  • deps: bump min version of sql-code-generator (03d7bc7)
  • logger: bump best version of logger, to fix logs in aws-lambda env (8d2700c)

0.11.1 (2021-12-04)

Bug Fixes

  • comments: update comments in the test env files for readability (1e59061)
  • dep: bump min version required of simple-lambda-testing-handler (a298a34)
  • uuid: ensure that the uuid bad practice catches cases more generally (759e713)
  • uuid: fix uuid bad-practices declaration name (0913821)

0.11.0 (2021-12-04)

Features

  • usecases: support the nextjs web app use case (4351a38)

Bug Fixes

  • env: SERVERLESS_STAGE -> DEPLOYMENT_ENV (b6f9b33)
  • sls: be more explicit with the sls deploy flags (f1f7ddb)
  • tests: allow user to say I_KNOW_WHAT_IM_DOING to run int tests in other envs (e62bb3a)
  • tests: update test env setup files for stage safety and lint ignores (84e12ac)
  • uuid: ensure uuidv4 package is used (ed91b8e)

0.10.6 (2021-10-15)

Bug Fixes

  • cicd: ensure that github actions test and deploy with node version specified in nvmrc (d527475)

0.10.5 (2021-10-14)

Bug Fixes

  • commits: ensure test:commits handles case where no tags have been created yet (2a04dac)
  • improve typing on withDatabaseTransaction; remove soon to be deprecated -v flag for sls deploy (af7567b)

0.10.4 (2021-10-02)

Bug Fixes

  • config: ensure aws parameterstore namespace uses tf local.service name variable instead of hardcoding (b99695c)
  • config: fix parameter store namespace defiend in tf (223bdcb)

0.10.3 (2021-09-26)

Bug Fixes

  • testing: add fix to another variant of old acceptance test utils (ff9b0fb)

0.10.2 (2021-09-26)

Bug Fixes

  • config: add checks and fixes for using old config path (f09e818)
  • sls: improve sls.yml fix (f2607d3)
  • sls: revert sls wildcard resource format change (b84a830)

0.10.1 (2021-09-23)

Bug Fixes

  • ci: ensure that we throw an error if tf detects a change required for github repo (8c5e97f)
  • eslint: remove typo from eslint config (7a3f9af)
  • sls: improve comments and remove redundant quotes (f039fa2)
  • terraform: ensure github tf provider is pinned to minor viersion (14526d0)
  • testing: detect and fix another acceptance test bad practice (c2c6c20)

0.10.0 (2021-09-22)

Features

  • github: add github provisions (fe3ec20)
  • rds: add provision:schema:sync command to persist-with-rds practice scripts (382e7d3)

Bug Fixes

0.9.0 (2021-09-21)

Features

  • nonpublished-modules: autofix common deprecated nonpublished modules (standard-lambda-handlers, deep-omit) (6fa8935)
  • prettier: auto sort imports w/ prettier (e94554e)

Bug Fixes

  • bad-practice: fix the deep-omit nonpublished module badpractice autofix (4aeb1e4)
  • ci: ensure that test:types will not fail on declaration file errors, since we expect missing imports there (0c3138b)
  • config: sort imports in practice config (f7aaa34)
  • domain: bump domain-objects version (597708a)
  • formatting: use prettier import sort in defs to make sure all best practices have correct formatting (ef25ae0)

0.8.0 (2021-09-20)

Features

  • fmt: add terraform format; improve some more existing checks and fixes (fa14120)
  • runtime-type-checking: autofix old joi .valid format (fb1a25d)