Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
642e52d
feat(v3): use react-query, use rollup, use lerna moon + moon-axios (#17)
amen-souissi Oct 6, 2020
b881f63
Update npm-publish.yml
amen-souissi Oct 6, 2020
3b609c4
chore(readme), update (#18)
amen-souissi Oct 6, 2020
9ec0c05
chore(query): remove useeffect (#19)
amen-souissi Oct 6, 2020
3a17459
chore(prettier): format (#20)
amen-souissi Oct 6, 2020
3ff09da
chore(package): fix types path (#21)
amen-souissi Oct 16, 2020
62e391f
chore(package): fix types path
amen-souissi Oct 16, 2020
8834ba7
V4 (#23)
amen-souissi Dec 14, 2020
57d1486
chore(versions): upgrade react-query (#24)
amen-souissi Dec 23, 2020
42961cd
chore(deps-dev): bump axios from 0.21.0 to 0.21.1 (#26)
dependabot[bot] Jan 13, 2021
1a559e0
chore(deps): bump node-notifier from 8.0.0 to 8.0.1 (#25)
dependabot[bot] Jan 13, 2021
ae3b2d6
feat(graphql): add the moon graphql connector (#28)
amen-souissi May 6, 2021
f428173
fix: update react-query version, improve TS types (#29)
amen-souissi May 9, 2021
29db078
chore(hooks): fix useQueryresult-state hooks (#32)
amen-souissi May 14, 2021
55c8049
chore(useQuery): cancel previous query before refetch (#33)
amen-souissi May 16, 2021
a1b3b2c
feat(prefetch): add usePrefetchQuery hook (#34)
amen-souissi May 17, 2021
c1ecb05
fix(graphqlConnector): throw error (#35)
amen-souissi May 19, 2021
02d1d5c
feat(axios): add patch mutation (#36)
amen-souissi May 19, 2021
640d537
fix(TS): clientFactory is optional (#37)
amen-souissi May 19, 2021
88fc8ff
fix(MoonGraphQL): fix mutation (#40)
amen-souissi Jul 2, 2021
c425475
chore(Observers): update observers if query id changes (#41)
amen-souissi Jul 12, 2021
2caca61
chore(react-query): upgrade react query version (#43)
amen-souissi Sep 14, 2021
f51c165
chore(Moon): expose dynamic mutate
amen-souissi Nov 10, 2021
9f4ebb3
chore(Moon): use variables arg
amen-souissi Nov 10, 2021
0b25756
feat(Moon): use custom mutation fn
amen-souissi Jun 12, 2023
8677135
chore(Package): to pricemoov oss
amen-souissi Jun 12, 2023
68bfb70
Merge pull request #1 from PricemoovOSS/feat/use-cutom-mutation-fn
amen-souissi Jun 12, 2023
01f75de
Update npm-publish.yml
amen-souissi Jun 12, 2023
863d571
doc(Package): update doc
amen-souissi Jun 12, 2023
222e904
chore(Package): update github action workflow
amen-souissi Jun 12, 2023
66de7c9
chore(Package): update publish workflow
amen-souissi Jun 12, 2023
7958c93
chore(gh-actions): use node 16
amen-souissi Jun 12, 2023
e96f5af
chore(gh-actions): use node 14
amen-souissi Jun 12, 2023
c23e8e6
chore(packages): publish all packages
amen-souissi Jun 12, 2023
bc81824
chore(useMutation): fix mutation result prop
amen-souissi Aug 29, 2023
52c3b0c
chore(ci): use old lock file
amen-souissi Aug 29, 2023
170984b
chore(ci): use old lock file
amen-souissi Aug 29, 2023
ca34fab
chore(versions): upgrade packages
amen-souissi Aug 29, 2023
c8b7660
chore(versions): upgrade packages
amen-souissi Aug 29, 2023
798a2ec
chore(versions): upgrade packages
amen-souissi Aug 29, 2023
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
17 changes: 16 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
coverage/*
dist/*
lib/*
test/polyfill/array.find.polyfill.js
test/tests.entry.js
test/global-test-setup
node_modules/*
README.md
stats.json
jest-test-results.json
.vscode/*
rollup.config.js
.vscode/*


packages/**/coverage/*
packages/**/dist/*
packages/**/lib/*
packages/**/test/polyfill/array.find.polyfill.js
packages/**/test/tests.entry.js
packages/**/test/global-test-setup
packages/**/node_modules/*
packages/**/README.md
packages/**/stats.json
packages/**/jest-test-results.json
packages/**/rollup.config.js
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
},
plugins: ["react", "@typescript-eslint", "jest"],
rules: {
"import/no-extraneous-dependencies": 0,
"@typescript-eslint/interface-name-prefix": 0,
"import/no-unresolved": 0,
"react/jsx-props-no-spreading": 0,
Expand Down Expand Up @@ -54,6 +55,10 @@ module.exports = {
"no-unused-expressions": 1,
"jsx-a11y/click-events-have-key-events": 1,
"jsx-a11y/no-static-element-interactions": 1,
"max-classes-per-file": 1
"max-classes-per-file": 1,
"no-unused-vars": 1,
"react/require-default-props": 1,
"react/default-props-match-prop-types": 1,
"react/no-unused-prop-types": 1
}
};
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
#### Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [Moon team](mailto:amen.souissi@decathlon.com). All complaints will be reviewed and investigated and will result in a response that
reported by contacting the project team at [Moon team](mailto:amen.souissi@pricemoov-oss.com). All complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

Please describe your pull request.

💔Thank you!
Thank you!
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v1
- name: Run tests
run: |
npm ci
npm i -g npm@6.14.17 --registry=https://registry.npmjs.org
npm -v
npm ci --legacy-peer-deps
npm run test
npm run lint
18 changes: 12 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: Git checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: npm publish --access public
- name: Build
run: |
npm ci
npm run build
- name: Publish
run: npm run publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ coverage
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
dist/
lib/

# Dependency directories
node_modules/
Expand Down
11 changes: 10 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
coverage/*
dist/*
lib/*
node_modules/*
README.md
stats.json
jest-test-results.json
.vscode/*
.vscode/*

packages/**/coverage/*
packages/**/dist/*
packages/**/lib/*
packages/**/node_modules/*
packages/**/README.md
packages/**/stats.json
packages/**/jest-test-results.json
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Contributing to @decathlon/moon
## Contributing to @pricemoov-oss/moon

First off, thanks for taking the time to contribute!

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Decathlon
Copyright 2020 PricemoovOSS

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading