Closed jonathanfallon closed 5 months ago
The recent changes primarily involve updating dependencies and refactoring code to enhance functionality and maintainability. Key updates include replacing zonedTimeToUtc
with fromZonedTime
for time zone handling, reorganizing import statements, and modifying test setup to use getPorts
instead of getPort
. Additionally, several dependencies were updated to their latest versions, and some were removed to streamline the project.
File Path | Change Summary |
---|---|
api/package.json |
Updated and removed several dependencies, including @types/lodash , @types/supertest , sinon , supertest , @aws-sdk/client-s3 , @aws-sdk/s3-request-presigner , @sentry/node , date-fns , date-fns-tz , commander , inversify , meilisearch , pino . Removed get-port and @types/express-rate-limit . |
api/src/ilos/common/types/container/ContainerInterface.ts |
Converted Factory<T> interface to a type alias Factory<T> = interfaces.Factory<T> . |
api/src/ilos/framework/tests/http.spec.ts , .../merged.spec.ts , .../queue.integration.spec.ts |
Reordered imports and replaced getPort with getPorts for port management in tests. |
api/src/ilos/transport-http/HttpTransport.spec.ts |
Reordered imports, added Test import from supertest , and changed request property type to TestAgent<Test> . |
api/src/pdc/helpers/dates.helper.ts |
Replaced zonedTimeToUtc with fromZonedTime for time zone conversion. |
api/src/pdc/helpers/ports.helper.ts |
Introduced getPorts , portNumbers , and clearLockedPorts functions for managing ports. |
api/src/pdc/providers/date/DateProvider.ts , .../interfaces/DateProviderInterfaceResolver.ts |
Refactored imports and updated method signatures to use FormatOptionsWithTZ . |
api/src/pdc/providers/sentry/SentryProvider.ts , .../index.ts |
Reordered import and export statements. |
api/src/pdc/providers/test/httpMacro.ts |
Added NewableType , replaced supertest with spt and TestAgent , and updated usage accordingly. |
api/src/pdc/proxy/HttpTransport.ts |
Added various imports related to TokenPayloadInterface , RPCResponseType , and middlewares. |
api/src/pdc/services/apdf/actions/ExportAction.spec.ts , .../ExportAction.ts , .../commands/ExportCommand.ts , .../helpers/castExportParams.helper.ts , .../helpers/normalizeAPDFData.helper.ts |
Replaced zonedTimeToUtc with fromZonedTime for time zone conversion. |
api/src/pdc/services/policy/engine/helpers/atDate.ts , .../atTime.ts , .../index.ts , .../isAfter.ts , .../onWeekday.ts |
Replaced utcToZonedTime with toZonedTime for time zone conversion. |
api/src/pdc/services/policy/engine/helpers/toZonedTime.ts |
Introduced toZonedTime function for converting dates to zoned time. |
api/src/pdc/services/trip/commands/ReplayOpendataExportAction.spec.ts |
Replaced zonedTimeToUtc with fromZonedTime for time zone conversion. |
flake.nix |
Changed devShell to devShells.default . |
"In code we trust, where changes flow, Dependencies updated, to help us grow. From zones of time to ports anew, Our tests and helpers got a fresh view. With each update, our code does sing, A rabbit's joy in every spring!" 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Dependencies
@types/lodash
,supertest
,@aws-sdk/client-s3
,@sentry/node
, and more.@types/express-rate-limit
andget-port
.Refactor
zonedTimeToUtc
withfromZonedTime
for better time zone handling.New Features
Bug Fixes
These updates enhance the application's stability, performance, and time zone handling capabilities.