Skip to content

Commit

Permalink
filterer: rename filters to filterer
Browse files Browse the repository at this point in the history
Makes it consistent with the other pugneum packages with -er suffix.
I'll try to unpublish the old packages later.
  • Loading branch information
matheusmoreira committed Sep 1, 2023
1 parent de5a6fa commit 5a43c3d
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 17 deletions.
26 changes: 20 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"packages/parser",
"packages/loader",
"packages/linker",
"packages/filters",
"packages/filterer",
"packages/renderer",
"packages/walker",
"packages/pugneum",
Expand Down
4 changes: 2 additions & 2 deletions packages/filter/highlight.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"highlight.js": "^11.8.0"
},
"peerDependencies": {
"pugneum-filters": "^0.1.1"
"pugneum-filterer": "^0.1.1"
},
"devDependencies": {
"pugneum-lexer": "^0.1.0",
"pugneum-parser": "^0.1.0",
"pugneum-filters": "^0.1.1"
"pugneum-filterer": "^0.1.1"
}
}
2 changes: 1 addition & 1 deletion packages/filter/highlight.js/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs');

const lex = require('pugneum-lexer');
const parse = require('pugneum-parser');
const filter = require('pugneum-filters');
const filter = require('pugneum-filterer');

const hljs = require('../');
const customFilters = { 'highlight': hljs };
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions packages/filters/README.md → packages/filterer/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# pugneum-filters
# pugneum-filterer

Code for processing filters in pugneum templates

## Installation

npm install pugneum-filters
npm install pugneum-filterer

## Usage

```
var filter = require('pugneum-filters');
var filter = require('pugneum-filterer');
```

### `filter(ast, filters)`
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pugneum-filters",
"name": "pugneum-filterer",
"version": "0.1.1",
"description": "Applies filters to pugneum templates",
"keywords": [
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/pugneum/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const parse = require('pugneum-parser');
const load = require('pugneum-loader');
const link = require('pugneum-linker');
const render = require('pugneum-renderer');
const filters = require('pugneum-filters');
const filter = require('pugneum-filterer');

function renderPugneum(string, options) {
options ||= {};
Expand Down
2 changes: 1 addition & 1 deletion packages/pugneum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pugneum-loader": "^0.1.0",
"pugneum-linker": "^0.1.0",
"pugneum-renderer": "^0.1.0",
"pugneum-filters": "^0.1.0"
"pugneum-filterer": "^0.1.0"
},
"bin": {
"pugneum": "cli.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Compiler.prototype = {
' which is not supported by the pugneum compiler';
switch (node.type) {
case 'Filter':
msg += '; use pugneum-filters';
msg += '; use pugneum-filterer';
break;
case 'Extends':
case 'Include':
Expand Down

0 comments on commit 5a43c3d

Please sign in to comment.