@midwayjs/view-nunjucks 3.0.0-beta.8 → 3.0.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.default.js","sourceRoot":"","sources":["../../src/config/config.default.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,QAAQ,EAAE;QACR,UAAU,EAAE,IAAI;QAChB,gBAAgB,EAAE,KAAK;QACvB,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,KAAK;QACnB,KAAK,EAAE,IAAI;KACZ;CAwBF,CAAC","sourcesContent":["export default {\n nunjucks: {\n autoescape: true,\n throwOnUndefined: false,\n trimBlocks: false,\n lstripBlocks: false,\n cache: true,\n },\n} as {\n nunjucks: {\n /**\n * controls if output with dangerous characters are escaped automatically.\n */\n autoescape: boolean;\n /**\n * throw errors when outputting a null/undefined value\n */\n throwOnUndefined: boolean;\n /**\n * automatically remove trailing newlines from a block/tag\n */\n trimBlocks: boolean;\n /**\n * automatically remove leading whitespace from a block/tag\n */\n lstripBlocks: boolean;\n /**\n * use a cache and recompile templates each time. false in local env.\n */\n cache: boolean;\n };\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.local.js","sourceRoot":"","sources":["../../src/config/config.local.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE,KAAK;CACb,CAAC","sourcesContent":["export const nunjucks = {\n cache: false,\n};\n"]}
@@ -1,7 +1,6 @@
1
1
  import * as View from '@midwayjs/view';
2
2
  export declare class ViewNunjucksConfiguration {
3
- app: any;
4
3
  viewManager: View.ViewManager;
5
- onReady(container: any): Promise<void>;
4
+ onReady(): Promise<void>;
6
5
  }
7
6
  //# sourceMappingURL=configuration.d.ts.map
@@ -13,19 +13,13 @@ exports.ViewNunjucksConfiguration = void 0;
13
13
  const decorator_1 = require("@midwayjs/decorator");
14
14
  const View = require("@midwayjs/view");
15
15
  const view_1 = require("./view");
16
- const engine_1 = require("./engine");
17
16
  const DefaultConfig = require("./config/config.default");
18
17
  const LocalConfig = require("./config/config.local");
19
18
  let ViewNunjucksConfiguration = class ViewNunjucksConfiguration {
20
- async onReady(container) {
21
- this.app.nunjucks = await container.getAsync(engine_1.NunjucksEnvironment);
19
+ async onReady() {
22
20
  this.viewManager.use('nunjucks', view_1.NunjucksView);
23
21
  }
24
22
  };
25
- __decorate([
26
- (0, decorator_1.App)(),
27
- __metadata("design:type", Object)
28
- ], ViewNunjucksConfiguration.prototype, "app", void 0);
29
23
  __decorate([
30
24
  (0, decorator_1.Inject)(),
31
25
  __metadata("design:type", View.ViewManager)
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAA4D;AAC5D,uCAAuC;AACvC,iCAAsC;AACtC,yDAAyD;AACzD,qDAAqD;AAYrD,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAIpC,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,EAAE,mBAAY,CAAC,CAAC;IACjD,CAAC;CACF,CAAA;AALC;IADC,IAAA,kBAAM,GAAE;8BACI,IAAI,CAAC,WAAW;8DAAC;AAFnB,yBAAyB;IAVrC,IAAA,yBAAa,EAAC;QACb,SAAS,EAAE,eAAe;QAC1B,aAAa,EAAE;YACb;gBACE,OAAO,EAAE,aAAa;gBACtB,KAAK,EAAE,WAAW;aACnB;SACF;QACD,OAAO,EAAE,CAAC,IAAI,CAAC;KAChB,CAAC;GACW,yBAAyB,CAOrC;AAPY,8DAAyB","sourcesContent":["import { Configuration, Inject } from '@midwayjs/decorator';\nimport * as View from '@midwayjs/view';\nimport { NunjucksView } from './view';\nimport * as DefaultConfig from './config/config.default';\nimport * as LocalConfig from './config/config.local';\n\n@Configuration({\n namespace: 'view-nunjucks',\n importConfigs: [\n {\n default: DefaultConfig,\n local: LocalConfig,\n },\n ],\n imports: [View],\n})\nexport class ViewNunjucksConfiguration {\n @Inject()\n viewManager: View.ViewManager;\n\n async onReady() {\n this.viewManager.use('nunjucks', NunjucksView);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.js","sourceRoot":"","sources":["../src/engine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAQ6B;AAC7B,uCAAkE;AAElE,MAAM,yBAA0B,SAAQ,sBAAW;IACjD,YAAY,UAAU,EAAE,MAAM;QAC5B,KAAK,CAAC,UAAU,EAAE;YAChB,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC,CAAC;QAEH,0FAA0F;QAC1F,MAAM,kBAAkB,GAAG,kBAAO,CAAC,YAAY,CAAC;QAChD,kBAAO,CAAC,YAAY,GAAG,UAAU,GAAG,IAAI;YACtC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YACpB,IAAI,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,aAAa;gBAAE,OAAO,IAAI,CAAC;YAC9D,OAAO,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC;QACrC,CAAC,CAAC;IACJ,CAAC;CACF;AAID,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAUpB,KAAK,CAAC,IAAI;QAClB,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;QAC9C,UAAU,CAAC,IAAI,CACb,qDAAqD,EACrD,SAAS,CACV,CAAC;QAEF,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC7C,MAAM,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC;QAC/B,OAAO,MAAM,CAAC,KAAK,CAAC;QAEpB,MAAM,UAAU,GAAG,IAAI,2BAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,mBAAmB,GAAG,IAAI,yBAAyB,CACtD,UAAU,EACV,MAAM,CACP,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE;QACrB,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QAChC,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,SAAS,CAAC,IAAY,EAAE,QAA6B;QACnD,OAAO,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED,SAAS,CAAC,IAAY;QACpB,OAAO,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,YAAY,CAAC,IAAY;QACvB,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,SAAS,CAAC,IAAY,EAAE,KAAK;QAC3B,OAAO,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;CACF,CAAA;AAhDC;IADC,IAAA,eAAG,GAAE;;gDACQ;AAGd;IADC,IAAA,kBAAM,EAAC,eAAG,CAAC;;yDACW;AAGvB;IADC,IAAA,gBAAI,GAAE;;;;+CAkBN;AA3BU,mBAAmB;IAF/B,IAAA,mBAAO,GAAE;IACT,IAAA,iBAAK,EAAC,qBAAS,CAAC,SAAS,CAAC;GACd,mBAAmB,CAoD/B;AApDY,kDAAmB","sourcesContent":["import {\n ALL,\n App,\n Config,\n Init,\n Provide,\n Scope,\n ScopeEnum,\n} from '@midwayjs/decorator';\nimport { Environment, FileSystemLoader, runtime } from 'nunjucks';\n\nclass MidwayNunjucksEnvironment extends Environment {\n constructor(fileLoader, config) {\n super(fileLoader, {\n noCache: config.noCache,\n });\n\n // http://disse.cting.org/2016/08/02/2016-08-02-sandbox-break-out-nunjucks-template-engine\n const originMemberLookup = runtime.memberLookup;\n runtime.memberLookup = function (...args) {\n const val = args[1];\n if (val === 'prototype' || val === 'constructor') return null;\n return originMemberLookup(...args);\n };\n }\n}\n\n@Provide()\n@Scope(ScopeEnum.Singleton)\nexport class NunjucksEnvironment {\n protected nunjucksEnvironment;\n\n @App()\n protected app;\n\n @Config(ALL)\n protected globalConfig;\n\n @Init()\n protected async init() {\n const coreLogger = this.app.getCoreLogger();\n const viewPaths = this.globalConfig.view.root;\n coreLogger.info(\n '[@midwayjs/view-nunjucks] loading templates from %j',\n viewPaths\n );\n\n const config = this.globalConfig['nunjucks'];\n config.noCache = !config.cache;\n delete config.cache;\n\n const fileLoader = new FileSystemLoader(this.globalConfig.view.root);\n this.nunjucksEnvironment = new MidwayNunjucksEnvironment(\n fileLoader,\n config\n );\n }\n\n render(name, locals, cb) {\n return this.nunjucksEnvironment.render(name, locals, cb);\n }\n\n renderString(tpl, locals, opts, cb) {\n return this.nunjucksEnvironment.renderString(tpl, locals, opts, cb);\n }\n\n addFilter(name: string, callback: (...args) => string) {\n return this.nunjucksEnvironment.addFilter(name, callback);\n }\n\n getFilter(name: string) {\n return this.nunjucksEnvironment.getFilter(name);\n }\n\n hasExtension(name: string): boolean {\n return this.nunjucksEnvironment.hasExtension(name);\n }\n\n addGlobal(name: string, value) {\n return this.nunjucksEnvironment.addGlobal(name, value);\n }\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { ViewNunjucksConfiguration as Configuration } from './configuration';
2
2
  export * from './engine';
3
+ export * from './view';
3
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -14,4 +14,5 @@ exports.Configuration = void 0;
14
14
  var configuration_1 = require("./configuration");
15
15
  Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.ViewNunjucksConfiguration; } });
16
16
  __exportStar(require("./engine"), exports);
17
+ __exportStar(require("./view"), exports);
17
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iDAA6E;AAApE,8GAAA,yBAAyB,OAAiB;AACnD,2CAAyB;AACzB,yCAAuB","sourcesContent":["export { ViewNunjucksConfiguration as Configuration } from './configuration';\nexport * from './engine';\nexport * from './view';\n"]}
package/dist/view.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export declare class NunjucksView {
2
- ctx: any;
3
- app: any;
4
- constructor(ctx: any);
5
- render(name: any, locals: any): Promise<unknown>;
6
- renderString(tpl: any, locals: any, opts: any): Promise<unknown>;
1
+ import { IViewEngine, RenderOptions } from '@midwayjs/view';
2
+ import { NunjucksEnvironment } from './engine';
3
+ export declare class NunjucksView implements IViewEngine {
4
+ nunjucks: NunjucksEnvironment;
5
+ render(name: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>;
6
+ renderString(tpl: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>;
7
7
  }
8
8
  //# sourceMappingURL=view.d.ts.map
package/dist/view.js CHANGED
@@ -1,32 +1,45 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.NunjucksView = void 0;
4
- class NunjucksView {
5
- constructor(ctx) {
6
- this.ctx = ctx;
7
- this.app = ctx.app;
8
- // this.viewHelper = new this.app.nunjucks.ViewHelper(ctx);
9
- }
10
- render(name, locals) {
13
+ const decorator_1 = require("@midwayjs/decorator");
14
+ const engine_1 = require("./engine");
15
+ let NunjucksView = class NunjucksView {
16
+ async render(name, locals, options) {
11
17
  // locals.helper = this.viewHelper;
12
18
  return new Promise((resolve, reject) => {
13
- this.app.nunjucks.render(name, locals, (err, result) => {
19
+ this.nunjucks.render(name, locals, (err, result) => {
14
20
  if (err)
15
21
  return reject(err);
16
22
  resolve(result);
17
23
  });
18
24
  });
19
25
  }
20
- renderString(tpl, locals, opts) {
26
+ async renderString(tpl, locals, options) {
21
27
  // locals.helper = this.viewHelper;
22
28
  return new Promise((resolve, reject) => {
23
- this.app.nunjucks.renderString(tpl, locals, opts, (err, result) => {
29
+ this.nunjucks.renderString(tpl, locals, options, (err, result) => {
24
30
  if (err)
25
31
  return reject(err);
26
32
  resolve(result);
27
33
  });
28
34
  });
29
35
  }
30
- }
36
+ };
37
+ __decorate([
38
+ (0, decorator_1.Inject)(),
39
+ __metadata("design:type", engine_1.NunjucksEnvironment)
40
+ ], NunjucksView.prototype, "nunjucks", void 0);
41
+ NunjucksView = __decorate([
42
+ (0, decorator_1.Provide)()
43
+ ], NunjucksView);
31
44
  exports.NunjucksView = NunjucksView;
32
45
  //# sourceMappingURL=view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../src/view.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAsD;AAEtD,qCAA+C;AAG/C,IAAa,YAAY,GAAzB,MAAa,YAAY;IAIvB,KAAK,CAAC,MAAM,CACV,IAAY,EACZ,MAA4B,EAC5B,OAAuB;QAEvB,mCAAmC;QACnC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;gBACjD,IAAI,GAAG;oBAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;gBAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,GAAW,EACX,MAA4B,EAC5B,OAAuB;QAEvB,mCAAmC;QACnC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;gBAC/D,IAAI,GAAG;oBAAE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;gBAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA7BC;IADC,IAAA,kBAAM,GAAE;8BACC,4BAAmB;8CAAC;AAFnB,YAAY;IADxB,IAAA,mBAAO,GAAE;GACG,YAAY,CA+BxB;AA/BY,oCAAY","sourcesContent":["import { Inject, Provide } from '@midwayjs/decorator';\nimport { IViewEngine, RenderOptions } from '@midwayjs/view';\nimport { NunjucksEnvironment } from './engine';\n\n@Provide()\nexport class NunjucksView implements IViewEngine {\n @Inject()\n nunjucks: NunjucksEnvironment;\n\n async render(\n name: string,\n locals?: Record<string, any>,\n options?: RenderOptions\n ): Promise<string> {\n // locals.helper = this.viewHelper;\n return new Promise((resolve, reject) => {\n this.nunjucks.render(name, locals, (err, result) => {\n if (err) return reject(err);\n resolve(result);\n });\n });\n }\n\n async renderString(\n tpl: string,\n locals?: Record<string, any>,\n options?: RenderOptions\n ): Promise<string> {\n // locals.helper = this.viewHelper;\n return new Promise((resolve, reject) => {\n this.nunjucks.renderString(tpl, locals, options, (err, result) => {\n if (err) return reject(err);\n resolve(result);\n });\n });\n }\n}\n"]}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@midwayjs/view-nunjucks",
3
- "version": "3.0.0-beta.8",
4
- "description": "Midway Component for egg-view-nunjucks",
3
+ "version": "3.0.2",
4
+ "description": "Midway Component for nunjucks render",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest",
10
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit",
9
+ "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
10
+ "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
11
11
  "ci": "npm run test"
12
12
  },
13
13
  "keywords": [
@@ -15,30 +15,28 @@
15
15
  "component",
16
16
  "midway-view",
17
17
  "view",
18
- "nunjucks",
19
- "egg-view",
20
- "egg-view-nunjucks"
18
+ "nunjucks"
21
19
  ],
22
20
  "author": "",
23
21
  "files": [
24
22
  "dist/**/*.js",
25
23
  "dist/**/*.d.ts",
26
- "index.d.ts"
24
+ "index.d.ts",
25
+ "dist/**/*.js.map"
27
26
  ],
28
27
  "engines": {
29
28
  "node": ">=12"
30
29
  },
31
30
  "license": "MIT",
32
31
  "dependencies": {
33
- "@midwayjs/mw-util": "^1.0.0",
34
- "@midwayjs/view": "^3.0.0-beta.8",
32
+ "@midwayjs/view": "^3.0.2",
35
33
  "nunjucks": "^3.2.2"
36
34
  },
37
35
  "devDependencies": {
38
- "@midwayjs/core": "^3.0.0-beta.8",
39
- "@midwayjs/decorator": "^3.0.0-beta.8",
40
- "@midwayjs/koa": "^3.0.0-beta.8",
41
- "@midwayjs/mock": "^3.0.0-beta.8"
36
+ "@midwayjs/core": "^3.0.2",
37
+ "@midwayjs/decorator": "^3.0.2",
38
+ "@midwayjs/koa": "^3.0.2",
39
+ "@midwayjs/mock": "^3.0.2"
42
40
  },
43
- "gitHead": "bfafbdf8798f48d4daac5dd88ad53c6b2f33c110"
41
+ "gitHead": "ca77247d229978a736e79bb208579c014ed226fc"
44
42
  }
package/CHANGELOG.md DELETED
@@ -1,507 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
12
-
13
-
14
-
15
-
16
-
17
- # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
18
-
19
- **Note:** Version bump only for package @midwayjs/view-nunjucks
20
-
21
-
22
-
23
-
24
-
25
- # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
26
-
27
- **Note:** Version bump only for package @midwayjs/view-nunjucks
28
-
29
-
30
-
31
-
32
-
33
- # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
34
-
35
- **Note:** Version bump only for package @midwayjs/view-nunjucks
36
-
37
-
38
-
39
-
40
-
41
- # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
42
-
43
- **Note:** Version bump only for package @midwayjs/view-nunjucks
44
-
45
-
46
-
47
-
48
-
49
- # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
50
-
51
-
52
- ### Features
53
-
54
- * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
55
-
56
-
57
-
58
-
59
-
60
- # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
61
-
62
- **Note:** Version bump only for package @midwayjs/view-nunjucks
63
-
64
-
65
-
66
-
67
-
68
- # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
69
-
70
-
71
- ### Features
72
-
73
- * add view, view-ejs and view-nunjucks ([#1308](https://github.com/midwayjs/midway/issues/1308)) ([a00f44b](https://github.com/midwayjs/midway/commit/a00f44bd769052245cd49d49ab417d621bb89caa))
74
-
75
-
76
-
77
-
78
-
79
- ## [2.13.2](https://github.com/midwayjs/midway/compare/v2.13.1...v2.13.2) (2021-09-09)
80
-
81
- **Note:** Version bump only for package @midwayjs/typegoose
82
-
83
-
84
-
85
-
86
-
87
- ## [2.13.1](https://github.com/midwayjs/midway/compare/v2.13.0...v2.13.1) (2021-09-08)
88
-
89
- **Note:** Version bump only for package @midwayjs/typegoose
90
-
91
-
92
-
93
-
94
-
95
- # [2.13.0](https://github.com/midwayjs/midway/compare/v2.12.9...v2.13.0) (2021-09-07)
96
-
97
- **Note:** Version bump only for package @midwayjs/typegoose
98
-
99
-
100
-
101
-
102
-
103
- ## [2.12.9](https://github.com/midwayjs/midway/compare/v2.12.8...v2.12.9) (2021-09-01)
104
-
105
- **Note:** Version bump only for package @midwayjs/typegoose
106
-
107
-
108
-
109
-
110
-
111
- ## [2.12.7](https://github.com/midwayjs/midway/compare/v2.12.6...v2.12.7) (2021-08-22)
112
-
113
- **Note:** Version bump only for package @midwayjs/typegoose
114
-
115
-
116
-
117
-
118
-
119
- ## [2.12.5](https://github.com/midwayjs/midway/compare/v2.12.4...v2.12.5) (2021-08-18)
120
-
121
- **Note:** Version bump only for package @midwayjs/typegoose
122
-
123
-
124
-
125
-
126
-
127
- ## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
128
-
129
- **Note:** Version bump only for package @midwayjs/typegoose
130
-
131
-
132
-
133
-
134
-
135
- ## [2.12.1](https://github.com/midwayjs/midway/compare/v2.12.0...v2.12.1) (2021-08-01)
136
-
137
- **Note:** Version bump only for package @midwayjs/typegoose
138
-
139
-
140
-
141
-
142
-
143
- # [2.12.0](https://github.com/midwayjs/midway/compare/v2.11.7...v2.12.0) (2021-07-30)
144
-
145
- **Note:** Version bump only for package @midwayjs/typegoose
146
-
147
-
148
-
149
-
150
-
151
- ## [2.11.6](https://github.com/midwayjs/midway/compare/v2.11.5...v2.11.6) (2021-07-16)
152
-
153
- **Note:** Version bump only for package @midwayjs/typegoose
154
-
155
-
156
-
157
-
158
-
159
- ## [2.11.5](https://github.com/midwayjs/midway/compare/v2.11.4...v2.11.5) (2021-07-15)
160
-
161
- **Note:** Version bump only for package @midwayjs/typegoose
162
-
163
-
164
-
165
-
166
-
167
- ## [2.11.4](https://github.com/midwayjs/midway/compare/v2.11.3...v2.11.4) (2021-07-06)
168
-
169
- **Note:** Version bump only for package @midwayjs/typegoose
170
-
171
-
172
-
173
-
174
-
175
- ## [2.11.3](https://github.com/midwayjs/midway/compare/v2.11.2...v2.11.3) (2021-07-02)
176
-
177
-
178
- ### Bug Fixes
179
-
180
- * hide real error when user code throw error ([#1128](https://github.com/midwayjs/midway/issues/1128)) ([e728b0b](https://github.com/midwayjs/midway/commit/e728b0b80956c09cfb856ffe082f44fa29cfeb82))
181
-
182
-
183
-
184
-
185
-
186
- ## [2.11.2](https://github.com/midwayjs/midway/compare/v2.11.1...v2.11.2) (2021-06-28)
187
-
188
- **Note:** Version bump only for package @midwayjs/typegoose
189
-
190
-
191
-
192
-
193
-
194
- ## [2.11.1](https://github.com/midwayjs/midway/compare/v2.11.0...v2.11.1) (2021-06-19)
195
-
196
- **Note:** Version bump only for package @midwayjs/typegoose
197
-
198
-
199
-
200
-
201
-
202
- # [2.11.0](https://github.com/midwayjs/midway/compare/v2.10.19...v2.11.0) (2021-06-10)
203
-
204
- **Note:** Version bump only for package @midwayjs/typegoose
205
-
206
-
207
-
208
-
209
-
210
- ## [2.10.18](https://github.com/midwayjs/midway/compare/v2.10.17...v2.10.18) (2021-05-26)
211
-
212
- **Note:** Version bump only for package @midwayjs/typegoose
213
-
214
-
215
-
216
-
217
-
218
- ## [2.10.14](https://github.com/midwayjs/midway/compare/v2.10.13...v2.10.14) (2021-05-11)
219
-
220
- **Note:** Version bump only for package @midwayjs/typegoose
221
-
222
-
223
-
224
-
225
-
226
- ## [2.10.13](https://github.com/midwayjs/midway/compare/v2.10.12...v2.10.13) (2021-05-08)
227
-
228
- **Note:** Version bump only for package @midwayjs/typegoose
229
-
230
-
231
-
232
-
233
-
234
- ## [2.10.12](https://github.com/midwayjs/midway/compare/v2.10.11...v2.10.12) (2021-05-07)
235
-
236
- **Note:** Version bump only for package @midwayjs/typegoose
237
-
238
-
239
-
240
-
241
-
242
- ## [2.10.11](https://github.com/midwayjs/midway/compare/v2.10.10...v2.10.11) (2021-04-29)
243
-
244
- **Note:** Version bump only for package @midwayjs/typegoose
245
-
246
-
247
-
248
-
249
-
250
- ## [2.10.10](https://github.com/midwayjs/midway/compare/v2.10.9...v2.10.10) (2021-04-24)
251
-
252
- **Note:** Version bump only for package @midwayjs/typegoose
253
-
254
-
255
-
256
-
257
-
258
- ## [2.10.9](https://github.com/midwayjs/midway/compare/v2.10.8...v2.10.9) (2021-04-21)
259
-
260
- **Note:** Version bump only for package @midwayjs/typegoose
261
-
262
-
263
-
264
-
265
-
266
- ## [2.10.8](https://github.com/midwayjs/midway/compare/v2.10.7...v2.10.8) (2021-04-21)
267
-
268
- **Note:** Version bump only for package @midwayjs/typegoose
269
-
270
-
271
-
272
-
273
-
274
- ## [2.10.7](https://github.com/midwayjs/midway/compare/v2.10.6...v2.10.7) (2021-04-17)
275
-
276
-
277
- ### Bug Fixes
278
-
279
- * add event name args ([#986](https://github.com/midwayjs/midway/issues/986)) ([bfd8232](https://github.com/midwayjs/midway/commit/bfd82320aee8600d8fa30bd2821a0e68c80fd755))
280
- * format ([#997](https://github.com/midwayjs/midway/issues/997)) ([456cc14](https://github.com/midwayjs/midway/commit/456cc14513bdb000d1aa3130e9719caf7a8a803f))
281
-
282
-
283
- ### Features
284
-
285
- * add midway task component ([#995](https://github.com/midwayjs/midway/issues/995)) ([befb81d](https://github.com/midwayjs/midway/commit/befb81dee90f01a20bba2c1835e8685cf85a76e7))
286
-
287
-
288
-
289
-
290
-
291
- ## [2.10.6](https://github.com/midwayjs/midway/compare/v2.10.5...v2.10.6) (2021-04-14)
292
-
293
- **Note:** Version bump only for package @midwayjs/typegoose
294
-
295
-
296
-
297
-
298
-
299
- ## [2.10.5](https://github.com/midwayjs/midway/compare/v2.10.4...v2.10.5) (2021-04-13)
300
-
301
- **Note:** Version bump only for package @midwayjs/typegoose
302
-
303
-
304
-
305
-
306
-
307
- ## [2.10.4](https://github.com/midwayjs/midway/compare/v2.10.3...v2.10.4) (2021-04-10)
308
-
309
- **Note:** Version bump only for package @midwayjs/typegoose
310
-
311
-
312
-
313
-
314
-
315
- ## [2.10.3](https://github.com/midwayjs/midway/compare/v2.10.2...v2.10.3) (2021-04-07)
316
-
317
- **Note:** Version bump only for package @midwayjs/typegoose
318
-
319
-
320
-
321
-
322
-
323
- ## [2.10.2](https://github.com/midwayjs/midway/compare/v2.10.1...v2.10.2) (2021-04-05)
324
-
325
- **Note:** Version bump only for package @midwayjs/typegoose
326
-
327
-
328
-
329
-
330
-
331
- # [2.10.0](https://github.com/midwayjs/midway/compare/v2.9.3...v2.10.0) (2021-04-02)
332
-
333
- **Note:** Version bump only for package @midwayjs/typegoose
334
-
335
-
336
-
337
-
338
-
339
- ## [2.9.3](https://github.com/midwayjs/midway/compare/v2.9.2...v2.9.3) (2021-03-30)
340
-
341
- **Note:** Version bump only for package @midwayjs/typegoose
342
-
343
-
344
-
345
-
346
-
347
- ## [2.9.2](https://github.com/midwayjs/midway/compare/v2.9.1...v2.9.2) (2021-03-27)
348
-
349
- **Note:** Version bump only for package @midwayjs/typegoose
350
-
351
-
352
-
353
-
354
-
355
- ## [2.9.1](https://github.com/midwayjs/midway/compare/v2.9.0...v2.9.1) (2021-03-24)
356
-
357
- **Note:** Version bump only for package @midwayjs/typegoose
358
-
359
-
360
-
361
-
362
-
363
- # [2.9.0](https://github.com/midwayjs/midway/compare/v2.8.13...v2.9.0) (2021-03-22)
364
-
365
- **Note:** Version bump only for package @midwayjs/typegoose
366
-
367
-
368
-
369
-
370
-
371
- ## [2.8.13](https://github.com/midwayjs/midway/compare/v2.8.12...v2.8.13) (2021-03-17)
372
-
373
- **Note:** Version bump only for package @midwayjs/typegoose
374
-
375
-
376
-
377
-
378
-
379
- ## [2.8.11](https://github.com/midwayjs/midway/compare/v2.8.10...v2.8.11) (2021-03-12)
380
-
381
- **Note:** Version bump only for package @midwayjs/typegoose
382
-
383
-
384
-
385
-
386
-
387
- ## [2.8.9](https://github.com/midwayjs/midway/compare/v2.8.8...v2.8.9) (2021-03-08)
388
-
389
- **Note:** Version bump only for package @midwayjs/typegoose
390
-
391
-
392
-
393
-
394
-
395
- ## [2.8.8](https://github.com/midwayjs/midway/compare/v2.8.7...v2.8.8) (2021-03-06)
396
-
397
- **Note:** Version bump only for package @midwayjs/typegoose
398
-
399
-
400
-
401
-
402
-
403
- ## [2.8.7](https://github.com/midwayjs/midway/compare/v2.8.6...v2.8.7) (2021-03-04)
404
-
405
- **Note:** Version bump only for package @midwayjs/typegoose
406
-
407
-
408
-
409
-
410
-
411
- ## [2.8.6](https://github.com/midwayjs/midway/compare/v2.8.5...v2.8.6) (2021-03-03)
412
-
413
- **Note:** Version bump only for package @midwayjs/typegoose
414
-
415
-
416
-
417
-
418
-
419
- ## [2.8.5](https://github.com/midwayjs/midway/compare/v2.8.4...v2.8.5) (2021-03-03)
420
-
421
- **Note:** Version bump only for package @midwayjs/typegoose
422
-
423
-
424
-
425
-
426
-
427
- ## [2.8.4](https://github.com/midwayjs/midway/compare/v2.8.3...v2.8.4) (2021-03-03)
428
-
429
- **Note:** Version bump only for package @midwayjs/typegoose
430
-
431
-
432
-
433
-
434
-
435
- ## [2.8.3](https://github.com/midwayjs/midway/compare/v2.8.2...v2.8.3) (2021-03-01)
436
-
437
- **Note:** Version bump only for package @midwayjs/typegoose
438
-
439
-
440
-
441
-
442
-
443
- ## [2.8.2](https://github.com/midwayjs/midway/compare/v2.8.0...v2.8.2) (2021-02-27)
444
-
445
- **Note:** Version bump only for package @midwayjs/typegoose
446
-
447
-
448
-
449
-
450
-
451
- # [2.8.0](https://github.com/midwayjs/midway/compare/v2.7.7...v2.8.0) (2021-02-24)
452
-
453
- **Note:** Version bump only for package @midwayjs/typegoose
454
-
455
-
456
-
457
-
458
-
459
- ## [2.7.7](https://github.com/midwayjs/midway/compare/v2.7.6...v2.7.7) (2021-02-20)
460
-
461
- **Note:** Version bump only for package @midwayjs/typegoose
462
-
463
-
464
-
465
-
466
-
467
- ## [2.7.5](https://github.com/midwayjs/midway/compare/v2.7.4...v2.7.5) (2021-02-08)
468
-
469
- **Note:** Version bump only for package @midwayjs/typegoose
470
-
471
-
472
-
473
-
474
-
475
- ## [2.7.3](https://github.com/midwayjs/midway/compare/v2.7.2...v2.7.3) (2021-02-02)
476
-
477
-
478
- ### Bug Fixes
479
-
480
- * egg socket io missing session middleware ([#835](https://github.com/midwayjs/midway/issues/835)) ([6e605a1](https://github.com/midwayjs/midway/commit/6e605a15b64bf51182b393b68d66d0867c571b94))
481
-
482
-
483
-
484
-
485
-
486
- ## [2.7.2](https://github.com/midwayjs/midway/compare/v2.7.1...v2.7.2) (2021-01-28)
487
-
488
- **Note:** Version bump only for package @midwayjs/typegoose
489
-
490
-
491
-
492
-
493
-
494
- ## [2.7.1](https://github.com/midwayjs/midway/compare/v2.7.0...v2.7.1) (2021-01-28)
495
-
496
- **Note:** Version bump only for package @midwayjs/typegoose
497
-
498
-
499
-
500
-
501
-
502
- # [2.7.0](https://github.com/midwayjs/midway/compare/v2.6.13...v2.7.0) (2021-01-27)
503
-
504
-
505
- ### Features
506
-
507
- * support entry file in bootstrap ([#819](https://github.com/midwayjs/midway/issues/819)) ([49a5ff6](https://github.com/midwayjs/midway/commit/49a5ff662134bdd42dc3a80738b44a05138f8f7c))