From c22342c0ec88b1a26b87d81e99ac50d8811b9ccd Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Fri, 18 Sep 2020 15:03:41 -0400 Subject: [PATCH] =?UTF-8?q?Update=20description=20and=20tightenco=20?= =?UTF-8?q?=E2=86=92=20tighten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 48 +++++++++++++++++++++--------------------- CONTRIBUTING.md | 2 +- README.md | 14 ++++++------ composer.json | 2 +- package.json | 8 +++---- tests/js/route.test.js | 2 +- 6 files changed, 38 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24754bec..b4036250 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,38 +10,38 @@ Breaking changes are marked with ⚠️. **Added** -- Document the `check()` method ([#294](/~https://github.com/tightenco/ziggy/pull/294)) and how to install and use Ziggy via `npm` and over a CDN ([#299](/~https://github.com/tightenco/ziggy/pull/299)) -- Add support for [custom scoped route model binding](https://laravel.com/docs/7.x/routing#implicit-binding), e.g. `/users/{user}/posts/{post:slug}` ([#307](/~https://github.com/tightenco/ziggy/pull/307)) -- Add support for [implicit route model binding](https://laravel.com/docs/7.x/routing#implicit-binding) ([#315](/~https://github.com/tightenco/ziggy/pull/315)) +- Document the `check()` method ([#294](/~https://github.com/tighten/ziggy/pull/294)) and how to install and use Ziggy via `npm` and over a CDN ([#299](/~https://github.com/tighten/ziggy/pull/299)) +- Add support for [custom scoped route model binding](https://laravel.com/docs/7.x/routing#implicit-binding), e.g. `/users/{user}/posts/{post:slug}` ([#307](/~https://github.com/tighten/ziggy/pull/307)) +- Add support for [implicit route model binding](https://laravel.com/docs/7.x/routing#implicit-binding) ([#315](/~https://github.com/tighten/ziggy/pull/315)) **Changed** -- ⚠️ Update `ziggy:generate` output path for Laravel 5.7+ `resources` directory structure, thanks [@Somethingideally](/~https://github.com/Somethingideally)! ([#269](/~https://github.com/tightenco/ziggy/pull/269)) -- ⚠️ Update automatic `id` parameter detection to check for higher priority named route parameters and allow passing `id` as a query parameter ([#301](/~https://github.com/tightenco/ziggy/pull/301)) -- ⚠️ Rename the `RoutePayload` class to `Ziggy` and remove its `compile` method in favour of constructing a new instance and calling `->toArray()` or `->toJson()` ([#305](/~https://github.com/tightenco/ziggy/pull/305)) +- ⚠️ Update `ziggy:generate` output path for Laravel 5.7+ `resources` directory structure, thanks [@Somethingideally](/~https://github.com/Somethingideally)! ([#269](/~https://github.com/tighten/ziggy/pull/269)) +- ⚠️ Update automatic `id` parameter detection to check for higher priority named route parameters and allow passing `id` as a query parameter ([#301](/~https://github.com/tighten/ziggy/pull/301)) +- ⚠️ Rename the `RoutePayload` class to `Ziggy` and remove its `compile` method in favour of constructing a new instance and calling `->toArray()` or `->toJson()` ([#305](/~https://github.com/tighten/ziggy/pull/305)) - Resolve the application router instance internally instead of passing it into the constructor – `new Ziggy(...)` now takes only 2 arguments, `$group` and `$url` - Change the default value of `basePort` from `false` to `null` - Remove the `getRoutePayload()` methods on the `BladeRouteGenerator` and `CommandRouteGenerator` classes -- ⚠️ Rename all `whitelist` and `blacklist` functionality to `only` and `except` ([#300](/~https://github.com/tightenco/ziggy/pull/300)) -- Use Jest instead of Mocha for JS tests ([#309](/~https://github.com/tightenco/ziggy/pull/309)) -- Use [microbundle](/~https://github.com/developit/microbundle) instead of Webpack to build and distribute Ziggy ([#312](/~https://github.com/tightenco/ziggy/pull/312)) +- ⚠️ Rename all `whitelist` and `blacklist` functionality to `only` and `except` ([#300](/~https://github.com/tighten/ziggy/pull/300)) +- Use Jest instead of Mocha for JS tests ([#309](/~https://github.com/tighten/ziggy/pull/309)) +- Use [microbundle](/~https://github.com/developit/microbundle) instead of Webpack to build and distribute Ziggy ([#312](/~https://github.com/tighten/ziggy/pull/312)) **Removed** -- ⚠️ Remove `Route` Facade macros `Route::only()` and `Route::except()` (previously `Route::whitelist()` and `Route::blacklist()`) ([#306](/~https://github.com/tightenco/ziggy/pull/306)) +- ⚠️ Remove `Route` Facade macros `Route::only()` and `Route::except()` (previously `Route::whitelist()` and `Route::blacklist()`) ([#306](/~https://github.com/tighten/ziggy/pull/306)) **Fixed** -- Fix automatic `id` parameter detection by also excluding routes with an _optional_ `id` parameter (`{id?}`), thanks [@Livijn](/~https://github.com/Livijn)! ([#263](/~https://github.com/tightenco/ziggy/pull/263)) -- Fix port not being added to URL for routes with subdomains ([#293](/~https://github.com/tightenco/ziggy/pull/293)) -- Fix getting parameters of routes in apps installed in subfolders ([#302](/~https://github.com/tightenco/ziggy/pull/302)) -- Ensure fallback routes are always last, thanks [@davejamesmiller](/~https://github.com/davejamesmiller)! ([#310](/~https://github.com/tightenco/ziggy/pull/310)) +- Fix automatic `id` parameter detection by also excluding routes with an _optional_ `id` parameter (`{id?}`), thanks [@Livijn](/~https://github.com/Livijn)! ([#263](/~https://github.com/tighten/ziggy/pull/263)) +- Fix port not being added to URL for routes with subdomains ([#293](/~https://github.com/tighten/ziggy/pull/293)) +- Fix getting parameters of routes in apps installed in subfolders ([#302](/~https://github.com/tighten/ziggy/pull/302)) +- Ensure fallback routes are always last, thanks [@davejamesmiller](/~https://github.com/davejamesmiller)! ([#310](/~https://github.com/tighten/ziggy/pull/310)) ## [0.9.4] - 2020-06-05 **Fixed** -- Fix escaping of `.` characters in the `current()` method, thanks [@davejamesmiller](/~https://github.com/davejamesmiller)! ([#296](/~https://github.com/tightenco/ziggy/pull/296)) +- Fix escaping of `.` characters in the `current()` method, thanks [@davejamesmiller](/~https://github.com/davejamesmiller)! ([#296](/~https://github.com/tighten/ziggy/pull/296)) ## [0.9.3] - 2020-05-08 @@ -51,19 +51,19 @@ Breaking changes are marked with ⚠️. **Changed** -- Improve support for using Ziggy with server-side rendering, thanks [@emielmolenaar](/~https://github.com/emielmolenaar)! ([#260](/~https://github.com/tightenco/ziggy/pull/260)) -- Avoid resolving the Blade compiler unless necessary, thanks [@axlon](/~https://github.com/axlon)! ([#267](/~https://github.com/tightenco/ziggy/pull/267)) -- Use `dist/js/route.js` as the npm package's main target, thanks [@ankurk91](/~https://github.com/ankurk91) and [@benallfree](/~https://github.com/benallfree)! ([#276](/~https://github.com/tightenco/ziggy/pull/276)) -- Readme and quality-of-life improvements ([#289](/~https://github.com/tightenco/ziggy/pull/289)) +- Improve support for using Ziggy with server-side rendering, thanks [@emielmolenaar](/~https://github.com/emielmolenaar)! ([#260](/~https://github.com/tighten/ziggy/pull/260)) +- Avoid resolving the Blade compiler unless necessary, thanks [@axlon](/~https://github.com/axlon)! ([#267](/~https://github.com/tighten/ziggy/pull/267)) +- Use `dist/js/route.js` as the npm package's main target, thanks [@ankurk91](/~https://github.com/ankurk91) and [@benallfree](/~https://github.com/benallfree)! ([#276](/~https://github.com/tighten/ziggy/pull/276)) +- Readme and quality-of-life improvements ([#289](/~https://github.com/tighten/ziggy/pull/289)) **Fixed** -- Ensure Ziggy's assets are always generated in the correct location ([#290](/~https://github.com/tightenco/ziggy/pull/290)) +- Ensure Ziggy's assets are always generated in the correct location ([#290](/~https://github.com/tighten/ziggy/pull/290)) --- -For previous changes see the [Releases](/~https://github.com/tightenco/ziggy/releases) page. +For previous changes see the [Releases](/~https://github.com/tighten/ziggy/releases) page. -[Unreleased]: /~https://github.com/tightenco/ziggy/compare/0.9.4...HEAD -[0.9.4]: /~https://github.com/tightenco/ziggy/compare/0.9.3...0.9.4 -[0.9.3]: /~https://github.com/tightenco/ziggy/compare/v0.9.2...0.9.3 +[Unreleased]: /~https://github.com/tighten/ziggy/compare/0.9.4...HEAD +[0.9.4]: /~https://github.com/tighten/ziggy/compare/0.9.3...0.9.4 +[0.9.3]: /~https://github.com/tighten/ziggy/compare/v0.9.2...0.9.3 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7427d6f3..e8c5f509 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,5 +36,5 @@ If you need any help with this please don't hesitate to ask. ## Requirements - **[PSR-2 Coding Standard](/~https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](https://pear.php.net/package/PHP_CodeSniffer). -- **Tlint styles** - Tighten-specific styles. Tlint is built for apps, so there are some settings that might not make sense in a package, but [download Tlint](/~https://github.com/tightenco/tlint) and run it on your pull requests to see if it suggests any reasonable changes. +- **Tlint styles** - Tighten-specific styles. Tlint is built for apps, so there are some settings that might not make sense in a package, but [download Tlint](/~https://github.com/tighten/tlint) and run it on your pull requests to see if it suggests any reasonable changes. - **One pull request per feature** - If you want to do more than one thing, send multiple pull requests. diff --git a/README.md b/README.md index 7ac03227..0cacce98 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -![Ziggy - Use your Laravel named routes in JavaScript](https://raw.githubusercontent.com/tightenco/ziggy/master/ziggy-banner.png?version=3) +![Ziggy - Use your Laravel named routes in JavaScript](https://raw.githubusercontent.com/tighten/ziggy/master/ziggy-banner.png?version=3) # Ziggy – Use your Laravel named routes in JavaScript -[![GitHub Actions Status](https://img.shields.io/github/workflow/status/tightenco/ziggy/Tests?label=tests&style=flat)](/~https://github.com/tightenco/ziggy/actions?query=workflow:Tests+branch:master) +[![GitHub Actions Status](https://img.shields.io/github/workflow/status/tighten/ziggy/Tests?label=tests&style=flat)](/~https://github.com/tighten/ziggy/actions?query=workflow:Tests+branch:master) [![Latest Version on Packagist](https://img.shields.io/packagist/v/tightenco/ziggy.svg?style=flat)](https://packagist.org/packages/tightenco/ziggy) [![Downloads on Packagist](https://img.shields.io/packagist/dt/tightenco/ziggy.svg?style=flat)](https://packagist.org/packages/tightenco/ziggy) [![Latest Version on NPM](https://img.shields.io/npm/v/ziggy-js.svg?style=flat)](https://npmjs.com/package/ziggy-js) @@ -12,7 +12,7 @@ Ziggy creates a Blade directive that you can include in your views. It will expo Ziggy supports all versions of Laravel from `5.4` to `8.x`. -> **Note**: you are viewing the `develop` branch, which is under active development. Not all of the features and changes in this documentation have been released. [Docs for the latest Ziggy release, `v0.9.4`, are in the Readme on the `0.9.x` branch](/~https://github.com/tightenco/ziggy/tree/0.9.x). +> **Note**: you are viewing the `develop` branch, which is under active development. Not all of the features and changes in this documentation have been released. [Docs for the latest Ziggy release, `v0.9.4`, are in the Readme on the `0.9.x` branch](/~https://github.com/tighten/ziggy/tree/0.9.x). ## Contents @@ -38,7 +38,7 @@ Ziggy supports all versions of Laravel from `5.4` to `8.x`. ## Installation -1. Install Ziggy using Composer: `composer require tightenco/ziggy`. +1. Install Ziggy using Composer: `composer require tighten/ziggy`. 1. If using Laravel 5.4, add `Tightenco\Ziggy\ZiggyServiceProvider::class` to the `providers` array in your `config/app.php`. 1. Include our Blade directive (`@routes`) somewhere in your template before your main application JavaScript is loaded—likely in the header somewhere. @@ -282,7 +282,7 @@ const path = require('path'); mix.webpackConfig({ resolve: { alias: { - ziggy: path.resolve('vendor/tightenco/ziggy/src/js/route.js'), + ziggy: path.resolve('vendor/tighten/ziggy/src/js/route.js'), }, }, }); @@ -318,7 +318,7 @@ Then you can use the method in your Vue components like so: Home ``` -Thanks to [Archer70](/~https://github.com/tightenco/ziggy/issues/70#issuecomment-369129032) for this solution. +Thanks to [Archer70](/~https://github.com/tighten/ziggy/issues/70#issuecomment-369129032) for this solution. ## Other @@ -348,7 +348,7 @@ To get started contributing to Ziggy, check out [the contribution guide](CONTRIB - [Jake Bathman](https://twitter.com/jakebathman) - [Matt Stauffer](https://twitter.com/stauffermatt) - [Jacob Baker-Kretzmar](https://twitter.com/bakerkretzmar) -- [All contributors](/~https://github.com/tightenco/ziggy/contributors) +- [All contributors](/~https://github.com/tighten/ziggy/contributors) Thanks to [Caleb Porzio](http://twitter.com/calebporzio), [Adam Wathan](http://twitter.com/adamwathan), and [Jeffrey Way](http://twitter.com/jeffrey_way) for help solidifying the idea. diff --git a/composer.json b/composer.json index d05206bc..abf17bca 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "tightenco/ziggy", "description": "Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.", "keywords": ["laravel", "routes", "javascript", "ziggy"], - "homepage": "/~https://github.com/tightenco/ziggy", + "homepage": "/~https://github.com/tighten/ziggy", "license": "MIT", "require": { "laravel/framework": ">=5.4@dev" diff --git a/package.json b/package.json index db62cb80..42bdebd6 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { "name": "ziggy-js", "version": "0.9.1", - "description": "Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.", + "description": "Use your Laravel named routes in JavaScript.", "keywords": [ "laravel", "routes", "ziggy" ], - "homepage": "/~https://github.com/tightenco/ziggy#readme", - "bugs": "/~https://github.com/tightenco/ziggy/issues", + "homepage": "/~https://github.com/tighten/ziggy", + "bugs": "/~https://github.com/tighten/ziggy/issues", "license": "MIT", "authors": [ { @@ -37,7 +37,7 @@ "esmodule": "dist/route.es.js", "repository": { "type": "git", - "url": "/~https://github.com/tightenco/ziggy.git" + "url": "/~https://github.com/tighten/ziggy.git" }, "scripts": { "build": "microbundle --name route --format modern,es,umd", diff --git a/tests/js/route.test.js b/tests/js/route.test.js index bb542c95..7d17761c 100644 --- a/tests/js/route.test.js +++ b/tests/js/route.test.js @@ -560,7 +560,7 @@ describe('current()', () => { assert(route().current('hosting-contacts.index')); assert(route().current('*.index')); - // /~https://github.com/tightenco/ziggy/pull/296 + // /~https://github.com/tighten/ziggy/pull/296 assert(!route().current('hosting.*')); });