Skip to content

Commit

Permalink
Release V1.3.0 (#12)
Browse files Browse the repository at this point in the history
* Release V1.3.0

* Update README.md

* Update package.json
  • Loading branch information
krishpe authored Jun 17, 2020
1 parent 24f25a3 commit a38962d
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 27 deletions.
46 changes: 46 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"files": ["README.md"],
"imageSize": 100,
"contributorsPerLine": 7,
"contributorsSortAlphabetically": false,
"badgeTemplate": "[![All Contributors](https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg?style=flat-square)](#contributors)",
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
"types": {
"custom": {
"symbol": "🔭",
"description": "A custom contribution type.",
"link": "[<%= symbol %>](<%= url %> \"<%= description %>\"),"
}
},
"skipCi": "true",
"contributors": [
{
"login": "krishpe",
"name": "Krish",
"avatar_url": "https://avatars3.githubusercontent.com/u/64515207",
"profile": "https://krishcdbry.com",
"contributions": [
"doc",
"tool",
"infra",
"maintenance",
"review",
"question"
]
},
{
"login": "sandeep-r-bharatpe",
"name": "Sandeep Rawat",
"avatar_url": "https://avatars0.githubusercontent.com/u/61680562",
"profile": "https://github.com/sandeep-r-bharatpe",
"contributions": [
"doc",
"tool",
"infra",
"maintenance",
"review",
"question"
]
}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# g-mapify [![NPM version](https://img.shields.io/npm/v/g-mapify.svg)](https://www.npmjs.com/package/g-mapify) [![Downloads](http://img.shields.io/npm/dm/g-mapify.svg)](https://npmjs.org/package/g-mapify)
# g-mapify [![NPM version](https://img.shields.io/npm/v/g-mapify.svg)](https://www.npmjs.com/package/g-mapify) [![Downloads](http://img.shields.io/npm/dm/g-mapify.svg)](https://npmjs.org/package/g-mapify) [![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
Flexible react google map with more options of search, pick & select.

![g-mapify](https://raw.githubusercontent.com/bharatpe/g-mapify/master/g-mapify.png)
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.modern.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const App = () => {
const [inputVal, setInputval] = useState('');
const refs = useRef(null);

const onMapSelect = useCallback((status, data) => {
const onMapSelect = (status, data) => {
console.warn('Map Data', data);

// get formatted address from google map address_components
const formattedAddress = AddressFormatter(data.address_components);
console.warn('formated address', formattedAddress);
}, []);
};

const onMapButtonClicked = useCallback(() => {
setShowSearchMap(() => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "g-mapify",
"version": "1.2.0",
"version": "1.3.0",
"description": "Flexible react google map with more options of search, pick & select.",
"author": "BharatPe TM",
"license": "ISC",
Expand All @@ -12,6 +12,7 @@
"node": ">=10"
},
"scripts": {
"build:prod": "microbundle-crl --compress --no-sourcemap --define process.env.NODE_ENV=production --format modern,cjs",
"build": "microbundle-crl --compress --no-sourcemap --format modern,cjs",
"start": "microbundle-crl watch --no-compress --format modern,cjs",
"prepare": "run-s build",
Expand Down
14 changes: 1 addition & 13 deletions releases.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# Releases

## 1.1.0
- Google map component
- No changes
- Address formatter
- Optimized


## 1.0.0
- Google map component
- Basic map
- Map with options
- Map with search
- Transparent wrapper with location picker
[Releases](https://github.com/bharatpe/g-mapify/releases)
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
export { default as GMapify } from "./Gmapify";
export { default as AddressFormatter } from "./utils/addressFormatter_";

const pjson = require("../package.json");
console.log(
` >> 🗺🗺🗺 G-Mapify : Version: ${pjson.version}, Build: ${process.env.NODE_ENV} <<`
);
12 changes: 6 additions & 6 deletions src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ExampleComponent } from '.'
import { ExampleComponent } from ".";

describe('ExampleComponent', () => {
it('is truthy', () => {
expect(ExampleComponent).toBeTruthy()
})
})
describe("ExampleComponent", () => {
it("is truthy", () => {
expect(ExampleComponent).toBeTruthy();
});
});

0 comments on commit a38962d

Please sign in to comment.