Skip to content

Commit fe3da0e

Browse files
authoredJan 13, 2025
Merge pull request #1887 from Shopify/remove-lru-redux
remove lru-redux
2 parents 0558bd1 + e200c45 commit fe3da0e

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed
 

‎lib/liquid/context.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "lru_redux"
4-
53
module Liquid
64
# Context keeps the variable stack and resolves variables, as well as keywords
75
#
@@ -41,7 +39,6 @@ def initialize(environments = {}, outer_scope = {}, registers = {}, rethrow_erro
4139
@filters = []
4240
@global_filter = nil
4341
@disabled_tags = {}
44-
@expression_cache = LruRedux::ThreadSafeCache.new(1000)
4542

4643
# Instead of constructing new StringScanner objects for each Expression parse,
4744
# we recycle the same one.
@@ -183,7 +180,7 @@ def []=(key, value)
183180
# Example:
184181
# products == empty #=> products.empty?
185182
def [](expression)
186-
evaluate(Expression.parse(expression, @string_scanner, @expression_cache))
183+
evaluate(Expression.parse(expression, @string_scanner))
187184
end
188185

189186
def key?(key)

‎lib/liquid/expression.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "lru_redux"
4-
53
module Liquid
64
class Expression
75
LITERALS = {

‎lib/liquid/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# frozen_string_literal: true
33

44
module Liquid
5-
VERSION = "5.6.2"
5+
VERSION = "5.6.3"
66
end

0 commit comments

Comments
 (0)
Failed to load comments.