Skip to content

Latest commit

 

History

History
807 lines (447 loc) · 30.7 KB

CHANGELOG.md

File metadata and controls

807 lines (447 loc) · 30.7 KB

Changelog

v2.1.5

compare changes

🩹 Fixes

  • Correct type types in SchemaBuilder (6e554ca)

💅 Refactors

  • Replace ternary type expressions with IfElse type (2391988)

🏡 Chore

  • Upgrade examples dependencies (15b1fcb)
  • Set tsconfig.json.moduleResolution to bundler in examples folder (3102c1f)
  • Upgrade dependencies (bc5892d)
  • Update paginate type definition file (aea186a)

❤️ Contributors

  • kiki-kanri

v2.1.4

compare changes

📦 Build

  • Enable sourcemap output in build process (ad9cc4e)

🏡 Chore

  • Upgrade dependencies (2061a4f)
  • Modify pack file structure and update package.json.exports configuration (a7605a8)

❤️ Contributors

  • kiki-kanri

v2.1.3

compare changes

🩹 Fixes

  • Resolve issue in decimal128 schema builder's setToStringGetter not handling undefined input (10434c6)

💅 Refactors

  • Enforce usage of global process instead of local process (ae1e1d2)

🏡 Chore

🎨 Styles

❤️ Contributors

  • kiki-kanri

v2.1.2

compare changes

🏡 Chore

  • Update eslint-config and format codes (6c60cc9)
  • Modify eslint-disable-next-line comment style (0a7b15e)
  • Upgrade dependencies (226faf1)
  • Upgrade dependencies (553fc56)

🎨 Styles

  • Change all indentation to 4 spaces (62c0f45)
  • Format and lint all files (777467a)

❤️ Contributors

  • kiki-kanri

v2.1.1

compare changes

🏡 Chore

  • Upgrade dependencies (6d0af61)
  • Replace Prettier with ESLint, add related files, and update VSCode settings (01dcce6)
  • Modify scripts in package.json (79116cc)

🎨 Styles

  • Format and lint all files (4db725a)

❤️ Contributors

  • kiki-kanri

v2.1.0

compare changes

🚀 Enhancements

  • Add ExceptMongooseTimestampAndOtherFields type (058fc3b)
  • Add index method to schema builders (c4ec43e)

💅 Refactors

  • examples: Replace Omit type with type-fest's Except type (b5a8de0)

✅ Tests

  • Update unit tests for base schema builder (a887a5a)

❤️ Contributors

  • kiki-kanri

v2.0.2

compare changes

💅 Refactors

  • Rename MaybeReadonly to Readonlyable (7c98bb7)
  • Change schema builder interface type merging to use type-fest's Merge type (e488ba4)
  • Rename DoNotUseOrRemoveThisType to DoNotRemoveOrUseThisType (5d93b8c)

❤️ Contributors

  • kiki-kanri

v2.0.1

compare changes

🏡 Chore

  • Update exports field in package.json (805d620)
  • Upgrade dependencies (547dba3)

❤️ Contributors

  • kiki-kanri

v2.0.0

compare changes

🚀 Enhancements

  • Export all schema builder's Extend helper types (3d048a4)

💅 Refactors

  • Move mongooseConnections to constants.ts (b6d51d1)
  • Tidy up and simplify code (2851299)

📖 Documentation

  • Update CHANGELOG (b72d87e)
  • Update README and add README for examples (da691bb)

🏡 Chore

  • Remove all deprecated code (bce1c4f)
  • Remove all files in examples folder (3744a68)
  • Add basic files to examples folder (af25bbe)
  • Add mongoose dependency to examples (5e8a26f)
  • Add example files (faf0b53)

❤️ Contributors

  • kiki-kanri

v2.0.0-rc.1

compare changes

🩹 Fixes

  • Resolve issue with missing options.ts export in build files (91374cb)

💅 Refactors

  • Merge _connections.ts and _options.ts to _internals.ts (3a22c73)

🏡 Chore

  • Upgrade examples dependencies (7a097fe)

🎨 Styles

  • Adjust line spacing for @param tags in some JSDoc comments (0153ba4)

❤️ Contributors

  • kiki-kanri

v2.0.0-rc.0

compare changes

🚀 Enhancements

  • Mark customMongooseOptions as deprecated and add new corresponding functionality (97eecae)

📖 Documentation

  • Add codecov badge to README (4e84017)
  • Add deprecation tag to certain types (292de7b)

✅ Tests

  • Add unit tests for objectId and number schema builders (7c83695)
  • Add unit tests for decimal128 schema builder (d6927bf)

❤️ Contributors

  • kiki-kanri

v1.7.1

compare changes

💅 Refactors

  • schema-builder: Remove PropsWithRequired type parameter (110e875)
  • Modify Builder type in createBaseSchemaBuilderFactory (ac9ef1f)

📖 Documentation

  • Add comments to several schema builders (6f074af)

🏡 Chore

  • Update release script and add test CI configuration file (0f4e599)
  • Add tsconfig.jest.json (5d6b28c)

✅ Tests

  • Add unit tests for base schema-builder (d2c455d)
  • Modify base schema-builder test unit (25b3d86)
  • Add unit tests for boolean, date and number schema-builders (96bc550)
  • Add unit tests for string schema-builder (2fa5832)

❤️ Contributors

  • kiki-kanri

v1.7.0

compare changes

🚀 Enhancements

  • Add objectIdSchemaBuilder (ecf4117)
  • Add decimal128SchemaBuilder (0cccf0a)
  • Add setToStringGetter property to decimal128SchemaBuilder (7ea08e1)
  • Add setRoundAndToFixedSetter property to decimal128SchemaBuilder (fd813a7)

🩹 Fixes

  • Resolve missing type field issue in RefSchemaBuilder (dc68335)

💅 Refactors

  • Use constants to define default validation messages for stringSchemaBuilder's ipv4 and ipv6 methods (2c822ba)

📖 Documentation

  • Add deprecation tag to createMongooseObjectIdRefSchema (eb3b3d5)
  • Add deprecation tag to certain constants, functions and properties (c00a4f6)

🏡 Chore

  • Add testing dependencies and configuration files (f327c27)

❤️ Contributors

  • kiki-kanri

v1.6.0

compare changes

🚀 Enhancements

  • Add ipv4 and ipv6 methods to StringSchemaBuilder (234756d)
  • Allow passing schema to builder returned by createBaseSchemaBuilderFactory (589c59b)
  • Add refSchemaBuilder (44c1702)

💅 Refactors

  • Rename createSchemaBuilder to createBaseSchemaBuilderFactory and remove string-specific operations (7f3ce35)
  • Modify stringSchemaBuilder to extend createBaseSchemaBuilderFactory (85fc4ac)
  • Update other schema builders (4d85342)

❤️ Contributors

  • kiki-kanri

v1.5.0

compare changes

🚀 Enhancements

  • Add createSchemaBuilder function (6a90caa)
  • Add stringSchemaBuilder (86f223c)
  • Add MaybeReadonly type and update StringSchemaBuilder (46c7350)
  • Add numberSchemaBuilder (8a314e3)
  • Add booleanSchemaBuilder (cd56098)
  • Add dateSchemaBuilder (cff37b1)

💅 Refactors

  • Remove duplicate type definitions (d77b31f)
  • Add deprecation tags to certain properties and functions (b327aff)

🏡 Chore

  • Update exports field in package.json (0b2f242)
  • Upgrade dependencies and modify release script (06e1c86)
  • Update minimum Node.js version (217920d)
  • Upgrade dependencies (c727924)

❤️ Contributors

  • kiki-kanri

v1.4.1

compare changes

🩹 Fixes

  • Resolve issues in code reported by gitroll (e7103c6)

🏡 Chore

  • Modify tsconfig.json (7d2c147)
  • Upgrade dependencies (242b61e)
  • Switch changelog generation package and remove tslib (ef4e4d0)
  • Remove tslib (6e35e19)
  • Add release script to package.json (0fea0dc)

❤️ Contributors

  • kiki-kanri

v1.4.0

compare changes

🚀 Enhancements

  • Add customMongooseOptions constant (6e4dcb3)
  • Execute customMongooseOptions.beforeModelBuild during model build (a6819ca)

🏡 Chore

  • Upgrade examples dependencies (1b03baa)
  • Update build process for examples (b66f554)

❤️ Contributors

  • kiki-kanri

v1.3.1

compare changes

🩹 Fixes

  • Add missing InstanceMethodsAndOverrides parameter to MongooseFindOneReturnType (f387156)

💅 Refactors

  • Replace @ts-ignore comments with @ts-expect-error (a37542b)

🏡 Chore

❤️ Contributors

  • kiki-kanri

v1.3.0

compare changes

🚀 Enhancements

  • Add ipv4 and ipv6 schemas to createCommonMongooseSchemas (cda5483)

🏡 Chore

❤️ Contributors

  • kiki-kanri

v1.2.1

compare changes

🩹 Fixes

  • Prevent createCommonMongooseSchemas from overwriting non-null/undefined falsy values in options defaults (0624efb)

📖 Documentation

🏡 Chore

  • Update examples related files (b30d046)
  • Remove rollup files and dependencies and switch to builder build (363a76f)
  • Upgrade dependencies (03a7935)

❤️ Contributors

  • kiki-kanri

v1.2.0

compare changes

🚀 Enhancements

  • Add MongooseConnections interface (44a8358)

🩹 Fixes

  • Correct lodash function import and usage (3c8f9c3)
  • Resolve circular import issue (a520920)

📖 Documentation

🏡 Chore

  • Add dev script, add README, and update comments in examples folder (7743e30)

❤️ Contributors

  • kiki-kanri

v1.1.0

Important

Deprecated.

compare changes

💅 Refactors

  • Update dependencies and modify build script (170c966)
  • Update dependency list and build script for examples (973ef15)

📖 Documentation

  • Update README and package.json (a78c80c)

📦 Build

  • Switch to rollup and update related configurations (5c2e3c5)

🏡 Chore

❤️ Contributors

  • kiki-kanri

v1.0.5

compare changes

📖 Documentation

  • Fix incorrect links in README and add bun installation instructions (3899267)

🏡 Chore

❤️ Contributors

  • kiki-kanri

v1.0.4

compare changes

🩹 Fixes

  • Correct incorrect type export method (9ff7bc0)

🏡 Chore

❤️ Contributors

  • kiki-kanri

v1.0.3

compare changes

🩹 Fixes

  • Ensure all relevant types are exported (a03b33f)

❤️ Contributors

  • kiki-kanri

v1.0.2

compare changes

💅 Refactors

  • Modify type definitions for mongoose-aggregate-paginate-v2 (396db5c)

🏡 Chore

❤️ Contributors

  • kiki-kanri

v1.0.1

compare changes

📖 Documentation

  • Update README and add description field to package.json (7a1fe77)

🏡 Chore

❤️ Contributors

  • kiki-kanri

v1.0.0

compare changes

🚀 Enhancements

  • Add example code and related files (466a95b)

📖 Documentation

❤️ Contributors

  • kiki-kanri

v1.0.0-rc.3

compare changes

🩹 Fixes

  • Modify function definition to resolve issues (44a5b93)

❤️ Contributors

  • kiki-kanri

v1.0.0-rc.2

compare changes

🩹 Fixes

  • Correct keyword list in package.json (005ab15)

💅 Refactors

  • Change file location of paginate type definitions (74d18e4)

📖 Documentation

  • Add comments to functions and types (9439b01)
  • Edit readme (940dc84)
  • Update comment for buildMongooseModel function (179da14)

❤️ Contributors

  • kiki-kanri

v1.0.0-rc.1

compare changes

🚀 Enhancements

  • Update AggregatePaginateModel interface to support QueryHelpers and InstanceMethodsAndOverrides (1cc3e99)
  • Extend BaseMongoosePaginateModel to include AggregatePaginateModel (a72e682)

❤️ Contributors

  • kiki-kanri

v1.0.0-rc.0

compare changes

🚀 Enhancements

  • Add type definitions for mongoose-aggregate-paginate-v2 (f0b5db3)
  • Add mongoose-aggregate-paginate-v2 plugin to mongoose schema (af4ef3f)

💅 Refactors

  • Replace all mongoose-paginate-v2 types with custom definitions and rename some types (608fb46)
  • Remove explicit undefined from mongoose-paginate-v2 type definitions (31cebf8)

📖 Documentation

🏡 Chore

  • Upgrade dependencies (7172259)
  • Add mongoose-aggregate-paginate-v2 dependency (b9c7c55)

❤️ Contributors

  • kiki-kanri

v0.6.0

compare changes

🚀 Enhancements

  • Add mongooseDocumentOrObjectIdToDocument utils (555b70e)

🏡 Chore

  • Copy LICENSE into dist folder during build (06d4a5e)
  • Modify keywords field in package.json (f69c5ad)
  • Upgrade dependencies (f7476c9)

❤️ Contributors

  • kiki-kanri

v0.5.0

compare changes

💅 Refactors

  • ⚠️ Convert paginate plugin to a universally registered plugin (2d4a7d6)
  • ⚠️ Remove beforeBuild attribute from options in buildMongooseModel (1817898)

🏡 Chore

  • Change declaration method of buildMongooseModel (3e03996)

⚠️ Breaking Changes

  • ⚠️ Convert paginate plugin to a universally registered plugin (2d4a7d6)
  • ⚠️ Remove beforeBuild attribute from options in buildMongooseModel (1817898)

❤️ Contributors

  • kiki-kanri

v0.4.1

compare changes

🩹 Fixes

  • Change import method for mongoose functions in utils file to resolve issues (0bae4b2)

❤️ Contributors

  • kiki-kanri

v0.4.0

compare changes

💅 Refactors

  • ⚠️ Modify parameter order and passing method for setupDecimal128FieldsToStringGetter utils (f62d43b)

⚠️ Breaking Changes

  • ⚠️ Modify parameter order and passing method for setupDecimal128FieldsToStringGetter utils (f62d43b)

❤️ Contributors

  • kiki-kanri

v0.3.0

compare changes

🚀 Enhancements

  • Add global data utils types (fd75b2c)

🩹 Fixes

  • Correct schema type errors (229ea2c)

💅 Refactors

  • Rename type generic parameter names (d183367)
  • Change default connection creation and usage (50d05b1)

❤️ Contributors

  • kiki-kanri

v0.2.1

compare changes

💅 Refactors

  • Switch package to ESM and set 'type' to 'module' in package.json (9c50dfd)

❤️ Contributors

  • kiki-kanri

v0.2.0

compare changes

🚀 Enhancements

  • Add createMongooseObjectIdRefSchema utils and related types (0abd723)

❤️ Contributors

  • kiki-kanri

v0.1.1

compare changes

🩹 Fixes

  • Correct type errors in some cases when using createCommonMongooseSchemas (4b1a7d9)

❤️ Contributors

  • kiki-kanri

v0.1.0

🚀 Enhancements

  • Add base files (ff0f343)
  • Add mongoose dependency (d9935ea)
  • Add createMongooseStringSchema utils and related types (16ee7d7)
  • Add lodash dependency (fa38a77)
  • Add createCommonMongooseSchemas utils (48fa1a8)
  • Add commonMongooseSchemas constant (b316b9e)
  • Add decimal.js dependency (a09dfce)
  • Add decimal128 settings to default commonMongooseSchemas constant (a30cdf2)
  • Add mongoose-paginate-v2 dependency (2f1c91e)
  • Add setupDecimal128FieldsToStringGetter utils (83cb5a5)
  • Add normalize plugin file (005aca2)
  • Add defaultMongooseConnection constant (07a07bc)
  • Add utils types (1743779)
  • Add buildMongooseModel utils and related types (295eb0d)
  • Add additional settings to exports field in package.json (8a3f8b7)

❤️ Contributors

  • kiki-kanri