Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.2.1 #28

Merged
merged 1 commit into from
Oct 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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