refactor: simplify depthLimit in partial tags and tighten security docs

Drop try/finally around depthLimit in include, layout, and render; release at generator end. Consolidate production guidance in security-model.md. Fix padded-blocks lint in dos.spec.ts.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Yang Jun
2026-07-15 00:37:06 +08:00
co-authored by Cursor
parent 1000d1a369
commit b48d01f913
5 changed files with 55 additions and 72 deletions
-1
View File
@@ -54,7 +54,6 @@ describe('DoS related', function () {
await expect(liquid.parseAndRender('{% render "large" %}')).rejects.toThrow('template limit exceeded')
await expect(liquid.parseAndRender('{% render "small" %}')).resolves.toBe('12345')
})
})
describe('#outputLengthLimit', () => {