Skip to content

Commit 8aacc44

Browse files
committed
Migration to @nuxtjs/leaflet
Update every URLs and namespaces. Add changelog for first release under @nuxtjs/leaflet.
1 parent 58a4819 commit 8aacc44

File tree

6 files changed

+39
-23
lines changed

6 files changed

+39
-23
lines changed

CHANGELOG.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
# Changelog
22

3+
## v1.0.14
4+
5+
This release is a migration from the old `nuxt3-leaflet` module to the new `@nuxtjs/leaflet` module.
6+
It includes the exact same features as version `1.0.13` of the old module.
7+
8+
Consider that this is the new module's first stable release, as previous versions are not available on npm through the `@nuxtjs` namespace.
9+
10+
### ❤️ Contributors
11+
12+
- Gugustinette <[email protected]>
13+
- Daniel Roe <[email protected]>
14+
315
## v1.0.13
416

517
This release drops the old `leaflet-runtime.ts` to take advantage of the [Vue Leaflet behavior](https://github.com/vue-leaflet/vue-leaflet/blob/db34dff79cc62bc6fa51357e953e9bcf55725c94/src/components/LMap.vue#L250-L256) when importing Leaflet.
618
This prevent Leaflet from being imported literally everywhere in the app, even if it isn't used.
719

820
### 🏡 Chore
921

10-
- **Drop Leaflet runtime import:** [#1](https://github.com/Gugustinette/Nuxt-Leaflet/issues/1)
22+
- **Drop Leaflet runtime import:** [#1](https://github.com/nuxt-modules/leaflet/issues/1)
1123

1224
### ❤️ Contributors
1325

@@ -20,8 +32,8 @@ Initial Release
2032

2133
### 🏡 Chore
2234

23-
- **Auto-import Vue Leaflet components:** [v1.0.1](https://github.com/Gugustinette/Nuxt-Leaflet/commit/ae50d3ef634b4903878f3c2b81b0ba7a71795707#diff-9b09a2431586002325ecf88d666c07eedba4dbdec83acfa5890526aa2e18764c)
24-
- **Auto-import Leaflet as L:** [v1.0.3](https://github.com/Gugustinette/Nuxt-Leaflet/commit/67f25f8c8cf59e1c89711e7a938dd292d4e358df#diff-082d2c8211be1dd40cb6dc5a124074d5bb825b41568250ce265dfa4d3e0c601a)
35+
- **Auto-import Vue Leaflet components:** [v1.0.1](https://github.com/nuxt-modules/leaflet/commit/ae50d3ef634b4903878f3c2b81b0ba7a71795707#diff-9b09a2431586002325ecf88d666c07eedba4dbdec83acfa5890526aa2e18764c)
36+
- **Auto-import Leaflet as L:** [v1.0.3](https://github.com/nuxt-modules/leaflet/commit/67f25f8c8cf59e1c89711e7a938dd292d4e358df#diff-082d2c8211be1dd40cb6dc5a124074d5bb825b41568250ce265dfa4d3e0c601a)
2537

2638
### ❤️ Contributors
2739

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ It was made using [Vue Leaflet](https://github.com/vue-leaflet/vue-leaflet) whic
1111
This module is really just about making it work with Nuxt 3 without the need to configure anything.
1212

1313
- [&nbsp;Release Notes](/CHANGELOG.md)
14-
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/nuxt3-leaflet?file=playground%2Fapp.vue) -->
15-
- [📖 &nbsp;Documentation](https://gugustinette.github.io/Nuxt-Leaflet)
14+
<!-- - [🏀 Online playground](https://stackblitz.com/github/nuxtjs/leaflet?file=playground%2Fapp.vue) -->
15+
- [📖 &nbsp;Documentation](https://leaflet.nuxtjs.org)
1616

1717
## Features
1818

@@ -23,14 +23,14 @@ This module is really just about making it work with Nuxt 3 without the need to
2323
## Quick Setup
2424

2525
```bash
26-
npx nuxi@latest module add nuxt3-leaflet
26+
npx nuxi@latest module add @nuxtjs/leaflet
2727
```
2828

2929
That's it! You can now use Leaflet in your Nuxt app ✨
3030

3131
## Usage
3232

33-
For a complete list of the components available, check out the [official documentation](https://gugustinette.github.io/Nuxt-Leaflet/components/introduction.html) library.
33+
For a complete list of the components available, check out the [official documentation](https://leaflet.nuxtjs.org/components/introduction.html) library.
3434

3535
Please note that components are exported in PascalCase, so for example, write `<LMap>` instead of `<l-map>`.
3636

@@ -93,14 +93,14 @@ npm run release
9393
```
9494

9595
<!-- Badges -->
96-
[npm-version-src]: https://img.shields.io/npm/v/nuxt3-leaflet/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
97-
[npm-version-href]: https://npmjs.com/package/nuxt3-leaflet
96+
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/leaflet/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
97+
[npm-version-href]: https://www.npmjs.com/package/@nuxtjs/leaflet
9898

99-
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt3-leaflet.svg?style=flat&colorA=18181B&colorB=28CF8D
100-
[npm-downloads-href]: https://npmjs.com/package/nuxt3-leaflet
99+
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/leaflet.svg?style=flat&colorA=18181B&colorB=28CF8D
100+
[npm-downloads-href]: https://www.npmjs.com/package/@nuxtjs/leaflet
101101

102-
[license-src]: https://img.shields.io/npm/l/nuxt3-leaflet.svg?style=flat&colorA=18181B&colorB=28CF8D
103-
[license-href]: https://npmjs.com/package/nuxt3-leaflet
102+
[license-src]: https://img.shields.io/npm/l/@nuxtjs/leaflet.svg?style=flat&colorA=18181B&colorB=28CF8D
103+
[license-href]: https://www.npmjs.com/package/@nuxtjs/leaflet
104104

105105
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
106106
[nuxt-href]: https://nuxt.com

docs/.vitepress/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { defineConfig } from 'vitepress'
44
export default defineConfig({
55
title: "Nuxt Leaflet",
66
description: "Documentation for the Nuxt Leaflet module",
7-
head: [['link', { rel: 'icon', href: '/Nuxt-Leaflet/favicon.ico' }]],
8-
base: '/Nuxt-Leaflet/',
7+
head: [['link', { rel: 'icon', href: '/leaflet/favicon.ico' }]],
8+
base: '/leaflet/',
99
themeConfig: {
1010
// https://vitepress.dev/reference/default-theme-config
1111
nav: [
@@ -61,8 +61,8 @@ export default defineConfig({
6161
],
6262

6363
socialLinks: [
64-
{ icon: 'github', link: 'https://github.com/Gugustinette/Nuxt-Leaflet' },
65-
{ icon: 'npm', link: 'https://www.npmjs.com/package/nuxt3-leaflet' }
64+
{ icon: 'github', link: 'https://github.com/nuxt-modules/leaflet' },
65+
{ icon: 'npm', link: 'https://www.npmjs.com/package/@nuxtjs/leaflet' }
6666
],
6767

6868
search: {

docs/components/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ outline: deep
55
::: info
66
Further documentation for these components was highly inspired from [Vue2 Leaflet Documentation](https://vue2-leaflet.netlify.app/components/), [Vue Leaflet Demo](https://github.com/vue-leaflet/vue-leaflet/tree/master/src/playground/views) and the original [Leaflet Documentation](https://leafletjs.com/).
77

8-
If you find any errors, please open an issue on the [GitHub repository](https://github.com/gugustinette/Nuxt-Leaflet).
8+
If you find any errors, please open an issue on the [GitHub repository](https://github.com/nuxt-modules/leaflet).
99
Props and events can be verified by looking at the [vue-leaflet components](https://github.com/vue-leaflet/vue-leaflet/tree/master/src/components).
1010
:::
1111

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"name": "nuxt3-leaflet",
3-
"version": "1.0.13",
4-
"description": "Nuxt 3 module for Leaflet",
5-
"repository": "https://github.com/Gugustinette/Nuxt-Leaflet",
2+
"name": "@nuxtjs/leaflet",
3+
"version": "1.0.14",
4+
"description": "Nuxt module for Leaflet",
5+
"homepage": "https://leaflet.nuxtjs.org",
6+
"repository": "https://github.com/nuxt-modules/leaflet",
7+
"bugs": {
8+
"url": "https://github.com/nuxt-modules/leaflet/issues"
9+
},
610
"license": "Apache-2.0",
711
"type": "module",
812
"exports": {

playground/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export default defineNuxtConfig({
22
modules: ['../src/module'],
33
devtools: { enabled: true },
44
app: {
5-
baseURL: '/Nuxt-Leaflet/'
5+
baseURL: '/leaflet/'
66
}
77
})

0 commit comments

Comments
 (0)