---
title: "nunjucks 3.0.0 Breaking Changes on npm | Since.dev"
description: "What each nunjucks release removed, renamed or changed: 6 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/nunjucks
last_updated: 2026-12-04
---

# nunjucks breaking changes

nunjucks 3.0.0 (November 5, 2016) is its newest release with breaking changes, 3 of them. The first: Macros can no longer see or affect their calling scope in nunjucks 3.0.0. Every breaking API change we have recorded in nunjucks on npm: 6 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.2.4`, released April 13, 2023. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 3 breaking changes in 1 version.

## nunjucks 3.0.0 breaking changes

nunjucks 3.0.0, released November 5, 2016: 3 breaking changes.

- **Behavior changed**  

Macros are isolated from the scope that calls them. Templates that relied on macros reading or setting variables in the caller must pass those values in explicitly. [github.com](https://github.com/mozilla/nunjucks/releases/tag/v3.0.0)
- **Behavior changed**  

Variables set inside blocks no longer leak out of the block, base templates cannot see vars set in templates that inherit them, and super() cannot set vars in its calling scope. Check templates that rely on these leaks. [github.com](https://github.com/mozilla/nunjucks/releases/tag/v3.0.0)
- **Behavior changed**  

Setting a variable to null (none) is now kept instead of falling back to the frame stack or context. Templates relying on the old fallback may render differently. [github.com](https://github.com/mozilla/nunjucks/releases/tag/v3.0.0)

## nunjucks 2.0.0 breaking changes

nunjucks 2.0.0, released August 28, 2015: 3 breaking changes.

- **Behavior changed** `default`  

The default filter now returns false-y values like false and null unchanged; pass true as a third argument to keep the old loose behavior. [github.com](https://github.com/mozilla/nunjucks/releases/tag/v2.0.0)
- **Default changed** `autoescape`  

Templates escape output by default; pass { autoescape: false } in the options to turn it off. [github.com](https://github.com/mozilla/nunjucks/releases/tag/v2.0.0)
- **Default changed** `watch`  

The file watcher no longer starts automatically; pass { watch: true } to start it. [github.com](https://github.com/mozilla/nunjucks/releases/tag/v2.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
