commits
zod to standard schema
- Update package version to 1.2.0.
- Upgrade `mongodb` dependency to v6.17.0 and `zod` to v4.0.5.
- Update README.md to reflect the new MongoDB driver version requirement (v6+) and include instructions for upgrading MongoDB server.
- Remove `examples/` directory from the npm package by updating `.npmignore`.
- Update package version to 1.0.3.
- Enhance `MongoModel` with methods for `insertMany`, `findById`, `updateOne`, `replaceOne`, `deleteOne`, `count`, `aggregate`, and `findPaginated`.
- Improve README.md with more detailed explanations, installation instructions, quick start guide, project structure, development guidelines, and license information.
- Correct `.npmignore` to exclude the `examples/` directory instead of `example.js/`.
The package description was incorrectly referring to mizzleORM as an ORM (Object-Relational Mapper). This commit corrects the description to accurately reflect that mizzleORM is an ODM (Object-Document Mapper) since it's designed for MongoDB, a document database.
- Update package version to 1.0.1.
- Add repository, bugs, and homepage information to package.json.
- Exclude tests/ and example.js/ from npm package.
This commit introduces the initial implementation of mizzleORM, a lightweight, fully type-safe MongoDB ORM in TypeScript, inspired by Drizzle ORM.
Key changes include:
- Added core files: `.gitignore`, `.npmignore`, `package.json`, `README.md`, `tsconfig.json`.
- Implemented schema definition with Zod in `src/schema.ts` and `src/schema.js`, including `defineModel`, `InferModel`, and `InsertType` utilities.
- Created `MongoModel` class in `src/model.ts` and `src/model.js` for performing CRUD operations on MongoDB collections with Zod schema validation.
- Implemented MongoDB connection management in `src/client.ts` and `src/client.js` with `connect`, `disconnect`, and `getDb` functions.
- Added an example usage in `examples/user.ts` and `examples/user.js` demonstrating basic CRUD operations.
- Added tests in `tests/user.test.ts` and `tests/user.test.js` to verify the functionality of the ORM.
- Exported key functionalities in `src/index.ts` and `src/index.js`.
This initial version provides a foundation for type-safe MongoDB interactions with schema validation and a simple API.
- Update package version to 1.2.0.
- Upgrade `mongodb` dependency to v6.17.0 and `zod` to v4.0.5.
- Update README.md to reflect the new MongoDB driver version requirement (v6+) and include instructions for upgrading MongoDB server.
- Remove `examples/` directory from the npm package by updating `.npmignore`.
- Update package version to 1.0.3.
- Enhance `MongoModel` with methods for `insertMany`, `findById`, `updateOne`, `replaceOne`, `deleteOne`, `count`, `aggregate`, and `findPaginated`.
- Improve README.md with more detailed explanations, installation instructions, quick start guide, project structure, development guidelines, and license information.
- Correct `.npmignore` to exclude the `examples/` directory instead of `example.js/`.
This commit introduces the initial implementation of mizzleORM, a lightweight, fully type-safe MongoDB ORM in TypeScript, inspired by Drizzle ORM.
Key changes include:
- Added core files: `.gitignore`, `.npmignore`, `package.json`, `README.md`, `tsconfig.json`.
- Implemented schema definition with Zod in `src/schema.ts` and `src/schema.js`, including `defineModel`, `InferModel`, and `InsertType` utilities.
- Created `MongoModel` class in `src/model.ts` and `src/model.js` for performing CRUD operations on MongoDB collections with Zod schema validation.
- Implemented MongoDB connection management in `src/client.ts` and `src/client.js` with `connect`, `disconnect`, and `getDb` functions.
- Added an example usage in `examples/user.ts` and `examples/user.js` demonstrating basic CRUD operations.
- Added tests in `tests/user.test.ts` and `tests/user.test.js` to verify the functionality of the ORM.
- Exported key functionalities in `src/index.ts` and `src/index.js`.
This initial version provides a foundation for type-safe MongoDB interactions with schema validation and a simple API.