Comparing version 10.3.3 to 10.4.0
@@ -0,1 +1,9 @@ | ||
# [10.4.0](https://github.com/harttle/liquidjs/compare/v10.3.3...v10.4.0) (2023-01-02) | ||
### Features | ||
* support `not` operator, [#575](https://github.com/harttle/liquidjs/issues/575) ([3f21382](https://github.com/harttle/liquidjs/commit/3f21382d43cafa1e32162e58adabd22d5c3709ed)) | ||
* support calling `date` without format string, [#573](https://github.com/harttle/liquidjs/issues/573) ([aafaa0b](https://github.com/harttle/liquidjs/commit/aafaa0b4f9e84f466fbcc2cb2ae37fe8704c5272)) | ||
## [10.3.3](https://github.com/harttle/liquidjs/compare/v10.3.2...v10.3.3) (2022-12-18) | ||
@@ -2,0 +10,0 @@ |
import { FilterImpl } from '../template'; | ||
export declare function date(this: FilterImpl, v: string | Date, format: string, timezoneOffset?: number | string): string | Date; | ||
export declare function date(this: FilterImpl, v: string | Date, format?: string, timezoneOffset?: number | string): string | Date; |
import { Token, QuotedToken } from '../tokens'; | ||
import { Context } from '../context'; | ||
import type { Context } from '../context'; | ||
export declare class Expression { | ||
@@ -4,0 +4,0 @@ private postfix; |
import { Context } from '../context'; | ||
export declare type OperatorHandler = (lhs: any, rhs: any, ctx: Context) => boolean; | ||
export declare type UnaryOperatorHandler = (operand: any, ctx: Context) => boolean; | ||
export declare type BinaryOperatorHandler = (lhs: any, rhs: any, ctx: Context) => boolean; | ||
export declare type OperatorHandler = UnaryOperatorHandler | BinaryOperatorHandler; | ||
export declare type Operators = Record<string, OperatorHandler>; | ||
export declare const defaultOperators: Operators; |
import { Token } from './token'; | ||
export declare const precedence: { | ||
export declare const enum OperatorType { | ||
Binary = 0, | ||
Unary = 1 | ||
} | ||
export declare const operatorPrecedences: { | ||
'==': number; | ||
@@ -10,5 +14,18 @@ '!=': number; | ||
contains: number; | ||
not: number; | ||
and: number; | ||
or: number; | ||
}; | ||
export declare const operatorTypes: { | ||
'==': OperatorType; | ||
'!=': OperatorType; | ||
'>': OperatorType; | ||
'<': OperatorType; | ||
'>=': OperatorType; | ||
'<=': OperatorType; | ||
contains: OperatorType; | ||
not: OperatorType; | ||
and: OperatorType; | ||
or: OperatorType; | ||
}; | ||
export declare class OperatorToken extends Token { | ||
@@ -15,0 +32,0 @@ input: string; |
{ | ||
"name": "liquidjs", | ||
"version": "10.3.3", | ||
"version": "10.4.0", | ||
"description": "A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/liquid.node.cjs.js", |
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
1265787
17006