Skip to content

Commit

Permalink
chore(release): 6.0.0 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Jan 9, 2019
1 parent 7fe0357 commit 1fafec6
Show file tree
Hide file tree
Showing 7 changed files with 5,567 additions and 6,211 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,21 @@ cache:

matrix:
include:
- node_js: '10'
- node_js: '11'
script: npm run pretest
env: CI=pretest
- node_js: '10'
- node_js: '6'
script: npm run test-only
env: CI=tests 8
env: CI=tests 6
- node_js: '8'
script: npm run test-only
env: CI=tests 8
- node_js: '6'
- node_js: '10'
script: npm run test-only
env: CI=tests 6
- node_js: '4'
env: CI=tests 10
- node_js: '11'
script: npm run test-only
env: CI=tests 4
sudo: required
env: CI=tests 11

before_install:
- npm install -g npm@5
- npm install -g npm@latest
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org).

## 6.0.0 - 2019-01-09

- Chore: minimum required `node-fs` version is now `^7.0.1`.

### BREAKING CHANGE

- Chore: minimum required `nodejs` version is now `>= 6.9.0`.

## 5.0.7 - 2018-05-22

- Chore: minimum required `cosmiconfig` version is now `^5.0.0`.
Expand Down
5 changes: 0 additions & 5 deletions __tests__/.eslintrc.json

This file was deleted.

219 changes: 219 additions & 0 deletions __tests__/__snapshots__/standalone.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`standalone config option 1`] = `
"User-agent: *
Allow: /
Host: some-some-domain.com
"
`;

exports[`standalone should \`contain the \`Host\` 1`] = `
"User-agent: *
Allow: /
Host: domain.com
"
`;

exports[`standalone should \`contain two \`Sitemap\` directives 1`] = `
"User-agent: *
Allow: /
Sitemap: http://foobar.com/sitemap.xml
Sitemap: http://foobar.com/sitemap1.xml
"
`;

exports[`standalone should \`contain two \`policy\` item with the \`Allow\` and the \`Disallow\` directives 1`] = `
"User-agent: Google
Allow: /
Disallow: /search-foo
User-agent: Yandex
Allow: /
Disallow: /search-bar
"
`;

exports[`standalone should \`contain two policy item, first have multiple \`User-agent\` option 1`] = `
"User-agent: Google
User-agent: AnotherBot
Allow: /
Disallow: /search-foo
User-agent: Yandex
Allow: /
Disallow: /search-bar
"
`;

exports[`standalone should contain multiple \`User-agent\` and \`Crawl-delay\` 1`] = `
"User-agent: Google
Allow: /
Crawl-delay: 10
User-agent: Yandex
Allow: /
Crawl-delay: 0.5
"
`;

exports[`standalone should contain one \`policy\` item with the \`Allow\` directive 1`] = `
"User-agent: Google
Allow: /
"
`;

exports[`standalone should contain one \`policy\` items with the \`Allow\` directive 1`] = `
"User-agent: Google
Allow: /
Allow: /foobar
"
`;

exports[`standalone should contain one \`policy\` items with the \`Disallow\` directive 1`] = `
"User-agent: Google
Disallow: /
Disallow: /foobar
"
`;

exports[`standalone should contain one policy item with one \`Clean-param\` option 1`] = `
"User-agent: Yandex
Allow: /
Clean-param: s /forum/showthread.php
"
`;

exports[`standalone should contain one policy item with two \`Clean-params\` options 1`] = `
"User-agent: Yandex
Allow: /
Clean-param: s /forum/showthread.php
Clean-param: ref /forum/showthread.php
"
`;

exports[`standalone should contain one policy item without empty \`Clean-param\` option 1`] = `
"User-agent: Yandex
Allow: /
"
`;

exports[`standalone should contain the \`Host\` if \`host\` options without protocol scheme 1`] = `
"User-agent: *
Allow: /
Host: www.domain.com
"
`;

exports[`standalone should contain the \`Host\` in punycode format 1`] = `
"User-agent: *
Allow: /
Host: xn----8sbalhasbh9ahbi6a2ae.xn--p1ai
"
`;

exports[`standalone should contain the \`Host\` with \`https\` scheme 1`] = `
"User-agent: *
Allow: /
Host: https://domain.com
"
`;

exports[`standalone should contain the \`Host\` without \`80\` port 1`] = `
"User-agent: *
Allow: /
Host: domain.com
"
`;

exports[`standalone should contain the \`Host\` without a trailing slash 1`] = `
"User-agent: *
Allow: /
Host: domain.com
"
`;

exports[`standalone should contain the \`Host\` without any extra URL entire 1`] = `
"User-agent: *
Allow: /
Host: www.domain.com:8080
"
`;

exports[`standalone should contain the \`Sitemap\` directive 1`] = `
"User-agent: *
Allow: /
Sitemap: http://foobar.com/sitemap.xml
"
`;

exports[`standalone should contain two \`policy\` item with the \`Allow\` directive 1`] = `
"User-agent: Google
Allow: /
User-agent: Yandex
Allow: /
"
`;

exports[`standalone should contain two \`policy\` items with empty \`Disallow\` directive 1`] = `
"User-agent: *
Disallow:
User-agent: Foo
Disallow:
"
`;

exports[`standalone should generated default output without options 1`] = `
"User-agent: *
Allow: /
"
`;

exports[`standalone should load a config file 1`] = `
"User-agent: *
Allow: /
Host: some-some-domain.com
"
`;

exports[`standalone should throw error if item in the \`sitemap\` option not a string or an array 1`] = `"Item in \`sitemap\` option should be a string"`;

exports[`standalone should throw error if item in the \`sitemap\` option not an absolute URL 1`] = `"Item in \`sitemap\` option should be an absolute URL"`;

exports[`standalone should throw error if the \`Host\` option is array 1`] = `"Options \`host\` must be only one string"`;

exports[`standalone should throw error if the \`cleanParam\` option more than 500 characters 1`] = `"Option \`cleanParam\` should have no more than 500 characters"`;

exports[`standalone should throw error if the \`cleanParam\` option not string or array 1`] = `"Option \`cleanParam\` should be a string or an array"`;

exports[`standalone should throw error if the \`host\` option being IP address version 4 1`] = `"Options \`host\` should be not an IP address"`;

exports[`standalone should throw error if the \`host\` option being IP address version 6 1`] = `"Options \`host\` should be not an IP address"`;

exports[`standalone should throw error if the \`policy\` option have array the \`userAgent\` option 1`] = `"Each \`policy\` should have a single string \`userAgent\` option"`;

exports[`standalone should throw error if the \`policy\` option is null 1`] = `"Options \`policy\` should be define"`;

exports[`standalone should throw error if the \`policy\` option is string 1`] = `"Options \`policy\` must be array"`;

exports[`standalone should throw error if the \`policy\` option not have the \`userAgent\` option 1`] = `"Each \`policy\` should have a single string \`userAgent\` option"`;

exports[`standalone should throw error if the \`sitemap\` option is not absolute URL 1`] = `"Option \`sitemap\` should be an absolute URL"`;

exports[`standalone should throw error if the \`sitemap\` option is not string or array 1`] = `"Option \`sitemap\` should be a string or an array"`;

exports[`standalone should throw error if the item in \`cleanParam\` option more than 500 characters 1`] = `"String in \`cleanParam\` option should have no more than 500 characters"`;

exports[`standalone should throw error if the item in \`cleanParam\` option not string 1`] = `"String in \`cleanParam\` option should be a string"`;

exports[`standalone should throw error on invalid \`crawlDelay\` option 1`] = `"Option \`crawlDelay\` must be an integer or a float"`;

exports[`standalone should throw error on invalid \`host\` option 1`] = `"Option \`host\` does not contain correct host"`;

exports[`standalone should use encode url in the \`allow\` and the \`disallow\` options 1`] = `
"User-agent: Google
Allow: /%D0%BA%D0%BE%D1%80%D0%B7%D0%B8%D0%BD%D0%B0
Disallow: /%D0%BB%D0%B8%D1%87%D0%BD%D1%8B%D0%B9-%D0%BA%D0%B0%D0%B1%D0%B8%D0%BD%D0%B5%D1%82
"
`;
Loading

0 comments on commit 1fafec6

Please sign in to comment.