Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogagliardi authored Apr 22, 2022
1 parent 1e5d970 commit cee470a
Show file tree
Hide file tree
Showing 8 changed files with 5,929 additions and 1,695 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
. "$(dirname "$0")/_/husky.sh"

npm test
npm run lint
npm run build:esm
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.0] - 2022-04-22

## Changed

- React v18, Leaflet v1.8, and react-leaflet v4.0 are now required as peer dependencies.

[1.1.0]: https://github.com/elkrange/maroon-bells-react-integration/compare/v1.0.1...v1.1.0
5 changes: 4 additions & 1 deletion __tests__/ResetViewControl.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from "react";

import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import "@testing-library/jest-dom";

import { MapContainer, useMapEvents } from "react-leaflet";
import ResetViewControl from "../src/ResetViewControl";
import { ResetViewControlOptions } from "../src/ResetViewControl";

import type { ResetViewControlOptions } from "../src/ResetViewControl";

describe("ResetViewControl", () => {
const mockHandleViewReset = jest.fn();
Expand Down
7 changes: 7 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: [
"@babel/preset-env",
"@babel/preset-typescript",
"@babel/preset-react",
],
};
Loading

0 comments on commit cee470a

Please sign in to comment.