orange-orm 5.2.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,11 +12,6 @@ The ultimate Object Relational Mapper for Node.js, Bun and Deno, offering seamle
12
12
  [![Discord](https://badgen.net/discord/online-members/QjuEgvQXzd?icon=discord&label=Discord)](https://discord.gg/QjuEgvQXzd)
13
13
  [![YouTube Video Views](https://img.shields.io/youtube/views/1IwwjPr2lMs)](https://youtu.be/1IwwjPr2lMs)
14
14
 
15
- ## MCP (Model Context Protocol)
16
- Orange ORM is available as an MCP resource on Context7. Use it with AI-powered tools like GitHub Copilot, Cursor, or Claude to get up-to-date documentation and code examples directly in your IDE.
17
-
18
- 👉 [https://context7.com/alfateam/orange-orm](https://context7.com/alfateam/orange-orm)
19
-
20
15
  ## Key Features
21
16
 
22
17
  - **Rich Querying Model**: Orange provides a powerful and intuitive querying model, making it easy to retrieve, filter, and manipulate data from your databases.
@@ -40,6 +35,10 @@ Orange ORM is available as an MCP resource on Context7. Use it with AI-powered t
40
35
  ## Sponsorship <span style="font-size: larger; color: darkred;">♡</span>
41
36
  If you value the hard work behind Orange and wish to see it evolve further, consider [sponsoring](https://github.com/sponsors/lroal). Your support fuels the journey of refining and expanding this tool for our developer community.
42
37
 
38
+ ## MCP (Model Context Protocol)
39
+ Orange ORM is available as an MCP resource on Context7. Use it with AI-powered tools like GitHub Copilot, Cursor, or Claude to get up-to-date documentation and code examples directly in your IDE.
40
+ 👉 [https://context7.com/alfateam/orange-orm](https://context7.com/alfateam/orange-orm)
41
+
43
42
  ## Installation
44
43
 
45
44
  ```bash
@@ -6270,6 +6270,10 @@ function requireColumn () {
6270
6270
  return c;
6271
6271
  };
6272
6272
 
6273
+ c.jsonOf = function() {
6274
+ return c.json();
6275
+ };
6276
+
6273
6277
  c.guid = function() {
6274
6278
  requireGuid()(column);
6275
6279
  return c;
package/dist/index.mjs CHANGED
@@ -6271,6 +6271,10 @@ function requireColumn () {
6271
6271
  return c;
6272
6272
  };
6273
6273
 
6274
+ c.jsonOf = function() {
6275
+ return c.json();
6276
+ };
6277
+
6274
6278
  c.guid = function() {
6275
6279
  requireGuid()(column);
6276
6280
  return c;
package/docs/changelog.md CHANGED
@@ -1,4 +1,6 @@
1
1
  ## Changelog
2
+ __5.2.2__
3
+ Bugfix: jsonOf<T>() exists in type definitions but is missing at runtime [#166](https://github.com/alfateam/orange-orm/issues/166)
2
4
  __5.2.1__
3
5
  Bugfix: Bun Postgres fails on proxied JSON params [#158](https://github.com/alfateam/orange-orm/issues/158)
4
6
  __5.2.0__
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-orm",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,6 +13,10 @@ function defineColumn(column, table) {
13
13
  return c;
14
14
  };
15
15
 
16
+ c.jsonOf = function() {
17
+ return c.json();
18
+ };
19
+
16
20
  c.guid = function() {
17
21
  require('./column/guid')(column);
18
22
  return c;