Comparing version 9.37.0 to 9.38.0
@@ -0,1 +1,13 @@ | ||
# [9.38.0](https://github.com/harttle/liquidjs/compare/v9.37.0...v9.38.0) (2022-07-07) | ||
### Bug Fixes | ||
* stack overflow on large number of templates, [#513](https://github.com/harttle/liquidjs/issues/513) ([3dc4290](https://github.com/harttle/liquidjs/commit/3dc4290b56265cfafbee8d9836e912d9b8492f90)) | ||
### Features | ||
* inline comment tag ([#514](https://github.com/harttle/liquidjs/issues/514)) ([2f87708](https://github.com/harttle/liquidjs/commit/2f8770898963e35ac4491f6975a8abd03dc09067)) | ||
# [9.37.0](https://github.com/harttle/liquidjs/compare/v9.36.2...v9.37.0) (2022-04-21) | ||
@@ -2,0 +14,0 @@ |
@@ -0,1 +1,2 @@ | ||
import type { Template } from '../template/template'; | ||
export interface Cache<T> { | ||
@@ -6,1 +7,2 @@ write(key: string, value: T): void | Promise<void>; | ||
} | ||
export declare type LiquidCache = Cache<Template[] | Promise<Template[]>>; |
@@ -1,7 +0,5 @@ | ||
import { Template } from './template/template'; | ||
import { Cache } from './cache/cache'; | ||
import { LiquidCache } from './cache/cache'; | ||
import { FS } from './fs/fs'; | ||
import { Operators } from './render/operator'; | ||
import { Trie } from './util/operator-trie'; | ||
import { Thenable } from './util/async'; | ||
declare type OutputEscape = (value: any) => string; | ||
@@ -23,3 +21,3 @@ declare type OutputEscapeOption = 'escape' | 'json' | OutputEscape; | ||
/** Whether or not to cache resolved templates. Defaults to `false`. */ | ||
cache?: boolean | number | Cache<Thenable<Template[]>>; | ||
cache?: boolean | number | LiquidCache; | ||
/** Use Javascript Truthiness. Defaults to `false`. */ | ||
@@ -94,3 +92,3 @@ jsTruthy?: boolean; | ||
layouts?: string[]; | ||
cache?: Cache<Thenable<Template[]>>; | ||
cache?: LiquidCache; | ||
outputEscape?: OutputEscape; | ||
@@ -106,3 +104,3 @@ operatorsTrie?: Trie; | ||
extname: string; | ||
cache: undefined | Cache<Thenable<Template[]>>; | ||
cache?: LiquidCache; | ||
jsTruthy: boolean; | ||
@@ -109,0 +107,0 @@ dynamicPartials: boolean; |
@@ -13,3 +13,3 @@ import { Liquid } from '../liquid'; | ||
private fs; | ||
private cache; | ||
private cache?; | ||
private loader; | ||
@@ -16,0 +16,0 @@ constructor(liquid: Liquid); |
@@ -49,2 +49,3 @@ import { IdentifierToken } from '../tokens/identifier-token'; | ||
readIdentifier(): IdentifierToken; | ||
readTagName(): string; | ||
readHashes(jekyllStyle?: boolean): HashToken[]; | ||
@@ -51,0 +52,0 @@ readHash(jekyllStyle?: boolean): HashToken | undefined; |
@@ -6,5 +6,5 @@ declare type resolver = (x?: any) => any; | ||
} | ||
export declare function toThenable<T>(val: IteratorResult<unknown, T> | Thenable<T> | any): Thenable<T>; | ||
export declare function toPromise<T>(val: Generator<unknown, T, unknown> | Thenable<T> | T): Promise<T>; | ||
export declare function toValue<T>(val: Generator<unknown, T, unknown> | Thenable<T> | T): T; | ||
export declare function toValue<T>(val: Generator<unknown, T, unknown> | T): T; | ||
export declare const toThenable: typeof toPromise; | ||
export {}; |
{ | ||
"name": "liquidjs", | ||
"version": "9.37.0", | ||
"version": "9.38.0", | ||
"description": "A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.", | ||
@@ -94,3 +94,3 @@ "main": "dist/liquid.node.cjs.js", | ||
"husky": "^4.2.5", | ||
"jsdom": "^13.2.0", | ||
"jsdom": "^16.5.0", | ||
"mocha": "^9.0.1", | ||
@@ -102,5 +102,5 @@ "nyc": "^15.1.0", | ||
"rollup-plugin-typescript2": "^0.31.1", | ||
"rollup-plugin-uglify": "^5.0.2", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"rollup-plugin-version-injector": "^1.3.3", | ||
"semantic-release": "^17.2.3", | ||
"semantic-release": "^19.0.3", | ||
"sinon": "^7.5.0", | ||
@@ -107,0 +107,0 @@ "sinon-chai": "^3.3.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1356985
123
19171