Skip to content

Commit

Permalink
feat(reducers): cache reducer for increased performance - @puppybits (#…
Browse files Browse the repository at this point in the history
…431)

* feat(reducers): cache reducer for increased performance - @puppybits (#335)
* feat(core): add mutate method for easier transactions - @puppybits 
* feat(core): add lodash module replacement webpack plugin - @puppybits 
* feat(core): replace uglify webpack plugin with terser webpack plugin - @puppybits 
* feat(build): add `firebase/firestore` as a webpack an external (improves UMD bundle size by not including Firestore SDK bundle)

BREAKING CHANGES
Firebase peer dependency now set to ^9 (previously ^8)
  • Loading branch information
prescottprue committed May 1, 2023
1 parent 0c1a738 commit fd3e2d8
Show file tree
Hide file tree
Showing 47 changed files with 68,683 additions and 6,016 deletions.
45 changes: 22 additions & 23 deletions .eslintrc.js
@@ -1,42 +1,41 @@
module.exports = {
root: true,
parser: 'babel-eslint',
extends: [
'airbnb-base',
'google',
'prettier',
'plugin:jsdoc/recommended'
],
plugins: [
'babel',
'prettier',
'jsdoc'
],
extends: ['airbnb-base', 'google', 'prettier', 'plugin:jsdoc/recommended'],
plugins: ['babel', 'prettier', 'jsdoc'],
env: {
browser: true,
es6: true,
node: true
node: true,
},
settings: {
'import/resolver': {
node: {
moduleDirectory: ['node_modules', '/']
}
}
moduleDirectory: ['node_modules', '/'],
},
},
},
rules: {
'prettier/prettier': ['error', {
'singleQuote': true,
'trailingComma': 'all'
}],
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
},
],
'no-console': 'error',
'valid-jsdoc': 0, // from google
'no-confusing-arrow': 0,
'no-case-declarations': 0,
'arrow-parens': [2, 'as-needed'],
'arrow-parens': [2, 'always'],
'prefer-default-export': 0,
'jsdoc/newline-after-description': 0,
'jsdoc/empty-tags': 0, // still add docs functions marked private
'jsdoc/no-undefined-types': [1, { definedTypes: ['firebase'] }]
}
}
'jsdoc/no-undefined-types': [
1,
{
definedTypes: ['firebase', 'Mutation_v1', 'Mutation_v2', 'firstore'],
},
],
},
};
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Expand Up @@ -43,10 +43,12 @@ jobs:
run: yarn test:cov

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# NOTE: ^19 is ESM and was causing a break
semantic_version: ^18
branches: |
[
'+([0-9])?(.{+([0-9]),x}).x',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
run: yarn test:cov

- name: Upload coverage to Codecov
if: matrix.node-version == '12.x'
if: matrix.node-version == '14.x'
uses: codecov/codecov-action@v3

- name: Run Build
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
yarn lint-staged
1 change: 1 addition & 0 deletions .prettierrc.js
@@ -1,4 +1,5 @@
module.exports = {
singleQuote: true, // Airbnb
trailingComma: 'all',
arrowParens: 'always',
};

0 comments on commit fd3e2d8

Please sign in to comment.