diff --git a/README.md b/README.md index e910639b..e034abde 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Don't know where to start? [Click here](https://www.mandarinets.org/docs/master/ ## Basic usage ```typescript -import { MandarineCore, Controller, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore, Controller, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller('/api') export class Boo { diff --git a/docs/web/mandarine/faq.md b/docs/web/mandarine/faq.md index e45dbb47..0894b987 100644 --- a/docs/web/mandarine/faq.md +++ b/docs/web/mandarine/faq.md @@ -34,4 +34,4 @@ Mandarine Compiling process starts at the time your application includes any com   ## Nest.land throws error when importing, what should I do? -Even though we recognize [nest.land](https://nest.land) as our main import source. We also strongly recommend to use [Deno X](https://deno.land/x) if nest.land _fails_.
The import of _deno.land/x_ is `https://deno.land/x/mandarinets@v2.1.6/mod.ts`. +Even though we recognize [nest.land](https://nest.land) as our main import source. We also strongly recommend to use [Deno X](https://deno.land/x) if nest.land _fails_.
The import of _deno.land/x_ is `https://deno.land/x/mandarinets@v2.2.0/mod.ts`. diff --git a/docs/web/mandarine/getting-started/installation.md b/docs/web/mandarine/getting-started/installation.md index 62262bbd..70c8f490 100644 --- a/docs/web/mandarine/getting-started/installation.md +++ b/docs/web/mandarine/getting-started/installation.md @@ -25,7 +25,7 @@ Mandarine is available through [deno.land/x](https://deno.land/x/mandarinets) & **deno.land/x** ```ts -import { ... } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { ... } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; ``` **nest.land** diff --git a/docs/web/mandarine/main-concepts/component-catch.md b/docs/web/mandarine/main-concepts/component-catch.md index 916f4ba8..f4fd7f3b 100644 --- a/docs/web/mandarine/main-concepts/component-catch.md +++ b/docs/web/mandarine/main-concepts/component-catch.md @@ -21,7 +21,7 @@ export class MyCatchComponent implements ExceptionFilter { ## Usage ```typescript -import { Catch, ExceptionFilter, ExceptionContext } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Catch, ExceptionFilter, ExceptionContext } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Catch(MyException) export class MyCatchComponent implements ExceptionFilter { diff --git a/docs/web/mandarine/main-concepts/component-component.md b/docs/web/mandarine/main-concepts/component-component.md index ad98b713..d05e81a1 100644 --- a/docs/web/mandarine/main-concepts/component-component.md +++ b/docs/web/mandarine/main-concepts/component-component.md @@ -21,7 +21,7 @@ Mandarine's stereotypes are also useful for modularity purposes since they allow ## Usage ```typescript -import { Component } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Component } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Component() export class MyComponent { diff --git a/docs/web/mandarine/main-concepts/component-configuration.md b/docs/web/mandarine/main-concepts/component-configuration.md index 2ecce2b1..45981ff0 100644 --- a/docs/web/mandarine/main-concepts/component-configuration.md +++ b/docs/web/mandarine/main-concepts/component-configuration.md @@ -25,7 +25,7 @@ Mandarine's stereotypes are also useful for modularity purposes since they allow ## Usage ```typescript -import { Configuration } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Configuration } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Configuration() export class MyConfiguration { diff --git a/docs/web/mandarine/main-concepts/component-controllers.md b/docs/web/mandarine/main-concepts/component-controllers.md index 9e5c131c..a75d71af 100644 --- a/docs/web/mandarine/main-concepts/component-controllers.md +++ b/docs/web/mandarine/main-concepts/component-controllers.md @@ -27,7 +27,7 @@ Controllers are responsible for dealing with Mandarine's HTTP Dispatcher & your ## Usage ```typescript -import { Controller } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() export class MyController { @@ -35,7 +35,7 @@ export class MyController { ``` ---- ```typescript -import { Controller } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller('/api') export class MyController { diff --git a/docs/web/mandarine/main-concepts/component-guard.md b/docs/web/mandarine/main-concepts/component-guard.md index 7147f191..5e6d7a82 100644 --- a/docs/web/mandarine/main-concepts/component-guard.md +++ b/docs/web/mandarine/main-concepts/component-guard.md @@ -48,7 +48,7 @@ const myGuard: GuardTargetMethod = (requestContext: Mandarine.Types.RequestConte ```typescript -import { UseGuards, Guard, GuardTargetMethod, GuardTarget, Controller, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { UseGuards, Guard, GuardTargetMethod, GuardTarget, Controller, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Guard() export class GuardComponent implements GuardTarget { diff --git a/docs/web/mandarine/main-concepts/component-middleware.md b/docs/web/mandarine/main-concepts/component-middleware.md index ea58feb8..9a20e276 100644 --- a/docs/web/mandarine/main-concepts/component-middleware.md +++ b/docs/web/mandarine/main-concepts/component-middleware.md @@ -22,7 +22,7 @@ Middleware are responsible for adding interceptors to controllers. They are exec ## Usage ```typescript -import { Middleware, MiddlewareTarget, ResponseParam } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Middleware, MiddlewareTarget, ResponseParam } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Middleware(new RegExp('/api/*')) export class Middleware1 implements MiddlewareTarget { diff --git a/docs/web/mandarine/main-concepts/component-repository.md b/docs/web/mandarine/main-concepts/component-repository.md index f32cbe9b..ff384d16 100644 --- a/docs/web/mandarine/main-concepts/component-repository.md +++ b/docs/web/mandarine/main-concepts/component-repository.md @@ -19,7 +19,7 @@ Repositories are responsible for creating a bridge between your application's la ## Usage ```typescript -import { Repository, MandarineRepository } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Repository, MandarineRepository } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Repository() abstract class MyRepository extends MandarineRepository { diff --git a/docs/web/mandarine/main-concepts/component-service.md b/docs/web/mandarine/main-concepts/component-service.md index 11c1d086..73337fff 100644 --- a/docs/web/mandarine/main-concepts/component-service.md +++ b/docs/web/mandarine/main-concepts/component-service.md @@ -21,7 +21,7 @@ Mandarine's stereotypes are also useful for modularity purposes since they allow ## Usage ```typescript -import { Service } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Service } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Service() export class MyService { diff --git a/docs/web/mandarine/main-concepts/dependency-injection.md b/docs/web/mandarine/main-concepts/dependency-injection.md index f186fa57..7ceaf780 100644 --- a/docs/web/mandarine/main-concepts/dependency-injection.md +++ b/docs/web/mandarine/main-concepts/dependency-injection.md @@ -58,7 +58,7 @@ Dependencies are essentially classes that rely on other classes (also dependents The `@Inject` is used for declaring property-based injections. ```typescript -import { Service, Inject } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Service, Inject } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Service() export class MyService2 { @@ -105,7 +105,7 @@ The injectable decorator handles the creation of a manual component. When `@Inje - This method should return an initialized class that will be the reference to the expected object in dependency injection requests. ```typescript -import { Service, Configuration Injectable } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Service, Configuration Injectable } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; export class MyThirdPartyClass { constructor(public readonly name: string) {} diff --git a/docs/web/mandarine/main-concepts/hello-world.md b/docs/web/mandarine/main-concepts/hello-world.md index 42789f54..84b2d5f0 100644 --- a/docs/web/mandarine/main-concepts/hello-world.md +++ b/docs/web/mandarine/main-concepts/hello-world.md @@ -4,7 +4,7 @@ Mandarine has a very simple & straightforward way to be written, this is what ma ```typescript // myFile.ts -import { MandarineCore, Controller, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore, Controller, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() export class MyController { diff --git a/docs/web/mandarine/main-concepts/manual-components.md b/docs/web/mandarine/main-concepts/manual-components.md index fc2c5a47..9b8eb487 100644 --- a/docs/web/mandarine/main-concepts/manual-components.md +++ b/docs/web/mandarine/main-concepts/manual-components.md @@ -18,7 +18,7 @@ Mandarine's manual components are used when wanting to _Mandarine-power_ a third Usage example: ```typescript -import { Configuration, Injectable, Component, Inject } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Configuration, Injectable, Component, Inject } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; export class ManualInjectionService { diff --git a/docs/web/mandarine/main-concepts/value-decorator.md b/docs/web/mandarine/main-concepts/value-decorator.md index 31fc69d5..fc07c8f7 100644 --- a/docs/web/mandarine/main-concepts/value-decorator.md +++ b/docs/web/mandarine/main-concepts/value-decorator.md @@ -31,7 +31,7 @@ See [Mandarine.MandarineCore.ValueScopes](https://doc.deno.land/https/raw.github ``` ```typescript -import { Value } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Value } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; export class ValueDecoratorTest { diff --git a/docs/web/mandarine/mandarine-core/mandarine-core.md b/docs/web/mandarine/mandarine-core/mandarine-core.md index 44df11b3..a05be61a 100644 --- a/docs/web/mandarine/mandarine-core/mandarine-core.md +++ b/docs/web/mandarine/mandarine-core/mandarine-core.md @@ -7,7 +7,7 @@ The core initialization is responsible for unifying all mandarine modules (Core, ## Invoking Mandarine's core In order to invoke the initialization of Mandarine's core, follow the example: ```typescript -import { MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; /** * Code @@ -20,7 +20,7 @@ import { MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; ## MVC Bridge The MVC bridge is the process of using Mandarine's MVC Core. This process is done through Mandarine's core. ```typescript -import { MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; /** * Code diff --git a/docs/web/mandarine/mandarine-core/native-components.md b/docs/web/mandarine/mandarine-core/native-components.md index f3b5c6ef..55c534ae 100644 --- a/docs/web/mandarine/mandarine-core/native-components.md +++ b/docs/web/mandarine/mandarine-core/native-components.md @@ -7,7 +7,7 @@ Native components are instances that Mandarine uses natively, meaning, during & Mandarine allows overriding whole or specific sections of a native class. The purpose behind this is to modify those internal behaviors Mandarine establishes as default. In order to override a native component all you need to do is to use the decorator `@Override` on top of your class and the use of `extends` to the native component you want to override (inside `Mandarine.Native`). A good example of what is described above: ```typescript -import { Override, Mandarine } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Override, Mandarine } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Override() export class WebMvcConfigurer extends Mandarine.Native.WebMvcConfigurer { diff --git a/docs/web/mandarine/mandarine-data/data-interacting.md b/docs/web/mandarine/mandarine-data/data-interacting.md index 494a32b3..4a2caa02 100644 --- a/docs/web/mandarine/mandarine-data/data-interacting.md +++ b/docs/web/mandarine/mandarine-data/data-interacting.md @@ -20,7 +20,7 @@ The `@CustomQuery` decorator allows you to write SQL queries in your repositorie ## API ```typescript -import { Repository, MandarineRepository, CustomQuery, Controller, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Repository, MandarineRepository, CustomQuery, Controller, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; import { Users } from "./usersModel.ts"; // A model @Repository() diff --git a/docs/web/mandarine/mandarine-data/data-repositories.md b/docs/web/mandarine/mandarine-data/data-repositories.md index 6bb79882..41de5eec 100644 --- a/docs/web/mandarine/mandarine-data/data-repositories.md +++ b/docs/web/mandarine/mandarine-data/data-repositories.md @@ -15,7 +15,7 @@ The abstract class that will represent your repository must be extended [Mandari Example ```typescript -import { Repository, MandarineRepository } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Repository, MandarineRepository } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Repository() abstract class MyRepository extends MandarineRepository { diff --git a/docs/web/mandarine/mandarine-data/data-updating.md b/docs/web/mandarine/mandarine-data/data-updating.md index cdac4bf5..0bcf52fd 100644 --- a/docs/web/mandarine/mandarine-data/data-updating.md +++ b/docs/web/mandarine/mandarine-data/data-updating.md @@ -12,7 +12,7 @@ In order to update existent data in your tables by using Mandarine-powered repos ## API ```typescript -import { Component } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Component } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; import { Users } from "./usersModel.ts"; import { UsersRepository } from "./usersRepository.ts"; diff --git a/docs/web/mandarine/mandarine-mvc/accessing-data-from-templates.md b/docs/web/mandarine/mandarine-mvc/accessing-data-from-templates.md index b3333433..46f956e5 100644 --- a/docs/web/mandarine/mandarine-mvc/accessing-data-from-templates.md +++ b/docs/web/mandarine/mandarine-mvc/accessing-data-from-templates.md @@ -27,7 +27,7 @@ When using [ViewModel](https://doc.deno.land/https/raw.githubusercontent.com/man ``` ```typescript -import { Controller, GET, Render, Model, ViewModel, MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller, GET, Render, Model, ViewModel, MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() export class MyController { diff --git a/docs/web/mandarine/mandarine-mvc/accessing-mvc-handler.md b/docs/web/mandarine/mandarine-mvc/accessing-mvc-handler.md index 657d94f9..a73dd23b 100644 --- a/docs/web/mandarine/mandarine-mvc/accessing-mvc-handler.md +++ b/docs/web/mandarine/mandarine-mvc/accessing-mvc-handler.md @@ -8,7 +8,7 @@ You can access the MVC handler by invoking the property `handle` part of Mandari ```typescript -import { MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; ... diff --git a/docs/web/mandarine/mandarine-mvc/adding-oak-middleware.md b/docs/web/mandarine/mandarine-mvc/adding-oak-middleware.md index 886777c6..40d97de1 100644 --- a/docs/web/mandarine/mandarine-mvc/adding-oak-middleware.md +++ b/docs/web/mandarine/mandarine-mvc/adding-oak-middleware.md @@ -7,7 +7,7 @@ Since version 1.2.3, Mandarine allows you to add a custom Oak middleware to your Before running your application through `new MandarineCore().MVC().run()`, you can use the method `addMiddleware` part of MandarineMVC to add an [Oak Middleware](https://github.com/oakserver/oak#application-middleware-and-context) ```typescript -import { MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; ... diff --git a/docs/web/mandarine/mandarine-mvc/cors-middleware.md b/docs/web/mandarine/mandarine-mvc/cors-middleware.md index 9c291f3d..2d849826 100644 --- a/docs/web/mandarine/mandarine-mvc/cors-middleware.md +++ b/docs/web/mandarine/mandarine-mvc/cors-middleware.md @@ -35,7 +35,7 @@ CORS middleware is added through the use of decorators. **Controller level** ```typescript -import { Controller, GET, Cors } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller, GET, Cors } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller('/api') @Cors({ origin: "https://myorigin.com" }) diff --git a/docs/web/mandarine/mandarine-mvc/custom-middleware.md b/docs/web/mandarine/mandarine-mvc/custom-middleware.md index 6f4f3d37..c72dd1b8 100644 --- a/docs/web/mandarine/mandarine-mvc/custom-middleware.md +++ b/docs/web/mandarine/mandarine-mvc/custom-middleware.md @@ -20,7 +20,7 @@ _`MiddlewareTarget`_ contains two key methods which you will need to provide fun // middleware.ts -import { Middleware, MiddlewareTarget, ResponseParam, Controller, GET, MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Middleware, MiddlewareTarget, ResponseParam, Controller, GET, MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Middleware(new RegExp('/api/*')) export class Middleware1 implements MiddlewareTarget { diff --git a/docs/web/mandarine/mandarine-mvc/entry-point.md b/docs/web/mandarine/mandarine-mvc/entry-point.md index a12035c4..96c0726e 100644 --- a/docs/web/mandarine/mandarine-mvc/entry-point.md +++ b/docs/web/mandarine/mandarine-mvc/entry-point.md @@ -8,7 +8,7 @@ The single entry point file serves as an index for all your Mandarine-powered co ## Usage ```typescript -import { MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; const services = [/* References */]; const controllers = [/* References */]; @@ -26,7 +26,7 @@ In the above example, we can see how we have different arrays where we will refe A good real example would look as follows: ```typescript -import { MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; import { Controller1, Controller2, Controller3 } from "./controllers-exports.ts"; const services = [/* References */]; diff --git a/docs/web/mandarine/mandarine-mvc/http-handlers.md b/docs/web/mandarine/mandarine-mvc/http-handlers.md index 7c408f3d..9a9d8f04 100644 --- a/docs/web/mandarine/mandarine-mvc/http-handlers.md +++ b/docs/web/mandarine/mandarine-mvc/http-handlers.md @@ -24,7 +24,7 @@ They are decorators that are used in the parameters of a HTTP Handler. Every dec ## API ```typescript -import { Controller, GET, RouteParam, MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller, GET, RouteParam, MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller('/api') export class Foo { diff --git a/docs/web/mandarine/mandarine-mvc/http-param-custom-decorators.md b/docs/web/mandarine/mandarine-mvc/http-param-custom-decorators.md index bca718ce..617c144d 100644 --- a/docs/web/mandarine/mandarine-mvc/http-param-custom-decorators.md +++ b/docs/web/mandarine/mandarine-mvc/http-param-custom-decorators.md @@ -16,7 +16,7 @@ parameterDecoratorFactory(executor: Mandarine.MandarineMVC. ## Example ```typescript -import { parameterDecoratorFactory, Controller, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { parameterDecoratorFactory, Controller, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; const RandomNumberDecorator = parameterDecoratorFactory((context: Mandarine.Types.RequestContextAcessor, ...parameter: Array) => { return Math.round(Math.random() * parameter); diff --git a/docs/web/mandarine/mandarine-mvc/mvc-controllers-parameterized-routes.md b/docs/web/mandarine/mandarine-mvc/mvc-controllers-parameterized-routes.md index 2e215327..5f22bf3b 100644 --- a/docs/web/mandarine/mandarine-mvc/mvc-controllers-parameterized-routes.md +++ b/docs/web/mandarine/mandarine-mvc/mvc-controllers-parameterized-routes.md @@ -13,7 +13,7 @@ Parameterized routes help you develop flexible endpoints as they can receive inf ## API ```typescript -import { GET, Controller, RouteParam, MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { GET, Controller, RouteParam, MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() export class MyController { diff --git a/docs/web/mandarine/mandarine-mvc/mvc-controllers-routes.md b/docs/web/mandarine/mandarine-mvc/mvc-controllers-routes.md index 919a2790..70361bae 100644 --- a/docs/web/mandarine/mandarine-mvc/mvc-controllers-routes.md +++ b/docs/web/mandarine/mandarine-mvc/mvc-controllers-routes.md @@ -45,7 +45,7 @@ Routes are declared by using specific decorators (_each route has a different de ```typescript -import { GET, POST, PUT, HEAD, DELETE, OPTIONS, PATCH, Controller, MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { GET, POST, PUT, HEAD, DELETE, OPTIONS, PATCH, Controller, MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() export class MyController { diff --git a/docs/web/mandarine/mandarine-mvc/pipes.md b/docs/web/mandarine/mandarine-mvc/pipes.md index 15671f4c..f59b8025 100644 --- a/docs/web/mandarine/mandarine-mvc/pipes.md +++ b/docs/web/mandarine/mandarine-mvc/pipes.md @@ -25,7 +25,7 @@ Targets: HTTP Parameter ## Usage ```typescript -import { UseGuards, Guard, GuardTargetMethod, GuardTarget, Controller, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { UseGuards, Guard, GuardTargetMethod, GuardTarget, Controller, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Component() export class MymathService implements Mandarine.Types.PipeTransform { diff --git a/docs/web/mandarine/mandarine-mvc/resource-handlers.md b/docs/web/mandarine/mandarine-mvc/resource-handlers.md index 9197cb99..0f0fa533 100644 --- a/docs/web/mandarine/mandarine-mvc/resource-handlers.md +++ b/docs/web/mandarine/mandarine-mvc/resource-handlers.md @@ -11,7 +11,7 @@ It is possible to create your own resource handlers & resource resolvers. For th In order to override this behavior, create a class which will receive the decorator [`@Override`](/docs/mandarine/native-components). This class must implement Mandarine.MandarineMVC.Configurers.WebMVCConfigurer & **extend Mandarine.Native.WebMvcConfigurer** (available in mod.ts). ```typescript -import { Mandarine, Override } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Mandarine, Override } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Override() export class WebMvcConfigurer extends Mandarine.Native.WebMvcConfigurer { @@ -36,7 +36,7 @@ Our method addResourceHandlers will return an instance of the Resource Handler R ```typescript -import { Mandarine, Override, ResourceHandler, MandarineResourceResolver } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Mandarine, Override, ResourceHandler, MandarineResourceResolver } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Override() export class WebMvcConfigurer extends Mandarine.Native.WebMvcConfigurer { diff --git a/docs/web/mandarine/mandarine-mvc/response-status-decorator.md b/docs/web/mandarine/mandarine-mvc/response-status-decorator.md index 5196a9e4..1534da85 100644 --- a/docs/web/mandarine/mandarine-mvc/response-status-decorator.md +++ b/docs/web/mandarine/mandarine-mvc/response-status-decorator.md @@ -14,7 +14,7 @@ Targets: Controller | HTTP Handler ## Usage ```typescript -import { Mandarine, Controller, ResponseStatus, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Mandarine, Controller, ResponseStatus, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() @ResponseStatus(Mandarine.MandarineMVC.HttpStatusCode.OK) diff --git a/docs/web/mandarine/mandarine-mvc/template-engine.md b/docs/web/mandarine/mandarine-mvc/template-engine.md index 72f3f74b..3c0c99ca 100644 --- a/docs/web/mandarine/mandarine-mvc/template-engine.md +++ b/docs/web/mandarine/mandarine-mvc/template-engine.md @@ -46,7 +46,7 @@ See [Mandarine.MandarineMVC.TemplateEngine.Engines](https://doc.deno.land/https/

Hello Bill! Nice to see you here again

``` ```typescript -import { Controller, GET, Render, MandarineCore } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller, GET, Render, MandarineCore } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() export class MyController { diff --git a/docs/web/mandarine/mandarine-security/authentication-allowonly-decorator.md b/docs/web/mandarine/mandarine-security/authentication-allowonly-decorator.md index 4a0b61bf..7d006d78 100644 --- a/docs/web/mandarine/mandarine-security/authentication-allowonly-decorator.md +++ b/docs/web/mandarine/mandarine-security/authentication-allowonly-decorator.md @@ -23,7 +23,7 @@ The `@AllowOnly` decorator protects an endpoint with Mandarine's built-in authen ## Usage ```typescript -import { Controller, GET, AllowOnly } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller, GET, AllowOnly } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; // Only Controller @Controller() diff --git a/docs/web/mandarine/mandarine-security/authentication-completeguide.md b/docs/web/mandarine/mandarine-security/authentication-completeguide.md index 76dfe35a..9939f39d 100644 --- a/docs/web/mandarine/mandarine-security/authentication-completeguide.md +++ b/docs/web/mandarine/mandarine-security/authentication-completeguide.md @@ -12,7 +12,7 @@ In order to fully use all the features related to Mandarine's built-in authentic The following example contains a full but simple example on how to use Mandarine's built-in authentication. ```typescript -import { Service, Mandarine, Override, Controller, GET, AuthPrincipal } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Service, Mandarine, Override, Controller, GET, AuthPrincipal } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Service() export class UserDetailsServiceImplementation implements Mandarine.Security.Auth.UserDetailsService { diff --git a/docs/web/mandarine/mandarine-security/authentication-managerbuilder.md b/docs/web/mandarine/mandarine-security/authentication-managerbuilder.md index 70e8c3c6..6350fed4 100644 --- a/docs/web/mandarine/mandarine-security/authentication-managerbuilder.md +++ b/docs/web/mandarine/mandarine-security/authentication-managerbuilder.md @@ -22,7 +22,7 @@ export interface AuthenticationManagerBuilder { ## Basic Usage ```typescript -import { Override, Mandarine } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Override, Mandarine } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Override() export class WebMvcConfigurer extends Mandarine.Native.WebMvcConfigurer { diff --git a/docs/web/mandarine/mandarine-security/authentication-userdetailsservice.md b/docs/web/mandarine/mandarine-security/authentication-userdetailsservice.md index 366d2a7b..8b2da814 100644 --- a/docs/web/mandarine/mandarine-security/authentication-userdetailsservice.md +++ b/docs/web/mandarine/mandarine-security/authentication-userdetailsservice.md @@ -32,7 +32,7 @@ export interface UserDetailsService { ## Basic Usage ```typescript -import { Service, Mandarine } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Service, Mandarine } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Service() export class UserDetailsServiceImplementation implements Mandarine.Security.Auth.UserDetailsService { diff --git a/docs/web/mandarine/mandarine-security/security-expressions.md b/docs/web/mandarine/mandarine-security/security-expressions.md index 7b6b3e80..db361637 100644 --- a/docs/web/mandarine/mandarine-security/security-expressions.md +++ b/docs/web/mandarine/mandarine-security/security-expressions.md @@ -14,7 +14,7 @@ Security expressions are available for usage in [`@AllowOnly` decorator](/docs/m ## Examples ```typescript -import { Controller, AllowOnly, GET } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Controller, AllowOnly, GET } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; @Controller() @AllowOnly("isAuthenticated()") diff --git a/docs/web/mandarine/plugins/optional-plugin.md b/docs/web/mandarine/plugins/optional-plugin.md index ee51a767..bef2d980 100644 --- a/docs/web/mandarine/plugins/optional-plugin.md +++ b/docs/web/mandarine/plugins/optional-plugin.md @@ -18,7 +18,7 @@ The optional class lets you handle possible null values in a programmatic way, t ## API ```typescript -import { Optional } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { Optional } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; let myNullVariable: any = null; Optional.of(myNullVariable).ifPresent(); // Returns `false` because value is null. diff --git a/docs/web/mandarine/plugins/promise-repeater.md b/docs/web/mandarine/plugins/promise-repeater.md index 23129d82..923fe4b3 100644 --- a/docs/web/mandarine/plugins/promise-repeater.md +++ b/docs/web/mandarine/plugins/promise-repeater.md @@ -16,7 +16,7 @@ The promise repeater plugin allows you to "try" and repeat promises until they a ## API ```typescript -import { PromiseRepeater } from "https://deno.land/x/mandarinets@v2.1.6/mod.ts"; +import { PromiseRepeater } from "https://deno.land/x/mandarinets@v2.2.0/mod.ts"; let i: number = 0; const promiseFunction: Function = async () => { diff --git a/main-core/mandarineConstants.ts b/main-core/mandarineConstants.ts index 7a3d9cb5..8cedf8d9 100644 --- a/main-core/mandarineConstants.ts +++ b/main-core/mandarineConstants.ts @@ -2,7 +2,7 @@ export class MandarineConstants { - public static RELEASE_VERSION = "v2.1.6"; + public static RELEASE_VERSION = "v2.2.0"; public static readonly REFLECTION_MANDARINE_INJECTION_FIELD = "mandarine-method-di-field"; public static readonly REFLECTION_MANDARINE_PIPE_FIELD = "mandarine-method-parameter-pipe"; diff --git a/rust-core/database/drivers/postgres/README.md b/rust-core/database/drivers/postgres/README.md index 0ffecd0e..4c02afa2 100644 --- a/rust-core/database/drivers/postgres/README.md +++ b/rust-core/database/drivers/postgres/README.md @@ -17,7 +17,7 @@ To see all the available documentation of Mandarine Postgres, please [Click here ## Basic Usage ```typescript -import { PgManager, PgClient, Configuration, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { PgManager, PgClient, Configuration, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; const configuration: Configuration = { host: "127.0.0.1", diff --git a/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-client.md b/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-client.md index 35a7c056..a7b23592 100644 --- a/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-client.md +++ b/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-client.md @@ -4,10 +4,10 @@ The `PgClient` object allows you to execute different type of queries in Postgre --------- ## Usage -The `PgClient` object takes the [`PgManager` object](/docs/v2.1.6/pg-driver/pgmanager) (previously created in the code) in the constructor. You could optionally do `PgManager.getClient()` to get a client from the instance of `PgManager`. +The `PgClient` object takes the [`PgManager` object](/docs/v2.2.0/pg-driver/pgmanager) (previously created in the code) in the constructor. You could optionally do `PgManager.getClient()` to get a client from the instance of `PgManager`. ```typescript -import { PgManager, PgClient, Configuration } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { PgManager, PgClient, Configuration } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; const configuration: Configuration = { ... }; @@ -30,7 +30,7 @@ const client: PgClient = new PgClient(manager); - Returns: An instance of `QueryResult` if not mapper is set ```typescript -import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; const pgManager: PgManager = new PgManager({...}); const users: QueryResult = await pgManager.getClient().query("SELECT * FROM users"); @@ -58,7 +58,7 @@ console.log(users); - Returns: An instance of `QueryResult` if not mapper is set ```typescript -import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; const pgManager: PgManager = new PgManager({...}); const insertUsers: QueryResult = await pgManager.getClient().execute("INSERT INTO users VALUES ($1, $2)", [1, 'mandarine']); @@ -80,7 +80,7 @@ console.log(insertUsers); - Returns: An instance of `QueryResult` if not mapper is set ```typescript -import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; const pgManager: PgManager = new PgManager({...}); const createUsersTable: QueryResult = await pgManager.getClient().batchExecute([ diff --git a/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-manager.md b/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-manager.md index 1a9f6f3f..d139c395 100644 --- a/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-manager.md +++ b/rust-core/database/drivers/postgres/docs/web/pg-driver/api/pg-manager.md @@ -24,7 +24,7 @@ interface Configuration { ## API ```typescript -import { PgManager, Configuration } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { PgManager, Configuration } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; const configuration: Configuration = { host: "127.0.0.1", diff --git a/rust-core/database/drivers/postgres/docs/web/pg-driver/api/queryresult.md b/rust-core/database/drivers/postgres/docs/web/pg-driver/api/queryresult.md index cb3600cb..d07145e6 100644 --- a/rust-core/database/drivers/postgres/docs/web/pg-driver/api/queryresult.md +++ b/rust-core/database/drivers/postgres/docs/web/pg-driver/api/queryresult.md @@ -51,7 +51,7 @@ Optionally, the class `QueryResult` offers a helper method to map the rows from - Signature: `rowsToObjects(): Array` ```typescript -import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { PgManager, QueryResult } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; const queryResult: QueryResult = ....; /** diff --git a/rust-core/database/drivers/postgres/docs/web/pg-driver/getting-started/installation.md b/rust-core/database/drivers/postgres/docs/web/pg-driver/getting-started/installation.md index 972186ce..52099c18 100644 --- a/rust-core/database/drivers/postgres/docs/web/pg-driver/getting-started/installation.md +++ b/rust-core/database/drivers/postgres/docs/web/pg-driver/getting-started/installation.md @@ -7,5 +7,5 @@ Mandarine Postgres is available through [deno.land/x](https://deno.land/x/mandar **deno.land/x** ```ts -import { ... } from "https://deno.land/x/mandarine_postgres@v2.1.6/ts-src/mod.ts"; +import { ... } from "https://deno.land/x/mandarine_postgres@v2.2.0/ts-src/mod.ts"; ``` \ No newline at end of file