chore: improvement hexo.extend#5208
Closed
dimaslanjaka wants to merge 16 commits intohexojs:masterfrom
Closed
Conversation
* refactor: esm * refactor: migrate typescript * update files * remove `use strict` * fix indentation * refactor: migrate typescript * refactor: migrate typescript * update * export from * extend/filter * post * Schema and SchemaType * NunjucksError * declare module * update tests * fix export * update * update * number_format * update highlight * update * add secondary argument when create `Permalink` instance * specify `eslint` target directory * ignore two rules for testing * use `@ts-expect-error` for avoiding compile error * use `any` for avoiding compile error * chore: add `dist/` to `.gitignore` * test(eslint): update `.eslintrc` * refactor: `var` to `const` * refactor: delete unnecessary `'use strict';` * test: use `dist/modules/types/moment/SchemaTypeMoment` instead of `warehouse.SchemaTypeMoment` * fix: export of processors * test: fix bind * test: fix processer * fix fs import * fix hexo-i18n and hexo-log * fix param order * build hexo in benchmark * fix eslint * fix export & drop travis * Update .husky/pre-commit * add spaces * refactor: ts debounce fn * fix: lint errors * fix: lint errors --------- Co-authored-by: yoshinorin <yoshinorin.net@outlook.com> Co-authored-by: Baoshuo <i@baoshuo.ren>
* release: 7.0.0-rc1 * Update package.json --------- Co-authored-by: Mimi <1119186082@qq.com>
* feat: add exclude_languages feature to prismjs * feat: add exclude_languages feature to prismjs
* refactor: add types for some explicit any fields * refactor: add better extend types * refactor: add type Hexo for ctx * reafactor: better function type * style: use import type for type only imports * fix: wrong type for args and options
- StoreFunction & StoreSyncFunction & StoreFunctionData - SyncStore & Store to easily import the interfaces between `extend` source files
fix: conditional when `fn` is not function
chore: convert interface `AsyncTagFunction` to overload type docs: add some JSDoc chore: add prefix `_` to unused variables feat: add interface `RegisterAsyncOptions` fix: missing types feat(Tag.register): add overload types and JSDoc
marked as internal hexo function fix(lint): eslint --fix
fix(lint): eslint --fix
to easily import between source files chore(Renderer.register): add overload method types docs: add JSDoc
chore: add `Pattern` result `boolean` type - PR hexojs/hexo-util/pull/311 - changes hexojs/hexo-util@9ddb7e2
…parameter of type 'string'.
How to testgit clone -b v7-fix-extend https://github.com/dimaslanjaka/hexo.git
cd hexo
npm install
npm test |
Contributor
Author
|
Wrong target PR sorry |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does it do?
objectchore: addPatternresultbooleantypehexo-util.npm i hexo-util@https://github.com/dimaslanjaka/hexo/raw/1d4d41d/releases/hexo-util.tgzrenderer-d.tsusing ES Export style to easily import between source files
TagFunctionto overload typeAsyncTagFunctionto overload type_to unused variablesRegisterAsyncOptionspatternas StoreFunctionfnis not functionctxobjectto `Record<string, any>before_post_renderScreenshots
Pull request tasks