Skip to content

Commit

Permalink
Merge pull request #28 from brianneisler/release/v0.2.1
Browse files Browse the repository at this point in the history
Release v0.2.1
  • Loading branch information
brianneisler authored Oct 30, 2020
2 parents dcb1f79 + dff3c58 commit c59b1ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

### function setupContext()

[source](https://github.com/brianneisler/firemin.git/tree/v0.2.0/src/context/setupContext.js#L74)      since v0.1.0
[source](https://github.com/brianneisler/firemin.git/tree/v0.2.1/src/context/setupContext.js#L74)      since v0.1.0
<p>Sets up the Context object for use by the parser and minimizer</p>

**Params**
Expand All @@ -36,7 +36,7 @@ const contxt = setupContext()

### function minimize()

[source](https://github.com/brianneisler/firemin.git/tree/v0.2.0/src/minimizer/minimize.js#L11)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
[source](https://github.com/brianneisler/firemin.git/tree/v0.2.1/src/minimizer/minimize.js#L11)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
<p>Minimizes the rules contained at the given filePath.<br />
If given an outputFilePath this method will output the result to the given<br />
file path instead of returning a minimize string.</p>
Expand Down Expand Up @@ -72,7 +72,7 @@ await minimize(context, {

### function parse()

[source](https://github.com/brianneisler/firemin.git/tree/v0.2.0/src/parser/parse.js#L4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
[source](https://github.com/brianneisler/firemin.git/tree/v0.2.1/src/parser/parse.js#L4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
<p>parses the rules file at the given <code>filePath</code> or parse the given <code>string</code>.</p>

**Params**
Expand Down Expand Up @@ -105,7 +105,7 @@ const ast = await minimize(context, {

### **private** function cacheChain()

[source](https://github.com/brianneisler/firemin.git/tree/v0.2.0/src/utils/cacheChain.js#L42)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
[source](https://github.com/brianneisler/firemin.git/tree/v0.2.1/src/utils/cacheChain.js#L42)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
<p>This method generates a specific object instance for use in a WeakMap cache.<br />
The object instance is unique based upon the parameters that are passed to<br />
the this method.</p>
Expand All @@ -129,7 +129,7 @@ cache chains connected to the object will automatically be removed from the cach

### **private** function functionDefineLength()

[source](https://github.com/brianneisler/firemin.git/tree/v0.2.0/src/utils/functionDefineLength.js#L55)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
[source](https://github.com/brianneisler/firemin.git/tree/v0.2.1/src/utils/functionDefineLength.js#L55)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; since v0.1.0
<p>Defines <code>length</code> for the given <code>func</code></p>
<p>Note: This mutates <code>func</code></p>

Expand Down
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
{
"name": "firemin",
"version": "0.2.0",
"version": "0.2.1",
"description": "Firebase Firestore/Storage security rules minifier",
"author": "Brian Neisler <hello@brianneisler.com>",
"license": "Apache-2.0",
Expand Down

0 comments on commit c59b1ec

Please sign in to comment.