-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Rebase next #1953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Rebase next #1953
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows + Yarn section name was `Windows_yarm`
* Catches onRoute hooks errors * Fixes typo * Removes unneeded test
* Add .git folder to NPM ignore * Update .npmignore Co-Authored-By: Manuel Spigolon <behemoth89@gmail.com>
…rue (fastify#1675) * Removes double call to afterRouteAdded when ignoreTrailingSlash === true * Adds explaining comment when adding a prefixed plugin
* Added case sensitive option to definition file. * Added casSensitive Option to test
* add ability to get response time on reply * feedback * Update docs/Reply.md as per suggestion Co-Authored-By: Manuel Spigolon <behemoth89@gmail.com> * update type of FastifyReply * add type test
* Improve support for Fluent Schema * Updated test * Updated docs * Avoid code duplication
* Fix fastify#1884 * Updated test
* Added missing typescript types * Added http2 server factory test
* Add fastify-errors-properties plugin * Put plugin in the right order.
* update requirements to Node.js 8 LTS or later; update docs add TODO for code updates/cleanup (check if do here or if in the other issue/PR) Update README.md Co-Authored-By: Matteo Collina <matteo.collina@gmail.com> Update docs/Benchmarking.md Co-Authored-By: Matteo Collina <matteo.collina@gmail.com> Update package.json Co-Authored-By: Matteo Collina <matteo.collina@gmail.com> revert version update getHeader to use hasHeader (available since Node.js 7.7.x) and remove fallback implementation try yarn builds for Node.js 8 aligned with requirements in 'package.json', to check if it works with version range align even npm azure pipelines to those of yarn (Node.js 8.x requirements) update code to Node.js 8 as minimum version (remove TODO etc) update code to Node.js 8 as minimum version (remove TODO etc) update code to Node.js 8 as minimum version (remove TODO etc) move getHeader implementation directly in Reply.prototype.getHeader drop Node.js 11 from doc and from CI on Azure (yarn and npm) (try to) simplify info on HTTP2 support CI on Azure, specify version range in a way more aligned to npm syntax * restore 'hooks-async.js' and set the '.test.js' extension to run it like others; remove its tests from 'hooks.test.js' * remove direct reference to main fastify source from https tests, not really needed
…er) (fastify#1732) explicit update all dependencies to latest; only Tap will be updated later update 'joi' to the new package name ('@hapi/joi') update tap and tap-mocha-reporter to latest; note that this currently breaks some tests fix failing tests (since Tap 14.x) on cloned options; explicit set Tap version to latest update test to not clone anymore object containing Buffer instances remove boom from greenkeeper ignore list
* remove beforeHandler and related implementation and warnings if used (it's no more supported) * remove basePath and related warnings (no more supported) * remove genReqId and related warnings (no more supported)
…1766) * chore: change async hooks warning to error * test: change test case for 'change async hooks warning to error'
Add FastifyError.toString to display code in `console.log(error)`
* utilize conditional to control generic specifics * Constrain and default generics * change declaration name for testing. define overload factory func * simplify to a single function declaration again * completed route method type declarations * split up types * remove fastify2.d.ts file * Add light-my-request and move logger to own file * Add FastifyError type * Utilize DRY RawBases and RawDefault logic * Update logger types * Fix generics in logger * Update route do add shorthand with handler param * Type register and plugin. Modify export structure * Move instance to own file and fix imports * Suppor esm and default import syntax * modify exports and imports for instance and fix generics * add import tests * add addHook methods * Add content-type-parser types * Export all types. Ready for review 🚀 * fix route types (change to interfaces) * Initial implementation of tsd tests. Modify types to interfaces * delete old types * More testing and updates * added server factory and more tests * update jsdocs, update tsd * delete old type test * update npm scripts, remove typescript linting * fix npm script * udpate schema type and doc * try adding explicit azure-pipeline trigger * revert 6e83a45 * fix strict log types * Improve route generics * fix serverFactory test * Add abarre review * Updated content-type-parser tests * update logger types * improve types for schema, context, routes, and register * add context to other route based methods * add import syntax comment * add linting for typescript files * fix export * remove comment * combine Raw(Req|Reply) Base and Default * allow request headers to be mergable * fix hooks * add Symbol to decorate method * fix file paths for windows
Member
|
a potentially less complicated way is to merge master in next.
Il 24 nov 2019, 15:07 +0100, Manuel Spigolon <notifications@github.com>, ha scritto:
… I'm working on next
This is the rebase on master;
I would ask help to @Ethan-Arrowood because I have trouble running npm run test:typescript and I didn't find a fast solution
0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: test\types\content-type-parser.test-d.ts.
The file must be included in at least one of the projects provided
(I have removed it from npm test to check the CI workflow)
Checklist
• run npm run test and npm run benchmark
• tests and/or benchmarks are included
• documentation is changed or added
• commit message and code follows Code of conduct
You can view, comment on, or merge this pull request online at:
#1953
Commit Summary
• add tap into greenkeeper ignore list (#1643)
• Added `fastify-decorators` to Ecosystem.md (#1645)
• Fix typo in azure-pipelines.yml (#1649)
• offboarding steps (#1646)
• fix(types): fix register options (#1644)
• chore(package): update flatstr to version 1.0.12 (#1653)
• Catches onRoute hooks errors (#1651)
• add example repo link (#1648)
• chore(package): update send to version 0.17.0 (#1627)
• Emit warning synchronously (#1657)
• Make some spelling and grammar corrections to TS.md (#1640)
• internal: moved route code (#1625)
• docs(reply): clarify settings headers (#1642)
• Bumped v2.4.0
• Add .git folder to NPM ignore (#1663)
• Bumped v2.4.1
• Adds defaults to TS generics definitions (#1669)
• Update node types, typescript, and fix broken test (#1681)
• Add RBAC plugin to Ecosystem (#1692)
• Removes double call to afterRouteAdded when ignoreTrailingSlash === true (#1675)
• docs: fix req.body inside logger req (#1695)
• Alias schema.query to schema.querystring (#1690) (#1694)
• docs: fix typos (#1701)
• chore: greenkeeper ignore autocannon (#1696)
• fix: use reply instead of original res (#1704)
• Added case sensitive option to definition file. (#1691)
• add ability to get response time on reply (#1697)
• Bumped v2.5.0
• feature: custom serializator (#1706)
• Improve support for Fluent Schema (#1719)
• allow nullable option in schemas #1709 (#1711)
• Clarify that user-provided data relates to the schemas (#1722)
• Bumped v2.6.0
• docs(Ecosystem): Add plugin community fastify-amqp (#1724)
• docs(Ecosystem): Removed fastify-nuxt community package (#1725)
• docs: move Trivikram to past collaborators (#1727)
• docs(Ecosystem): Add plugin community fastify-reverse-routes (#1728)
• docs: Add cls-rtracer to Ecosystem (#1731)
• test: change describe for content-length.test.js (#1735)
• Update Server.md (#1718)
• fix typo Routes.md (#1743)
• Avoid return 503 after closing fastify (#1723)
• change code examples in Reply documentation (#1751)
• tap --no-esm (#1752)
• docs(Hooks): Add payload inside example to prevent bugs (#1739)
• Fix typo Hooks.md (#1759)
• Update standard to the latest version 🚀 (#1741)
• Fixed linting
• docs(Ecosystem): Add fastify-no-additional-properties community plugin (#1762)
• security policy (#1738)
• docs: change the `next` to `done` inside documentation (#1756)
• docs(Plugins): Fix typo (#1764)
• Fix bug regarding Joi schemas (#1768)
• Bumped v2.7.0
• docs: simplify serverless usage with aws-lambda-fastify (#1748)
• better typing for headers object (#1775)
• Ensure we are not running the handler if reply.sent is true (#1778)
• Added Google Cloud Run docs (#1770)
• Bumped v2.7.1
• docs(Serverless): add missing punctuation marks (#1783)
• Add toStrinTag to errors (#1785)
• [ts] Add `handler` to `RouteShorthandOptions` (#1788)
• typo: typescript-server.ts (#1791)
• Add request property to reply documentation (#1792)
• Use .isFluentSchema instead of symbol to check for fluent-schema (#1794)
• fix inverted if in serverless example (#1797)
• Ensure that header properties are not duplicated in schema (#1806)
• docs(Hooks): Add each Hook to a title (#1801)
• Docs(typescript) and other typos (#1811)
• docs(Hooks): (#1810)
• Update standard (#1816)
• add plugin for autogenerate crud route in Ecosystem (#1813)
• chore(package): update @typescript-eslint/parser to version 2.0.0 (#1799)
• Improve default 404 route (#1826)
• Schema build error (#1808)
• Update Ecosystem.md (#1827)
• fix: premature close test (#1833)
• Added Zeit Now docs (#1824)
• greenkeeper ignore @typescript-eslint/eslint-plugin (#1835)
• Bumped v2.8.0
• Improving Getting Started documentation (#1837)
• feat - Implement pluginName (#1836)
• feature: add onResponse hook in route declaration (#1838)
• Fix eslint "no-misused-promises" error in hooks (#1843)
• Update Validation-and-Serialization.md (#1846)
• docs(Reply): fix Errors (#1848)
• First batch of documentation fixes (#1850)
• add FastifyReply#removeHeader method to fastify.d.ts (#1849)
• randomize file name in test (#1856)
• Move Nathan Woltman to Past Collaborators (#1857)
• add github workflow for CI and website, (#1853)
• possible fixes (#1861)
• fix (#1862)
• Fix/pkg manager ci (#1863)
• install yarn and pnpm in the host env (#1865)
• Rules to contributing to plugins (#1842)
• Make reply a thenable (#1869)
• docs(Plugins): removed prefix from list with fastify-plugin (#1819)
• Add SerayaEryn to team list (#1867)
• Don't change resolved schema (#1872)
• Fix Plugin type in fastify.d.ts (#1841)
• fix(package): update tiny-lru to version 7.0.0 (#1874)
• feature: schema resolver (#1858)
• Fix warning for onError hook (#1876)
• Update Server.md (#1878)
• Bumped v2.9.0.
• fix schema resolver for plain id (#1882)
• chore(package): update concurrently to version 5.0.0 (#1886)
• greenkeeper do not update lolex (#1887)
• add .headers to reply docs (#1890)
• feature: reply statusCode (#1892)
• Bumped v2.10.0
• Test: After can access to decorations registered into plugin (#1891)
• chore(package): update h2url to version 0.2.0 (#1902)
• Add type definition for genReqId option (#1899)
• add missing fluent schema link (#1903)
• Updates fastify-multer repository (#1904)
• Add Node v13 to CI (#1912)
• adds fastify-https-redirect to ecosystem (#1911)
• Added support for onConstructorPoisoning (#1910)
• Add log serializer (#1901)
• Added fastify-qs plugin (#1906)
• Handle invalid url components (#1888)
• Update Actions to use latest versions of all OS's (#1907)
• less coverage messages (#1918)
• chore(package): update form-data to version 3.0.0 (#1923)
• Update documentation to fix anchors for Hooks (#1928)
• Added missing types for Server Options (#1922)
• Fix/1932 Add version field to the route options (#1933)
• Update abstract-logging to v2 (#1941)
• Update Routes.md (#1942)
• Add fastify-errors-properties plugin to Ecosystem (#1944)
• Add fastify-auth0-verify to Ecosystem. (#1947)
• chore(package): update fluent-schema to version 0.8.0 (#1950)
• remove travis from next branch (#1670)
• Drop nodejs 6 for next (Fastify 3) (#1713)
• update packages to latest release (that now requires Node.js 8 or later) (#1732)
• Remove old/deprecated code for Fastify v3 (#1750)
• chore: change async hooks warning to error for next version (#1766)
• test: change hooks test cases from next to done (#1774)
• Remove code from error name (#1786)
• TypeScript Refactor (#1569)
• fix rebase: lint
• removed node 6 from gh workflow
File Changes
• A .github/workflows/ci.yml (48)
• A .github/workflows/package-manager-ci.yml (59)
• A .github/workflows/website.yml (16)
• M .npmignore (3)
• D .travis.yml (20)
• M CONTRIBUTING.md (29)
• M README.md (23)
• A SECURITY.md (33)
• M azure-pipelines.yml (2)
• M build/azure-pipelines-npm-template.yml (8)
• M build/azure-pipelines-yarn-template.yml (6)
• M build/build-validation.js (10)
• M docs/Benchmarking.md (6)
• M docs/ContentTypeParser.md (22)
• M docs/Decorators.md (32)
• M docs/Ecosystem.md (15)
• M docs/Errors.md (21)
• M docs/Fluent-Schema.md (31)
• M docs/Getting-Started.md (54)
• M docs/HTTP2.md (8)
• M docs/Hooks.md (388)
• M docs/LTS.md (21)
• M docs/Logging.md (36)
• A docs/Middleware.md (59)
• D docs/Middlewares.md (59)
• M docs/Plugins-Guide.md (144)
• M docs/Plugins.md (25)
• M docs/Reply.md (73)
• M docs/Routes.md (139)
• M docs/Server.md (95)
• M docs/Serverless.md (227)
• M docs/TypeScript.md (12)
• M docs/Validation-and-Serialization.md (92)
• M examples/typescript-server.ts (2)
• M fastify.d.ts (759)
• M fastify.js (485)
• M lib/configValidator.js (151)
• M lib/contentTypeParser.js (8)
• M lib/context.js (10)
• M lib/decorate.js (2)
• M lib/errors.js (45)
• M lib/fourOhFour.js (34)
• M lib/handleRequest.js (7)
• M lib/logger.js (4)
• A lib/middleware.js (38)
• M lib/pluginUtils.js (32)
• M lib/reply.js (119)
• M lib/request.js (4)
• A lib/route.js (403)
• M lib/schemas.js (58)
• M lib/symbols.js (6)
• M lib/validation.js (24)
• D lib/warnings.js (7)
• M lib/wrapThenable.js (2)
• M package.json (122)
• M test/404s.test.js (42)
• D test/async-await.js (557)
• M test/async-await.test.js (558)
• M test/close-pipelining.test.js (45)
• M test/close.test.js (81)
• M test/content-length.test.js (12)
• M test/custom-parser.test.js (34)
• M test/custom-querystring-parser.test.js (2)
• M test/decorator.test.js (55)
• D test/emit-warning.test.js (39)
• D test/fluent-schema.js (125)
• M test/fluent-schema.test.js (126)
• M test/helper.js (14)
• D test/hooks-async.js (472)
• A test/hooks-async.test.js (462)
• M test/hooks.test.js (773)
• D test/http2/closing.js (48)
• A test/http2/closing.test.js (101)
• D test/http2/http2.test.js (16)
• R test/http2/missing-http2-module.test.js (5)
• R test/http2/plain.test.js (0)
• R test/http2/secure-with-fallback.test.js (0)
• R test/http2/secure.test.js (0)
• R test/http2/unknown-http-method.test.js (0)
• A test/imports.test.js (18)
• M test/input-validation.js (2)
• M test/input-validation.test.js (2)
• M test/internals/decorator.test.js (6)
• M test/internals/errors.test.js (33)
• M test/internals/handleRequest.test.js (2)
• M test/internals/hooks.test.js (4)
• M test/internals/initialConfig.test.js (18)
• M test/internals/logger.test.js (2)
• M test/internals/plugin.test.js (8)
• M test/internals/reply.test.js (371)
• A test/internals/schemas.test.js (30)
• M test/internals/validation.test.js (75)
• M test/listen.test.js (2)
• M test/logger.test.js (349)
• A test/nullable-validation.test.js (52)
• M test/plugin.test.js (175)
• M test/post.test.js (2)
• M test/promises.test.js (55)
• M test/proto-poisoning.test.js (76)
• M test/register.test.js (2)
• M test/reply-error.test.js (45)
• M test/route-hooks.test.js (210)
• M test/route-prefix.test.js (31)
• M test/route.test.js (35)
• A test/schemas.test.js (324)
• M test/shared-schemas.test.js (18)
• M test/stream.test.js (16)
• M test/throw.test.js (50)
• A test/types/content-type-parser.test-d.ts (53)
• A test/types/fastify.test-d.ts (17)
• A test/types/hooks.test-d.ts (43)
• D test/types/index.ts (606)
• A test/types/logger.test-d.ts (33)
• A test/types/plugin.test-d.ts (15)
• A test/types/route.test-d.ts (108)
• A test/types/serverFactory.test-d.ts (38)
• D test/types/tsconfig.json (11)
• M test/validation-error-handling.test.js (8)
• M test/versioned-routes.test.js (8)
• A types/.eslintrc.json (30)
• A types/content-type-parser.d.ts (63)
• A types/context.d.ts (8)
• A types/error.d.ts (23)
• A types/hooks.d.ts (145)
• A types/instance.d.ts (107)
• A types/logger.d.ts (49)
• A types/middleware.d.ts (49)
• A types/plugin.d.ts (25)
• A types/register.d.ts (16)
• A types/reply.d.ts (30)
• A types/request.d.ts (23)
• A types/route.d.ts (127)
• A types/schema.d.ts (17)
• A types/serverFactory.d.ts (19)
• A types/tsconfig.json (13)
• A types/utils.d.ts (34)
Patch Links:
• https://github.com/fastify/fastify/pull/1953.patch
• https://github.com/fastify/fastify/pull/1953.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Member
Author
|
@fastify/core when the problem with typescript will be solved, should I The test are green: |
Member
Author
Done #1954 |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm working on
nextThis is the rebase on master;
I would ask help to @Ethan-Arrowood because I have trouble running
npm run test:typescriptand I didn't find a fast solution(I have removed it from
npm testto check the CI workflow)Checklist
npm run testandnpm run benchmark